aboutsummaryrefslogtreecommitdiff
path: root/netbox/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'netbox/Makefile')
-rw-r--r--netbox/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/netbox/Makefile b/netbox/Makefile
new file mode 100644
index 0000000..ffe7e64
--- /dev/null
+++ b/netbox/Makefile
@@ -0,0 +1,24 @@
1VERSION=2.10.3
2IMAGE=docker.crute.me/netbox:$(VERSION)
3LATEST=$(subst :$(VERSION),,$(IMAGE)):latest
4
5all:
6 #docker pull alpine:latest
7 docker build \
8 --build-arg=netbox_version=$(VERSION) \
9 -t $(IMAGE) .
10
11all-no-cache:
12 docker build --no-cache -t $(IMAGE) .
13
14run:
15 docker run -d \
16 -p 9110:9000 \
17 -p 9111:9001 \
18 -v /srv/code:/srv/code \
19 $(IMAGE)
20
21publish:
22 docker push $(IMAGE)
23 docker tag $(IMAGE) $(LATEST)
24 docker push $(LATEST)