This repository was archived by the owner on May 11, 2022. It is now read-only.
File tree 3 files changed +37
-19
lines changed
3 files changed +37
-19
lines changed Original file line number Diff line number Diff line change
1
+ # folders
2
+ .github
3
+ api
4
+ bin
5
+ docs
6
+ env
7
+ test
8
+ third_party
9
+ tools
10
+
11
+ # files
12
+ .gitattributes
13
+ .gitignore
14
+ .gitmodule
15
+ Makefile
16
+ README.md
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ MODULE = $(shell go list -m)
9
9
PATHS = $(shell go list ./... | sed -e "s|$(shell go list -m) /\{0,1\}||g")
10
10
SHELL = /bin/bash -euo pipefail
11
11
TIMEOUT = 1s
12
- VERSION = 1.x
13
12
14
13
export PATH := $(BINPATH ) :$(PATH )
15
14
Original file line number Diff line number Diff line change 1
- ifndef VERSION
2
- $(error Please define VERSION variable)
3
- endif
1
+ IMAGE = octopot/tablo
2
+ BACKUP = quay.io/octopot/tablo
3
+ VERSION = 1.x
4
+
5
+ .PHONY : docker-backup
6
+ docker-backup :
7
+ @docker tag $(IMAGE ) :$(VERSION ) $(BACKUP ) :$(VERSION )
8
+ @docker tag $(IMAGE ) :latest $(BACKUP ) :latest
9
+ @docker push $(BACKUP ) :$(VERSION )
10
+ @docker push $(BACKUP ) :latest
4
11
5
12
.PHONY : docker-build
6
13
docker-build :
7
14
docker build -f env/docker/service/Dockerfile \
8
- -t octopot/tablo:$(VERSION ) \
9
- -t octopot/tablo:latest \
10
- -t quay.io/octopot/tablo:$(VERSION ) \
11
- -t quay.io/octopot/tablo:latest \
15
+ -t $(IMAGE ) :$(VERSION ) \
16
+ -t $(IMAGE ) :latest \
12
17
--force-rm --no-cache --pull --rm \
13
18
.
14
19
@@ -17,17 +22,15 @@ docker-publish: docker-build docker-push
17
22
18
23
.PHONY : docker-push
19
24
docker-push :
20
- docker push octopot/tablo:$(VERSION )
21
- docker push octopot/tablo:latest
22
- docker push quay.io/octopot/tablo:$(VERSION )
23
- docker push quay.io/octopot/tablo:latest
25
+ @docker push $(IMAGE ) :$(VERSION )
26
+ @docker push $(IMAGE ) :latest
24
27
25
28
.PHONY : docker-run
26
29
docker-run :
27
- docker run --rm -it \
28
- --name tablo -dev \
29
- -p 8080:8080 \
30
- -p 8090:8090 \
31
- -p 8091:8091 \
32
- -p 8092:8092 \
33
- octopot/tablo :$(VERSION ) run --with-monitoring --with-profiling
30
+ @ docker run --rm -it \
31
+ --name $( subst /,-, $( IMAGE ) ) -dev \
32
+ -p 8080:8080 \
33
+ -p 8090:8090 \
34
+ -p 8091:8091 \
35
+ -p 8092:8092 \
36
+ $( IMAGE ) :$(VERSION ) run --with-monitoring --with-profiling
You can’t perform that action at this time.
0 commit comments