Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update base image to CentOS 9 stream #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

build-check:
name: Build check
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout code
Expand Down
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
FROM quay.io/centos/centos:stream8

# Update repos to use the vault mirror, now that CentOS 8 Stream is EOL
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
FROM quay.io/centos/centos:stream9

# >> ignore SC2086 because passing quoted env vars to dnf causes issues (fail to install)
# hadolint ignore=SC2086
Expand All @@ -20,10 +16,9 @@ RUN INSTALL_PKGS="\
COPY . /source/app
WORKDIR /source/app

RUN alternatives --set python /usr/bin/python3 && \
python -m pip install --no-cache-dir -r requirements-build.txt && \
python -m pip install --no-cache-dir . && \
python -m pip freeze
RUN python3 -m pip install --no-cache-dir -r requirements-build.txt && \
python3 -m pip install --no-cache-dir . && \
python3 -m pip freeze

# Cleanup
# >> ignore SC2086 because passing quoted env vars to dnf causes issues (fail to install)
Expand Down
Loading