remove create random container.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-07-11 10:33:18 +08:00
parent a85cd698cf
commit 1c20117b7d
1 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,6 @@ PRODUCTION_IMAGE := "gorush"
DEPLOY_ACCOUNT := "appleboy"
VERSION := $(shell git describe --tags)
TARGETS_NOVENDOR := $(shell glide novendor)
RANDOM := $(shell date '+%Y%m%d%H%M%S%s')
all: build
@ -53,8 +52,8 @@ docker_build: clean
docker run --rm $(BUILD_IMAGE) > gorush.tar.gz
docker_test: init
docker-compose -p ${RANDOM} -f docker/docker-compose.testing.yml run --rm gorush
docker-compose -p ${RANDOM} -f docker/docker-compose.testing.yml down
docker-compose -p ${PRODUCTION_IMAGE} -f docker/docker-compose.testing.yml run --rm gorush
docker-compose -p ${PRODUCTION_IMAGE} -f docker/docker-compose.testing.yml down
docker_production: docker_build
docker build --rm -t $(PRODUCTION_IMAGE) -f docker/Dockerfile.dist .