-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
GIT_VERSION := $(shell git describe --tags --abbrev=0 --always)
AUTHOR="davidliyutong"
DEV_AUTHOR="davidliyutong"
build.docker.native:
docker build -t ${AUTHOR}/clpl-apiserver:${GIT_VERSION} -f manifests/docker/Dockerfile .
docker tag ${AUTHOR}/clpl-apiserver:${GIT_VERSION} davidliyutong/clpl-apiserver:latest
build.docker.buildx:
docker buildx build --platform=linux/amd64,linux/arm64 -t ${AUTHOR}/clpl-apiserver:${GIT_VERSION} -t ${AUTHOR}/clpl-apiserver:latest -f manifests/docker/Dockerfile .
docker buildx build --load -t ${AUTHOR}/clpl-apiserver:latest -f manifests/docker/Dockerfile .
push.docker.buildx:
docker buildx build --push --platform=linux/amd64,linux/arm64 -t ${AUTHOR}/clpl-apiserver:${GIT_VERSION} -t ${AUTHOR}/clpl-apiserver:latest -f manifests/docker/Dockerfile .
test.docker:
docker run --rm -it --net=host -p 8080:8080 ${AUTHOR}/clpl-apiserver:latest
task.generate_client:
openapi-generator-cli generate -g python -i http://127.0.0.1:8080/docs/openapi.json --skip-validate-spec -o python-client
dev.push:
docker buildx build --push --platform=linux/amd64,linux/arm64 -t ${DEV_AUTHOR}/clpl-apiserver:latest-dev -f manifests/docker/Dockerfile .