Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/docker-compose/teuthology/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
FROM ubuntu:latest
ARG SSH_PRIVKEY_FILE=id_ed25519
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa -y
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry what are these packages?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the deadsnakes PPA is where old versions of Python for newer Ubuntu versions are maintained

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh i see, just knew this

RUN apt-get update && \
apt-get install -y \
git \
qemu-utils \
python3-dev \
python3.8-dev \
python3.8 \
libssl-dev \
ipmitool \
python3-pip \
python3-venv \
python3.8-venv \
vim \
locales-all \
libev-dev \
libvirt-dev \
libffi-dev \
libyaml-dev \
lsb-release && \
apt-get clean all
RUN ln -s /usr/bin/python3.8 /usr/bin/python
WORKDIR /teuthology
COPY requirements.txt requirements.yml ansible.cfg bootstrap /teuthology/
RUN \
Expand All @@ -35,7 +41,7 @@ RUN mkdir -p /etc/ansible
COPY docs/docker-compose/teuthology/ansible_inventory/hosts /etc/ansible/
COPY docs/docker-compose/teuthology/ansible_inventory/secrets /etc/ansible/
RUN \
mkdir $HOME/.ssh && \
mkdir -p $HOME/.ssh && \
touch $HOME/.ssh/${SSH_PRIVKEY_FILE} && \
chmod 600 $HOME/.ssh/${SSH_PRIVKEY_FILE} && \
echo "StrictHostKeyChecking=no" > $HOME/.ssh/config && \
Expand Down