Skip to content

Commit 38e1aca

Browse files
authored
SDK update (cloud-bulldozer#353)
Update Operator framework from 0.17.0 to 0.17.1 This is now based on ubi8 - thus we need the CentOS AppStream to install redis Resolves #2648
1 parent c29e2d3 commit 38e1aca

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

build/Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
FROM quay.io/operator-framework/ansible-operator:v0.17.0
1+
FROM quay.io/operator-framework/ansible-operator:v0.17.1
2+
USER root
23

34
COPY requirements.yml ${HOME}/requirements.yml
4-
COPY image_resources/centos8-appstream.repo /etc/yum.repos.d/centos8-appstream.repo
55
RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \
66
&& chmod -R ug+rwx ${HOME}/.ansible
77

8-
USER root
9-
RUN dnf install -y --nodocs redis --enablerepo=centos8-appstream && dnf clean all
10-
11-
# Temporally workaround to fix https://github.com/operator-framework/operator-sdk/issues/2648
12-
RUN ln -s ${HOME}/.ansible /.ansible
8+
RUN rpm --nodeps -i http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-repos-8.1-1.1911.0.9.el8.x86_64.rpm http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8.1-1.1911.0.7.el8.noarch.rpm
9+
RUN dnf install -y --nodocs redis && dnf clean all
1310

1411
COPY group_vars/ ${HOME}/group_vars/
1512
COPY roles/ ${HOME}/roles/
13+
COPY meta/ ${HOME}/meta/
1614
COPY watches.yaml ${HOME}/watches.yaml
1715
COPY playbook.yml ${HOME}/playbook.yml
1816
USER 1001

image_resources/centos8-appstream.repo

Lines changed: 0 additions & 5 deletions
This file was deleted.

meta/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
collections:
2+
- community.kubernetes
3+
- operator_sdk.util

playbook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
- hosts: localhost
2+
collections:
3+
- operator_sdk.util
24
gather_facts: no
35
tasks:
46

0 commit comments

Comments
 (0)