Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
61e3c517
Commit
61e3c517
authored
8 years ago
by
Benjamin Bollen
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #321 from eris-ltd/feature-smaller-docker-redux
Feature smaller docker redux
parents
bb8c8715
1ba6d329
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile.deploy
+2
-2
2 additions, 2 deletions
Dockerfile.deploy
circle.yml
+2
-0
2 additions, 0 deletions
circle.yml
tests/build_tool.sh
+2
-2
2 additions, 2 deletions
tests/build_tool.sh
with
6 additions
and
4 deletions
Dockerfile.deploy
+
2
−
2
View file @
61e3c517
...
...
@@ -4,12 +4,12 @@ MAINTAINER Monax <support@monax.io>
ENV TARGET eris-db
# runtime customization start here
ADD
./eris-client $INSTALL_BASE
COPY
./eris-client $INSTALL_BASE
/eris-client
COPY ./bin/start_eris_db $INSTALL_BASE/erisdb-wrapper
# runtime customization end here
# Get the binary from the artifact in pwd
ADD
./$TARGET $INSTALL_BASE
COPY
./
"
$TARGET
"_build_artifact
$INSTALL_BASE
/$TARGET
RUN chmod +x --recursive $INSTALL_BASE
# Finalize
...
...
This diff is collapsed.
Click to expand it.
circle.yml
+
2
−
0
View file @
61e3c517
...
...
@@ -42,6 +42,7 @@ deployment:
commands
:
-
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS quay.io
-
tests/build_tool.sh
-
"
docker
tag
quay.io/eris/db:build
throw:build
&&
docker
rmi
quay.io/eris/db:build"
-
docker push quay.io/eris/db
-
docs/build.sh master
develop
:
...
...
@@ -49,5 +50,6 @@ deployment:
commands
:
-
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS quay.io
-
tests/build_tool.sh
-
"
docker
rmi
quay.io/eris/db:latest
&&
docker
tag
quay.io/eris/db:build
throw:build
&&
docker
rmi
quay.io/eris/db:build"
-
docker push quay.io/eris/db
-
docs/build.sh
This diff is collapsed.
Click to expand it.
tests/build_tool.sh
+
2
−
2
View file @
61e3c517
...
...
@@ -36,12 +36,12 @@ release_maj=$(echo $release_min | cut -d . -f 1-2)
# Build
docker build
-t
$IMAGE
:build
$REPO
docker run
--rm
--entrypoint
cat
$IMAGE
:build /usr/local/bin/
$TARGET
>
$REPO
/
$TARGET
docker run
--rm
--entrypoint
cat
$IMAGE
:build /usr/local/bin/
$TARGET
>
$REPO
/
"
$TARGET
"
_build_artifact
docker run
--rm
--entrypoint
cat
$IMAGE
:build /usr/local/bin/eris-client
>
$REPO
/eris-client
docker build
-t
$IMAGE
:
$release_min
-f
Dockerfile.deploy
$REPO
# Cleanup
rm
$REPO
/
$TARGET
rm
$REPO
/
"
$TARGET
"
_build_artifact
rm
$REPO
/eris-client
# Extra Tags
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment