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 RH UBI 9 #40

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/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on: [push, pull_request]
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
14 changes: 7 additions & 7 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# --- Build the bridge
FROM registry.access.redhat.com/ubi8 AS builder
FROM registry.access.redhat.com/ubi9 AS builder

# dependencies for qpid-proton-c
COPY build/repos/opstools.repo /etc/yum.repos.d/opstools.repo
COPY build/repos/centos9-caracal.repo /etc/yum.repos.d/centos9-caracal.repo

# redhat-rpm-config is required to provide hardening compiling instructions
# (such as /usr/lib/rpm/redhat/redhat-hardened-cc1) even though we're not
Expand All @@ -11,19 +11,19 @@ RUN dnf install qpid-proton-c-devel --setopt=tsflags=nodocs -y && \
dnf install gcc make redhat-rpm-config -y && \
dnf clean all

ENV D=/home/bridge
ENV SGBRIDGE_DIR=/home/bridge

WORKDIR $D
COPY . $D/
WORKDIR $SGBRIDGE_DIR
COPY . $SGBRIDGE_DIR/

RUN make && \
mv bridge /tmp/

# --- end build, create bridge runtime layer ---
FROM registry.access.redhat.com/ubi8
FROM registry.access.redhat.com/ubi9

# dependencies for qpid-proton-c
COPY build/repos/opstools.repo /etc/yum.repos.d/opstools.repo
COPY build/repos/centos9-caracal.repo /etc/yum.repos.d/centos9-caracal.repo

RUN dnf install qpid-proton-c --setopt=tsflags=nodocs -y && \
dnf clean all && \
Expand Down
18 changes: 18 additions & 0 deletions build/repos/centos9-caracal.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CentOS 9 OpenStack repos
#
# Please see https://trunk.rdoproject.org/ and
# https://trunk.rdoproject.org/centos9-caracal/report.html for more information

[delorean-caracal-testing]
name=dlrn-caracal-testing
baseurl=https://trunk.rdoproject.org/centos9-caracal/deps/latest/
enabled=1
gpgcheck=0
module_hotfixes=1

[centos9-opstools]
name=centos9-opstools
baseurl=http://mirror.stream.centos.org/SIGs/9-stream/opstools/$basearch/collectd-5/
enabled=1
gpgcheck=0
module_hotfixes=1
19 changes: 0 additions & 19 deletions build/repos/opstools.repo

This file was deleted.

Loading