Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
validator
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
Odysseus
validator
Commits
5a8a2afd
Commit
5a8a2afd
authored
Feb 02, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dockerfile
parent
604946b9
Pipeline
#674
canceled with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
Dockerfile
Dockerfile
+3
-3
config.toml
config.toml
+3
-4
entrypoint.sh
entrypoint.sh
+3
-2
No files found.
Dockerfile
View file @
5a8a2afd
...
@@ -14,11 +14,11 @@ COPY ./ ./witness/
...
@@ -14,11 +14,11 @@ COPY ./ ./witness/
RUN
go
env
-w
GOPROXY
=
"https://goproxy.cn,direct"
RUN
go
env
-w
GOPROXY
=
"https://goproxy.cn,direct"
RUN
git clone
git@code.wuban.net.cn:
odysseus/odysseus-protocol.git
RUN
git clone
https://code.wuban.net.cn/
odysseus/odysseus-protocol.git
FROM
base AS build
FROM
base AS build
RUN
cd
witness
&&
go mod tidy
&&
make
RUN
cd
witness
&&
go mod tidy
&&
go build
-v
-o
/tmp/witness ./cmd/witness
FROM
alpine
FROM
alpine
...
@@ -26,7 +26,7 @@ WORKDIR /root
...
@@ -26,7 +26,7 @@ WORKDIR /root
COPY
./config.toml ./config.toml
COPY
./config.toml ./config.toml
COPY
--from=build
/witness /usr/bin/witness
COPY
--from=build /tmp
/witness /usr/bin/witness
COPY
./entrypoint.sh /usr/local/bin/entrypoint.sh
COPY
./entrypoint.sh /usr/local/bin/entrypoint.sh
...
...
config.toml
View file @
5a8a2afd
log-level
=
"debug"
log-level
=
"debug"
metrics-listen
=
"0.0.0.0:
8425
"
metrics-listen
=
"0.0.0.0:
20010
"
grpc-listen
=
"0.0.0.0:
943
1"
grpc-listen
=
"0.0.0.0:
2001
1"
rpc-listen
=
"0.0.0.0:
944
2"
rpc-listen
=
"0.0.0.0:
2001
2"
chain-rpc
=
"https://1rpc.io/holesky"
chain-rpc
=
"https://1rpc.io/holesky"
...
...
entrypoint.sh
View file @
5a8a2afd
...
@@ -3,5 +3,6 @@
...
@@ -3,5 +3,6 @@
# exit script on any error
# exit script on any error
set
-e
set
-e
echo
"runing witness"
echo
"running witness"
/usr/bin/witness
>>
/root/witness.log 2>&1
nohup
/usr/bin/witness
-c
/root/config.toml
>>
/root/witness.log 2>&1 &
tail
-f
/root/witness.log
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