summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-02-14 15:59:13 +0100
committervarac <varacanero@zeromail.org>2017-02-14 15:59:13 +0100
commitaa5afd09f5cfd889e1121c690bfe454f0b49d49f (patch)
tree095ec5c6e7b91132d64d08fe4dd6f4cbbd3e7a40
parentf97aa42d5f706d5c589a3220e5fd3b4138587a32 (diff)
Update Readme
-rw-r--r--docker/README.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/docker/README.md b/docker/README.md
index 2267597..64b0cd1 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -1,17 +1,18 @@
# Build new image
-As an example we build a new version (2.2.0) of the leapcode/ruby image:
+As an example we build a new version (2.2.0) of the leapcode/jessie base image:
+
+ IMAGE='jessie'
## Find latest version
I.e. look at the tags at https://hub.docker.com/r/leapcode/ruby/tags/ or query tags with:
-
- curl -s https://registry.hub.docker.com/v2/repositories/leapcode/jessie/tags/ |jq '."results"[]["name"]'
+
+ curl -s https://registry.hub.docker.com/v2/repositories/leapcode/$IMAGE/tags/ |jq '."results"[]["name"]'
## Build new version
- VERSION='2.2.0'
- IMAGE='ruby'
+ VERSION='1.5'
cd $IMAGE
docker build --no-cache -t leapcode/${IMAGE}:${VERSION} .
@@ -19,6 +20,6 @@ I.e. look at the tags at https://hub.docker.com/r/leapcode/ruby/tags/ or query t
docker logout
docker login -u leapcode
- docker push leapcode/${IMAGE}:${VERSION}
docker tag leapcode/${IMAGE}:${VERSION} leapcode/${IMAGE}:latest
docker push leapcode/${IMAGE}:latest
+ docker push leapcode/${IMAGE}:${VERSION}