Commit 00ae31cb authored by Lars Gierth's avatar Lars Gierth

docker: make dockerfile differences more obvious

License: MIT
Signed-off-by: default avatarLars Gierth <larsg@systemli.org>
parent 994109c7
FROM alpine:3.3
MAINTAINER Lars Gierth <lgierth@ipfs.io>
# There is a copy of this Dockerfile in test/sharness,
# There is a copy of this Dockerfile called Dockerfile.fast,
# which is optimized for build time, instead of image size.
#
# Please keep these two Dockerfiles in sync.
......
FROM alpine:3.3
MAINTAINER Lars Gierth <lgierth@ipfs.io>
# This is a copy of the root Dockerfile,
# This is a copy of /Dockerfile,
# except that we optimize for build time, instead of image size.
#
# Please keep these two Dockerfiles in sync.
#
# Only sections different from the root Dockerfile are commented.
EXPOSE 4001
......
......@@ -25,7 +25,7 @@ bin/random: $(RANDOMSRC)/**/*.go
# just build it every time... this part isn't
# even the lengthy part, and it decreases pain.
docker_ipfs_image:
docker build -t $(IMAGE_NAME) -f test/Dockerfile .
docker build -t $(IMAGE_NAME) -f Dockerfile.fast .
docker images | grep $(IMAGE_NAME)
clean:
......
......@@ -33,7 +33,7 @@ TEST_TESTS_DIR=$(dirname "$TEST_SCRIPTS_DIR")
APP_ROOT_DIR=$(dirname "$TEST_TESTS_DIR")
test_expect_success "docker image build succeeds" '
docker_build "$TEST_TESTS_DIR/Dockerfile" "$APP_ROOT_DIR" >actual ||
docker_build "$TEST_TESTS_DIR/../Dockerfile.fast" "$APP_ROOT_DIR" >actual ||
test_fsh echo "TEST_TESTS_DIR: $TEST_TESTS_DIR" ||
test_fsh echo "APP_ROOT_DIR : $APP_ROOT_DIR" ||
test_fsh cat actual
......
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