From f8e8550fc8e4412220904cf16eacd1cb351c7ca9 Mon Sep 17 00:00:00 2001 From: Kamoltat Sirivadhna Date: Fri, 14 Jan 2022 13:34:23 -0500 Subject: [PATCH] Compose teuthology master branch and use beanstalk Compose teuthology version that uses beanstalk. Signed-off-by: Kamoltat Sirivadhna --- Dockerfile | 2 +- docs/docker-compose/docker-compose.yml | 15 ++++++++------- docs/docker-compose/start.sh | 15 +++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09c6c68f13..887bb44719 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \ git qemu-utils python3-dev libssl-dev ipmitool \ python3-pip python3-virtualenv vim \ libev-dev libvirt-dev libffi-dev \ - libyaml-dev lsb-release && apt-get \ + libyaml-dev lsb-release beanstalkd && apt-get \ clean all RUN mkdir ../archive_dir RUN mkdir log diff --git a/docs/docker-compose/docker-compose.yml b/docs/docker-compose/docker-compose.yml index 849e9c69c4..259cf9bdd9 100644 --- a/docs/docker-compose/docker-compose.yml +++ b/docs/docker-compose/docker-compose.yml @@ -51,6 +51,13 @@ services: retries: 2 ports: - 8081:8081 + beanstalk: + build: ../../beanstalk/alpine + depends_on: + pulpito: + condition: service_healthy + ports: + - "11300:11300" teuthology: build: ./teuthology depends_on: @@ -58,10 +65,4 @@ services: condition: service_healthy links: - paddles - beanstalk: - build: ../../beanstalk/alpine - depends_on: - pulpito: - condition: service_healthy - ports: - - "11300:11300" \ No newline at end of file + - beanstalk \ No newline at end of file diff --git a/docs/docker-compose/start.sh b/docs/docker-compose/start.sh index c5934d88db..92ae606e8f 100755 --- a/docs/docker-compose/start.sh +++ b/docs/docker-compose/start.sh @@ -1,15 +1,12 @@ #!/bin/bash +# Clone paddles and teuthology + git clone https://github.com/ceph/paddles.git cd paddles -git fetch origin pull/94/head:wip-amathuria-removing-beanstalkd -git checkout wip-amathuria-removing-beanstalkd cd ../ git clone https://github.com/ceph/teuthology.git -cd teuthology -git fetch origin pull/1650/head:wip-amathuria-replace-beanstalkd-paddles -git fetch origin pull/94/head:wip-amathuria-removing-beanstalkd -git checkout wip-amathuria-replace-beanstalkd-paddles -cd .. + +# Check for .teuthology.yaml file and copy it to teuthology if [ -f ".teuthology.yaml" ]; then cp .teuthology.yaml teuthology/. @@ -18,6 +15,8 @@ else exit 1 fi -# until the branch we check out above has a Dockerfile of its own +# Copy Docker file into teuthology cp ../../Dockerfile teuthology/. + +# docker-compose docker-compose up --build -- 2.39.5