Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张蕾
Geth-Modification
Commits
6cb7d52a
Commit
6cb7d52a
authored
Feb 12, 2019
by
Rafael Matias
Committed by
Viktor Trón
Feb 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/docker: add global-store and split docker images (#19038)
parent
27e3f968
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
Dockerfile
swarm/docker/Dockerfile
+15
-6
No files found.
swarm/docker/Dockerfile
View file @
6cb7d52a
...
...
@@ -10,14 +10,23 @@ RUN mkdir -p $GOPATH/src/github.com/ethereum && \
git checkout
${
VERSION
}
&&
\
go
install
-ldflags
"-X main.gitCommit=
${
VERSION
}
"
./cmd/swarm
&&
\
go
install
-ldflags
"-X main.gitCommit=
${
VERSION
}
"
./cmd/swarm/swarm-smoke
&&
\
go
install
-ldflags
"-X main.gitCommit=
${
VERSION
}
"
./cmd/
geth
&&
\
cp
$GOPATH
/bin/swarm /swarm
&&
cp
$GOPATH
/bin/geth /geth
&&
cp
$GOPATH
/bin/swarm-smoke /swarm-smoke
go
install
-ldflags
"-X main.gitCommit=
${
VERSION
}
"
./cmd/
swarm/global-store
&&
\
go
install
-ldflags
"-X main.gitCommit=
${
VERSION
}
"
./cmd/geth
# Release image with the required binaries and scripts
FROM
alpine:3.8
FROM
alpine:3.8 as swarm-smoke
WORKDIR
/
COPY
--from=builder /swarm /geth /swarm-smoke /
ADD
run.sh /run.sh
COPY
--from=builder /go/bin/swarm-smoke /
ADD
run-smoke.sh /run-smoke.sh
ENTRYPOINT
["/run-smoke.sh"]
FROM
alpine:3.8 as swarm-global-store
WORKDIR
/
COPY
--from=builder /go/bin/global-store /
ENTRYPOINT
["/global-store"]
FROM
alpine:3.8 as swarm
WORKDIR
/
COPY
--from=builder /go/bin/swarm /go/bin/geth /
ADD
run.sh /run.sh
ENTRYPOINT
["/run.sh"]
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