Merge "Update our gitea images to bullseye"

This commit is contained in:
Zuul 2021-10-06 15:53:35 +00:00 committed by Gerrit Code Review
commit 9f1f1ef811
3 changed files with 7 additions and 10 deletions

View File

@ -23,7 +23,7 @@
###################################
#Build stage
FROM docker.io/library/golang:1.16-buster AS build-env
FROM docker.io/library/golang:1.16-bullseye AS build-env
LABEL maintainer="infra-root@openstack.org"
@ -33,7 +33,7 @@ ENV TAGS "bindata $TAGS"
#Build deps
RUN apt-get update && apt-get -y install build-essential git apt-transport-https curl gnupg2 \
&& curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& echo "deb https://deb.nodesource.com/node_14.x buster main" | tee /etc/apt/sources.list.d/nodesource.list \
&& echo "deb https://deb.nodesource.com/node_14.x bullseye main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get -q --option "Dpkg::Options::=--force-confold" --assume-yes install nodejs \
&& mkdir -p ${GOPATH}/src/code.gitea.io/gitea
@ -49,7 +49,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
###################################
# Basic system setup common to all containers in our pod
FROM docker.io/library/debian:buster-slim as base
FROM docker.io/library/debian:bullseye-slim as base
RUN apt-get update && apt-get -y install \
bash \
@ -106,12 +106,9 @@ USER 1000:1000
# The openssh server image
FROM base as gitea-openssh
# We enable backports here to install newer openssh which includes
# support for options that gitea's ssh configuration expects
RUN echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confold" \
-t buster-backports install openssh-server \
install openssh-server \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /run/sshd

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
FROM docker.io/opendevorg/python-base:3.7 as build
FROM docker.io/opendevorg/python-base:3.9-bullseye as build
RUN apt-get update && apt-get -y install \
git \

View File

@ -3,7 +3,7 @@
name: system-config-build-image-jinja-init
description: Build a jinja-init image.
parent: system-config-build-image
requires: python-base-3.7-buster-container-image
requires: python-base-3.9-bullseye-container-image
provides: jinja-init-container-image
vars: &jinja-init_vars
docker_images:
@ -18,7 +18,7 @@
name: system-config-upload-image-jinja-init
description: Build and upload a jinja-init image.
parent: system-config-upload-image
requires: python-base-3.7-buster-container-image
requires: python-base-3.9-bullseye-container-image
provides: jinja-init-container-image
vars: *jinja-init_vars
files: *jinja-init_files