forked from 104lab/docker-lazy-octane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 870 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
VERSION := latest
SHELL := bash
.PHONY: all shell run 8.0 8.1 8.2 8.3
# ------------------------------------------------------------------------------
all: 8.3 8.2 8.1 8.0
8.3:
docker build --progress=plain -t=lazy-octane:8.3 8.3
docker build --progress=plain -t=lazy-octane:8.3-alpine 8.3/alpine
8.2:
docker build --progress=plain -t=lazy-octane:8.2 8.2
docker build --progress=plain -t=lazy-octane:8.2-alpine 8.2/alpine
8.1:
docker build --progress=plain -t=lazy-octane:8.1 8.1
docker build --progress=plain -t=lazy-octane:8.1-alpine 8.1/alpine
8.0:
docker build --progress=plain -t=lazy-octane:8.0 8.0
docker build --progress=plain -t=lazy-octane:8.0-alpine 8.0/alpine
shell:
docker run --rm -it -v `pwd`:/source -w /source lazy-octane:$(VERSION) $(SHELL)
run:
docker run --rm -it -v `pwd`:/source -w /source $(IMAGE):$(VERSION)