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
604946b9
Commit
604946b9
authored
Feb 02, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dockerfile
parent
2a731941
Pipeline
#673
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
Dockerfile
Dockerfile
+37
-0
entrypoint.sh
entrypoint.sh
+7
-0
No files found.
Dockerfile
0 → 100644
View file @
604946b9
FROM
golang:1.19-alpine AS base
# Set up dependencies
ENV
PACKAGES git openssh-client build-base
RUN
sed
-i
's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g'
/etc/apk/repositories
# Install dependencies
RUN
apk add
--update
$PACKAGES
# Add source files
RUN
mkdir
-p
./witness
COPY
./ ./witness/
RUN
go
env
-w
GOPROXY
=
"https://goproxy.cn,direct"
RUN
git clone git@code.wuban.net.cn:odysseus/odysseus-protocol.git
FROM
base AS build
RUN
cd
witness
&&
go mod tidy
&&
make
FROM
alpine
WORKDIR
/root
COPY
./config.toml ./config.toml
COPY
--from=build /witness /usr/bin/witness
COPY
./entrypoint.sh /usr/local/bin/entrypoint.sh
RUN
chmod
u+x /usr/local/bin/entrypoint.sh
EXPOSE
20000 20011 20012
ENTRYPOINT
[ "/usr/local/bin/entrypoint.sh" ]
\ No newline at end of file
entrypoint.sh
0 → 100644
View file @
604946b9
#! /bin/sh
# exit script on any error
set
-e
echo
"runing witness"
/usr/bin/witness
>>
/root/witness.log 2>&1
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