Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
00ae31cb
Commit
00ae31cb
authored
8 years ago
by
Lars Gierth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker: make dockerfile differences more obvious
License: MIT Signed-off-by:
Lars Gierth
<
larsg@systemli.org
>
parent
994109c7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
Dockerfile
Dockerfile
+1
-1
Dockerfile.fast
Dockerfile.fast
+1
-3
test/3nodetest/Makefile
test/3nodetest/Makefile
+1
-1
test/sharness/t0300-docker-image.sh
test/sharness/t0300-docker-image.sh
+1
-1
No files found.
Dockerfile
View file @
00ae31cb
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.
...
...
This diff is collapsed.
Click to expand it.
test/
Dockerfile
→
Dockerfile
.fast
View file @
00ae31cb
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
...
...
This diff is collapsed.
Click to expand it.
test/3nodetest/Makefile
View file @
00ae31cb
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
test/sharness/t0300-docker-image.sh
View file @
00ae31cb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment