TritonDataCenter / sdc-docker

Docker Engine for Triton
Mozilla Public License 2.0
183 stars 49 forks source link

cannot use `build` argument with Triton Docker endpoint #49

Closed bixu closed 9 years ago

bixu commented 9 years ago

See this example from the kitchen-docker Test Kitchen plugin:

irvin # kitchen test
-----> Starting Kitchen (v1.4.0)
-----> Cleaning up any prior instances of <default-ubuntu-1404>
-----> Destroying <default-ubuntu-1404>...
       Finished destroying <default-ubuntu-1404> (0m0.00s).
-----> Testing <default-ubuntu-1404>
-----> Creating <default-ubuntu-1404>...
       Sending build context to Docker daemon 3.072 kB
       Sending build context to Docker daemon
       Error response from daemon: (NotImplemented) build is not implemented (b04f8de9-a1c6-45af-a290-d980be7c3db2)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of docker -H tcp://eu-ams-1.docker.joyent.com:2376 build -f /Users/irvin/stud-cookbook/Dockerfile-kitchen-20150807-17654-9o287n - ----
STDOUT: Sending build context to Docker daemon 3.072 kB
Sending build context to Docker daemon
STDERR: Error response from daemon: (NotImplemented) build is not implemented (b04f8de9-a1c6-45af-a290-d980be7c3db2)
---- End output of docker -H tcp://eu-ams-1.docker.joyent.com:2376 build -f /Users/irvin/stud-cookbook/Dockerfile-kitchen-20150807-17654-9o287n - ----
Ran docker -H tcp://eu-ams-1.docker.joyent.com:2376 build -f /Users/irvin/stud-cookbook/Dockerfile-kitchen-20150807-17654-9o287n - returned 1]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

Would love to be able to reproduce local Test Kitchen integration tests in Triton :)

trentm commented 9 years ago

Yah, 'docker build' isn't supported yet, unfortunately.

Here is our tracker ticket for it (no real details there yet): https://smartos.org/bugview/DOCKER-74