summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/docker_bundle/Makefile6
-rw-r--r--pkg/docker_bundleapt/Makefile16
2 files changed, 14 insertions, 8 deletions
diff --git a/pkg/docker_bundle/Makefile b/pkg/docker_bundle/Makefile
index 0d6ce9fc..f9c82ac1 100644
--- a/pkg/docker_bundle/Makefile
+++ b/pkg/docker_bundle/Makefile
@@ -1,6 +1,8 @@
+IMAGE=bitmask-bundler
+
build:
- docker build -t 0xacab.org:4567/leap/docker/bitmask-bundler:latest .
+ docker build -t 0xacab.org:4567/leap/docker/$(IMAGE):latest .
push:
- docker push 0xacab.org:4567/leap/docker/bitmask-bundler:latest
+ docker push 0xacab.org:4567/leap/docker/$(IMAGE):latest
login:
docker login 0xacab.org:4567
diff --git a/pkg/docker_bundleapt/Makefile b/pkg/docker_bundleapt/Makefile
index a9eaa7c7..e68a9cf5 100644
--- a/pkg/docker_bundleapt/Makefile
+++ b/pkg/docker_bundleapt/Makefile
@@ -1,16 +1,20 @@
+IMAGE=bitmask-bundler-apt
+
+# for leap registry
+
build:
- docker build -t 0xacab.org:4567/leap/docker/bitmask-bundler:latest .
+ docker build -t 0xacab.org:4567/leap/docker/$(IMAGE):latest .
push:
- docker push 0xacab.org:4567/leap/docker/bitmask-bundler:latest
+ docker push 0xacab.org:4567/leap/docker/$(IMAGE):latest
login:
docker login 0xacab.org:4567
-# local tests
+# for local tests
bundler:
- docker build -t bundler .
+ docker build -t $(IMAGE) .
shell:
- docker run -i -t bundler bash
+ docker run -i -t $(IMAGE) bash
bundle:
- echo "cd /src/leap/bitmask-dev && VIRTUAL_ENV=/usr/local make bundle && cp -r dist/* /dist" | docker run -i -v /srv/bitmask-builds:/dist -w /dist bundler bash
+ echo "cd /src/leap/bitmask-dev && VIRTUAL_ENV=/usr/local make bundle && cp -r dist/* /dist" | docker run -i -v /srv/bitmask-builds:/dist -w /dist $(IMAGE) bash