2021-03-29 13:57:53 +07:00
|
|
|
DOCKER_IMAGE=cubetiq/calpine-node
|
2022-05-06 10:37:14 +07:00
|
|
|
DOCKER_IMAGE_GIT=cubetiq/calpine-node-git
|
2023-03-31 18:05:03 +07:00
|
|
|
DOCKER_IMAGE_NAME=${DOCKER_IMAGE}:18
|
2021-03-29 13:57:53 +07:00
|
|
|
|
|
|
|
build:
|
2022-12-27 20:37:56 +07:00
|
|
|
@echo 'Starting docker build with slim'
|
|
|
|
docker build -f Dockerfile.slim . -t ${DOCKER_IMAGE}:slim
|
|
|
|
|
|
|
|
@echo 'Starting docker push with slim'
|
|
|
|
docker push ${DOCKER_IMAGE}:slim
|
|
|
|
|
2021-03-29 13:57:53 +07:00
|
|
|
@echo 'Starting docker build'
|
|
|
|
docker build . -t ${DOCKER_IMAGE}
|
|
|
|
|
|
|
|
@echo 'Starting docker push'
|
|
|
|
docker tag ${DOCKER_IMAGE} ${DOCKER_IMAGE_NAME}
|
|
|
|
docker push ${DOCKER_IMAGE}
|
|
|
|
docker push ${DOCKER_IMAGE_NAME}
|
|
|
|
|
2022-05-06 10:37:14 +07:00
|
|
|
@echo 'Starting docker build with git'
|
2022-05-06 10:45:16 +07:00
|
|
|
docker build -f Dockerfile.git . -t ${DOCKER_IMAGE_GIT}
|
2022-05-06 10:37:14 +07:00
|
|
|
|
|
|
|
@echo 'Starting docker push with git'
|
|
|
|
docker push ${DOCKER_IMAGE_GIT}
|
|
|
|
|
2022-05-06 10:42:21 +07:00
|
|
|
.PHONY:build
|
2022-08-25 11:50:36 +07:00
|
|
|
|
|
|
|
test:
|
2022-12-27 20:37:56 +07:00
|
|
|
@echo 'Starting docker build with slim'
|
|
|
|
docker build -f Dockerfile.slim . -t ${DOCKER_IMAGE}:slim
|
|
|
|
|
2022-08-25 11:50:36 +07:00
|
|
|
@echo 'Starting docker build'
|
|
|
|
docker build . -t ${DOCKER_IMAGE}
|
2022-12-27 20:37:56 +07:00
|
|
|
|
|
|
|
@echo 'Starting docker run with slim'
|
|
|
|
docker run --rm -it ${DOCKER_IMAGE}:slim --version
|
|
|
|
|
2022-08-25 11:50:36 +07:00
|
|
|
@echo 'Starting docker run'
|
|
|
|
docker run --rm -it ${DOCKER_IMAGE} --version
|
2022-12-27 20:37:56 +07:00
|
|
|
|
2022-08-25 11:50:36 +07:00
|
|
|
@echo 'Starting docker run with git'
|
|
|
|
docker run --rm -it ${DOCKER_IMAGE_GIT} --version
|
|
|
|
|
|
|
|
.PHONY:test
|