Skip to content

Commit

Permalink
Merge pull request #71 from grycap/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
micafer authored Jan 11, 2024
2 parents 17ed996 + 1ef4710 commit bda6a00
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
matrix:
distro:
- centos8
- centos7
- rockylinux9
- ubuntu2004
- ubuntu1804
- ubuntu2204

steps:
- name: Check out the codebase.
Expand Down Expand Up @@ -49,10 +49,9 @@ jobs:
matrix:
distro:
- centos8
- centos7
- ubuntu2204
- rockylinux9
- ubuntu2004
- ubuntu1804
- ubuntu2204

steps:
- name: Check out the codebase.
Expand Down
11 changes: 11 additions & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
vars:
ansible_python_interpreter: /usr/bin/python
nvidia_driver_skip_reboot: yes
docker_compose_version: v2.23.2
tasks:
- name: Link python
raw: ls /usr/bin/python || { ls /usr/bin/python2 && ln -s /usr/bin/python2 /usr/bin/python; } || { ls /usr/bin/python3 && ln -s /usr/bin/python3 /usr/bin/python; }
Expand Down Expand Up @@ -65,3 +66,13 @@
that:
- "'containerd.runtimes.nvidia' in slurpfile['content'] | b64decode"
when: ansible_os_family == "Debian" and lookup('env','CONTAINERD') == "1"

- command: docker-compose -v
changed_when: false
register: docker_compose_v
when: lookup('env','CONTAINERD') == "0"

- assert:
that:
- "docker_compose_version[1:] in docker_compose_v.stdout"
when: lookup('env','CONTAINERD') == "0"
6 changes: 5 additions & 1 deletion tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@
creates: /usr/bin/pip

- name: Install dependencies for docker management pip3
pip: name=docker,docker-compose executable=pip3
pip:
name:
- docker<7.0.0 # Fix version to avoid errors in ansible docker_compose module
- docker-compose
executable: pip3
when: ansible_python.version.major > 2

- name: Remove docker-compose v1 bin
Expand Down

0 comments on commit bda6a00

Please sign in to comment.