Skip to content

Commit

Permalink
Merge branch 'bugfix/upgrade-buildbot-workers-to-python3' into tmp/oc…
Browse files Browse the repository at this point in the history
…topus/w/2.6/bugfix/upgrade-buildbot-workers-to-python3
  • Loading branch information
bert-e committed Jan 9, 2021
2 parents 751283c + dcfb091 commit a06f729
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 26 deletions.
8 changes: 4 additions & 4 deletions eve/workers/docker-centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

ARG BUILDBOT_VERSION=0.9.12
ARG BUILDBOT_VERSION=2.0.1

ENV LANG=en_US.utf8

Expand All @@ -11,12 +11,12 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
&& yum install -y --setopt=skip_missing_names_on_install=False \
gcc \
sudo \
python-devel \
python-pip \
python36 \
python36-pip \
git \
&& adduser -u 1042 --home /home/eve eve \
&& chown -R eve:eve /home/eve \
&& pip install buildbot-worker==${BUILDBOT_VERSION}
&& python3.6 -m pip install buildbot-worker==${BUILDBOT_VERSION}

# Add eve to sudoers.
RUN echo "eve ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/eve
Expand Down
6 changes: 2 additions & 4 deletions eve/workers/pod-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

ARG BUILDBOT_VERSION=0.9.12
ARG BUILDBOT_VERSION=2.0.1

WORKDIR /home/eve/workspace

Expand All @@ -13,8 +13,6 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
gcc \
hardlink \
make \
python-devel \
python-pip \
python36 \
python36-devel \
python36-pip \
Expand All @@ -25,7 +23,7 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
docker-ce-cli-18.09.6 \
&& adduser -u 1042 --home /home/eve eve --groups docker \
&& chown eve:eve /home/eve/workspace \
&& pip install buildbot-worker==${BUILDBOT_VERSION}
&& python3.6 -m pip install buildbot-worker==${BUILDBOT_VERSION}

# Add eve to sudoers.
RUN echo "eve ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/eve
Expand Down
9 changes: 5 additions & 4 deletions eve/workers/pod-example-solution-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

ARG BUILDBOT_VERSION=0.9.12
ARG BUILDBOT_VERSION=2.0.1
ARG OPERATOR_SDK_VERSION=v0.17.0

WORKDIR /home/eve/workspace
Expand All @@ -15,10 +15,11 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
gcc \
hardlink \
make \
python36 \
python36-devel \
python36-pip \
genisoimage \
golang \
python-devel \
python-pip \
skopeo \
yum-utils \
docker-ce-cli-18.09.6 \
Expand All @@ -30,7 +31,7 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
&& adduser -u 1042 --home /home/eve eve --groups docker \
&& mkdir -p /home/eve/.cache /home/eve/go \
&& chown eve:eve /home/eve/workspace /home/eve/.cache /home/eve/go \
&& pip install buildbot-worker==${BUILDBOT_VERSION} pyyaml
&& python3.6 -m pip install buildbot-worker==${BUILDBOT_VERSION} pyyaml

# Add eve to sudoers.
RUN echo "eve ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/eve
Expand Down
7 changes: 4 additions & 3 deletions eve/workers/pod-linter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CI lint container - Fedora for recent ShellCheck version
FROM fedora:32

ARG BUILDBOT_VERSION=0.9.12
ARG BUILDBOT_VERSION=2.0.1
ARG GO_VERSION=1.13.10
ARG OPERATOR_SDK_VERSION=v0.17.0

Expand All @@ -21,12 +21,13 @@ RUN dnf install -y git \
python-pip \
python3 \
python3-devel \
python3-pip \
ShellCheck \
&& dnf clean all \
&& adduser -u 1042 --home /home/eve eve \
&& chown -R eve:eve /home/eve \
&& pip install tox \
&& pip install buildbot-worker==${BUILDBOT_VERSION}
&& pip3 install tox \
&& pip3 install buildbot-worker==${BUILDBOT_VERSION}

# Add eve to sudoers.
RUN echo "eve ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/eve
Expand Down
8 changes: 5 additions & 3 deletions eve/workers/pod-unit-tests/salt/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

ARG BUILDBOT_VERSION=0.9.12
ARG BUILDBOT_VERSION=2.0.1

ENV LANG=en_US.utf8

Expand All @@ -19,8 +19,10 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
git \
&& adduser -u 1042 --home /home/eve eve \
&& chown -R eve:eve /home/eve \
&& pip install buildbot-worker==${BUILDBOT_VERSION} \
&& python3.6 -m pip install six==1.14.0 tox==3.14.3
&& python3.6 -m pip install \
buildbot-worker==${BUILDBOT_VERSION} \
six==1.14.0 \
tox==3.14.3

# Add eve to sudoers.
RUN echo "eve ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/eve
Expand Down
9 changes: 5 additions & 4 deletions eve/workers/pod-unit-tests/storage-operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

ARG BUILDBOT_VERSION=0.9.12
ARG BUILDBOT_VERSION=2.0.1
ARG GO_VERSION=1.13.10
ARG OPERATOR_SDK_VERSION=v0.17.0

Expand All @@ -14,13 +14,14 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
gcc \
sudo \
make \
python-devel \
python-pip \
python36 \
python36-devel \
python36-pip \
hg \
git \
&& adduser -u 1042 --home /home/eve eve \
&& chown -R eve:eve /home/eve \
&& pip install buildbot-worker==${BUILDBOT_VERSION}
&& python3.6 -m pip install buildbot-worker==${BUILDBOT_VERSION}

# Add eve to sudoers.
RUN echo "eve ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/eve
Expand Down
9 changes: 5 additions & 4 deletions eve/workers/pod-unit-tests/ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

ARG BUILDBOT_VERSION=0.9.12
ARG BUILDBOT_VERSION=2.0.1

ENV LANG=en_US.utf8

Expand All @@ -10,8 +10,9 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
&& yum install -y --setopt=skip_missing_names_on_install=False \
gcc \
sudo \
python-devel \
python-pip \
python36 \
python36-devel \
python36-pip \
git \
nodejs \
alsa-lib \
Expand All @@ -21,7 +22,7 @@ RUN yum install -y --setopt=skip_missing_names_on_install=False \
xorg-x11-server-Xvfb \
&& adduser -u 1042 --home /home/eve eve \
&& chown -R eve:eve /home/eve \
&& pip install buildbot-worker==${BUILDBOT_VERSION}
&& python3.6 -m pip install buildbot-worker==${BUILDBOT_VERSION}

# Add eve to sudoers.
RUN echo "eve ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/eve
Expand Down

0 comments on commit a06f729

Please sign in to comment.