Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
proxyWithSign
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟@五瓣科技
proxyWithSign
Commits
5613ecd4
Commit
5613ecd4
authored
May 10, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm shell
parent
b09f3323
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
28 deletions
+23
-28
Dockerfile
Dockerfile
+0
-28
script.sh
script.sh
+23
-0
No files found.
Dockerfile
View file @
5613ecd4
# FROM golang:1.22.3-alpine3.19 AS base
# WORKDIR /go/src/github.com/aiproxy
# COPY ./ ./
# ENV GOPROXY="https://goproxy.io,direct"
# # RUN go env -w GOPROXY=https://goproxy.cn,direct
# RUN go mod download
# FROM dep AS build
# RUN go build -o /proxy
# RUN --mount=target=. \
# --mount=type=cache,target=/go/pkg/mod \
# --mount=type=cache,target=/root/.cache/go-build \
# cd chain && make build-docker-ouput
# FROM cog-hello-world:latest
# COPY my_first_process my_first_process
# COPY my_second_process my_second_process
# COPY script.sh script.sh
# CMD ./script.sh
FROM
cog-hello-world:latest
RUN
apt-get update
&&
apt-get
install
procps
-y
COPY
proxy proxy
...
...
script.sh
View file @
5613ecd4
#!/bin/bash
# Start the second process
# ./my_second_process -D
# status=$?
# if [ $status -ne 0 ]; then
# echo "Failed to start my_second_process: $status"
# exit $status
# fi
# your_command; if [ $? -ne 0 ]; then echo "Failed to start proxy"; exit 1; fi
#nohup ./proxy ; if [ $? -ne 0 ]; then echo "Failed to start proxy"; exit 1; fi &
nohup
./proxy &
nohup
python
-m
cog.server.http &
echo
"rm /bin/sh /bin/bash /bin/dash /bin/rbash rm /usr/bin/cp "
rm
/bin/sh /bin/bash /bin/dash /bin/rbash
rm
/usr/bin/cp
while
/bin/true
;
do
ps aux |grep proxy |grep
-q
-v
grep
PROCESS_1_STATUS
=
$?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment