Skip to content

Commit

Permalink
Fix ubuntu 22.04 molecule test to actually run on 22.04 (#594)
Browse files Browse the repository at this point in the history
* Fix ubuntu 22.04 molecule test to actually run on 22.04

* Install python3 package instead of just python on Ubuntu

* Adjust python-apt package name for Ubuntu 22.04
  • Loading branch information
slonopotamus authored Apr 2, 2024
1 parent 6095e10 commit 29aa7fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion molecule/_shared/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN if [ $(command -v apt-get) ]; then \
if grep -q "Debian GNU/Linux 11" /etc/os-release; then \
apt-get update && apt-get install -y python sudo bash ca-certificates iproute2 python-apt-common && apt-get clean; \
else \
apt-get update && apt-get install -y python sudo bash ca-certificates iproute2 python-apt && apt-get clean; \
apt-get update && apt-get install -y python3 sudo bash ca-certificates iproute2 python3-apt && apt-get clean; \
fi \
elif [ $(command -v dnf) ]; then \
dnf makecache && dnf --assumeyes install /usr/bin/python3 /usr/bin/python3-config /usr/bin/dnf-3 sudo bash iproute && dnf clean all; \
Expand Down
2 changes: 1 addition & 1 deletion molecule/ubuntu-22.04/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ platforms:
- name: ubuntu-22.04
groups:
- consul_instances
image: dokken/ubuntu-20.04
image: dokken/ubuntu-22.04
command: /lib/systemd/systemd
dockerfile: ../_shared/Dockerfile.j2
capabilities:
Expand Down

0 comments on commit 29aa7fc

Please sign in to comment.