Commit f7063355 by isabelgk

Testing time to build go-server

parent dc5de032
......@@ -7,7 +7,7 @@ dockerfiles:=$(shell ls docker/build/*/Dockerfile)
all_images:=$(patsubst docker/build/%/Dockerfile,%,$(dockerfiles))
# Used in the test.mk file as well.
images:=$(if $(TRAVIS_COMMIT_RANGE),$(shell git diff --name-only $(TRAVIS_COMMIT_RANGE) | python util/parsefiles.py),$(all_images))
images:= go-server
docker_build=docker.build.
docker_test=docker.test.
......@@ -51,7 +51,7 @@ clean: docker.clean
docker.clean:
rm -rf .build
docker.test.shard: $(foreach image,$(shell echo $(images) | python util/balancecontainers.py $(SHARDS) | awk 'NR%$(SHARDS)==$(SHARD)'),$(docker_test)$(image))
docker.test.shard: $(foreach image,$(shell echo $(images) | tr ' ' '\n' | awk 'NR%$(SHARDS)==$(SHARD)'),$(docker_test)$(image))
docker.build: $(foreach image,$(images),$(docker_build)$(image))
docker.test: $(foreach image,$(images),$(docker_test)$(image))
......@@ -65,7 +65,9 @@ $(docker_build)%: docker/build/%/Dockerfile
docker build -f $< .
$(docker_test)%: .build/%/Dockerfile.test
docker build -t $*:test -f $< .
date
docker build -t $*:test -f $< .
date
$(docker_pkg)%: .build/%/Dockerfile.pkg
docker build -t $*:latest -f $< .
......
......@@ -16,7 +16,6 @@ services:
context: ../../../.
dockerfile: docker/build/go-agent/Dockerfile
image: edxops/go-agent:latest
networks:
- go-network
environment:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment