nickthecook/ops

Automatically build platform containers when platform tests are run

nickthecook opened this issue · 1 comments

On a machine with no platform test container image, ops tpe produces this:

$ ops tpe
Running 'cd platforms && ops test-e2e ' from ops.yml in environment 'dev'...
Running 'bin/run.sh "bin/ops test-e2e" $TEST_PLATFORMS ' from ops.yml in environment 'dev'...
bin/run.sh: Running 'bin/ops test-e2e' on platforms: ops-debian
bin/run.sh: Mounting '/Users/nickthecook/src/ops' into the container at '/ops'.
bin/run.sh: Running new container 'ops-debian_bin_ops_test_e2e' from image 'ops-debian'...
Unable to find image 'ops-debian:latest' locally
docker: Error response from daemon: pull access denied for ops-debian, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

That's because the container image ops-debian did not exist, so docker thought it was meant to pull the container from docker hub.

Automatically build the image if it's not already present when ops t or ops e2e are run in platforms/. Possibly using the new before hooks...?

Fixed with hooks in 0.12!