diff options
Diffstat (limited to 'playbooks/zuul-stream/2.7-container.yaml')
-rw-r--r-- | playbooks/zuul-stream/2.7-container.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/playbooks/zuul-stream/2.7-container.yaml b/playbooks/zuul-stream/2.7-container.yaml new file mode 100644 index 000000000..76998a01d --- /dev/null +++ b/playbooks/zuul-stream/2.7-container.yaml @@ -0,0 +1,21 @@ +- name: Install docker + include_role: + name: ensure-docker + +- name: Build 2.7 container environment + shell: | + pushd {{ ansible_user_dir }}/src/opendev.org/zuul/zuul/playbooks/zuul-stream/fixtures/ + cat ~/.ssh/id_rsa.pub > authorized_keys + docker build -f Dockerfile.py27 -t zuul_python27 . + args: + executable: /bin/bash + +- name: Run 2.7 container + shell: | + docker run -d -p 2022:22 -p 19887:19887 zuul_python27 + docker ps + +- name: Accept host keys + shell: | + ssh-keyscan -p 2022 localhost >> ~/.ssh/known_hosts + ssh-keyscan -p 2022 127.0.0.2 >> ~/.ssh/known_hosts |