Caleb Spare
2b0ebf5d32
Buildfile: for ADD command, determine filename from URL.
...
This is used if the destination is a directory. This makes the URL
download behavior more closely match file copying.
Fixes #1142 .
2013-07-21 23:32:06 -07:00
Caleb Spare
f236e62d9d
Test pulling remote files using ADD in a buildfile.
2013-07-21 23:32:01 -07:00
Michael Crosby
e7f3f6fa5a
Add unit tests for buildfile config instructions
...
Add tests for instructions in the buildfile that
modify the config of the resulting image.
2013-07-18 05:37:28 -09:00
Guillaume J. Charmes
de563a3ea3
Merge pull request #1194 from crosbymichael/build-verbose
...
* Builder: Add verbose output to docker build
2013-07-17 12:53:06 -07:00
Solomon Hykes
2cbf2200ac
Merge pull request #1195 from dotcloud/tests-cleanup
...
* Hack: tests cleanup
2013-07-12 14:51:59 -07:00
Solomon Hykes
6bdb6f226b
Simplify unit tests code with mkRuntime()
2013-07-11 17:59:25 -07:00
Michael Crosby
49044a9608
Fix buildfile tests after rebase
2013-07-11 15:37:26 -09:00
Michael Crosby
474191dd7b
Add verbose output to docker build
...
Verbose output is enabled by default and
the flag -q can be used to suppress the verbose output.
2013-07-11 15:27:33 -09:00
Michael Crosby
40f1e4edbe
Rebased changes buildfile_test
2013-07-10 07:12:57 -09:00
Michael Crosby
1267e15b0f
Add unittest for volume config verification
2013-07-10 06:59:16 -09:00
Michael Crosby
eb9fef2c42
Add VOLUME instruction to buildfile
2013-07-10 06:59:16 -09:00
Guillaume J. Charmes
e43ef364cb
Remove all network dependencies from the test suite
2013-07-08 15:23:04 -07:00
Caleb Spare
19121c16d9
Implement several golint suggestions, including:
...
* Removing type declarations where they're inferred
* Changing Url -> URL, Id -> ID in names
* Fixing snake-case names
2013-07-03 14:36:04 -07:00
Caleb Spare
1cf9c80e97
Mutex style change.
...
For structs protected by a single mutex, embed the mutex for more
concise usage.
Also use a sync.Mutex directly, rather than a pointer, to avoid the
need for initialization (because a Mutex's zero-value is valid and
ready to be used).
2013-07-02 15:53:08 -07:00
Victor Vieux
ebba0a6024
add sleep in tests and go fmt
2013-07-02 10:47:37 +00:00
Michael Crosby
b16ff9f859
Add Entrypoint to builder and container config
...
By setting an entrypoint in the Dockerfile this
allows one to run an image and only pass arguments.
2013-07-01 05:34:27 -09:00
Solomon Hykes
273e0d42b7
* Hack: change builder tests to always use the current unit test image, instead of hardcoding 'docker-ut'
2013-06-29 21:22:15 -07:00
Louis Opter
aa8ea84d11
Fix a nil dereference in buildfile_test.go
...
The test runtime object wasn't properly initialized.
2013-06-27 18:01:10 -07:00
Solomon Hykes
352991bdf4
Merge branch 'simpler-build-upload' ( #900 ) into builder_server-3 ( #848 )
2013-06-20 22:02:36 -07:00
Solomon Hykes
c1a5318d8e
Merge branch 'build-add-file' into simpler-build-upload
...
Conflicts:
buildfile_test.go
2013-06-20 20:42:19 -07:00
Solomon Hykes
cc0f59742f
* Builder: simplified unit tests. The tests are now embedded in the build itself. Yeah baby.
2013-06-20 20:16:39 -07:00
Solomon Hykes
79efcb545d
Merge branch 'master' into simpler-build-upload
2013-06-19 18:48:19 -07:00
Solomon Hykes
55edbcd02f
* Builder: remove duplicate unit test
2013-06-19 14:59:42 -07:00
Guillaume J. Charmes
555552340d
Merge branch 'master' into builder_server-3
...
Conflicts:
buildfile_test.go
2013-06-17 14:01:32 -07:00
Solomon Hykes
f50e40008f
* Builder: added a regression test for #895
2013-06-15 11:35:56 -07:00
Solomon Hykes
061f8d12e0
* Builder: reorganized unit tests for better code reuse, and to test non-empty contexts
2013-06-15 11:07:49 -07:00
Solomon Hykes
38554fc2a7
* Builder: simplify the upload of the build context. Simply stream a tarball instead of multipart upload with 4 intermediary buffers. Simpler, less memory usage, less disk usage, and faster.
2013-06-15 09:38:18 -07:00
Solomon Hykes
5b8287617d
+ Builder: ADD of a local file will detect tar archives and unpack them
...
into the container instead of copying them as a regular file.
* Builder: ADD uses tar/untar for copies instead of calling 'cp -ar'.
This is more consistent, reduces the number of dependencies, and
fixe #896 .
2013-06-14 16:43:39 -07:00
Guillaume J. Charmes
2f14dae83f
Add build UT
2013-06-13 18:52:41 -07:00
Francisco Souza
2e9403b047
build: don't ignore last line in Dockerfile when it doesn't end with \n
2013-06-11 11:39:06 -03:00
Victor Vieux
fd224ee590
linted names
2013-06-04 18:00:22 +00:00
Guillaume J. Charmes
5b33b2463a
Readd build tests
2013-05-28 15:31:06 -07:00