Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from devspaces-samples/sv-ansible-airgap
Browse files Browse the repository at this point in the history
feat: install k8s python module; use digest in platform's image
  • Loading branch information
svor authored Jun 29, 2023
2 parents 8318072 + 42ba538 commit 378a4ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ FROM quay.io/ansible/creator-ee@sha256:c89ecbcf47bfa956a2ed3c4939cd29a53298943c8

ENV HOME=/home/runner

# install kubernetes module required by molecule
RUN pip3 install kubernetes==26.1.0

## kubectl
RUN \
microdnf install -y which && \
microdnf clean all && \
curl -LO https://dl.k8s.io/release/`curl -LS https://dl.k8s.io/release/stable.txt`/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin && \
Expand Down
11 changes: 1 addition & 10 deletions roles/backup_file/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,7 @@ driver:
connection: local
platforms:
- name: molecule-ubi8-init-1
image: registry.access.redhat.com/ubi8/ubi-init
workingDir: '/tmp'
- name: molecule-rhel8-python-39
image: registry.redhat.io/rhel8/python-39
workingDir: '/tmp'
- name: molecule-rhel8-python-38
image: registry.redhat.io/rhel8/python-38
workingDir: '/tmp'
- name: molecule-centos8-stream
image: quay.io/centos/centos:stream8
image: registry.access.redhat.com/ubi8/ubi-init@sha256:75cb1eb60b9636f8daa584c231db552c1de94006778e7224643804a696f04fad
workingDir: '/tmp'
provisioner:
name: ansible
Expand Down

0 comments on commit 378a4ba

Please sign in to comment.