Skip to content

Commit

Permalink
upping worker and running bootc install
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <[email protected]>
  • Loading branch information
Gregory-Pereira committed May 1, 2024
1 parent 8ea285a commit c957b5a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bootc_testing_framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
matrix:
include:
- arch: amd64
aws_image_type: t2.micro
aws_image_type: g5.8xlarge
image_name: nvidia-bootc
aws_ami_architecture: x86_64
steps:
Expand Down Expand Up @@ -88,10 +88,10 @@ jobs:
run: |
ansible-playbook ./main/training/provision/playbook.yml \
-i terraform-test-environment-module/hosts.ini \
--private-key=terraform-test-environment-module/${{ steps.terraform-output.outputs.pem_filename }}
--private-key=terraform-test-environment-module/${{ steps.terraform-output.outputs.pem_filename }} \
--extra-vars "image_name=${{ matrix.image_name }}"
env:
ANSIBLE_HOST_KEY_CHECKING: false
image_name: ${{ matrix.image_name }}

- name: Destroy Test Environment
id: down
Expand Down
19 changes: 18 additions & 1 deletion training/provision/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,24 @@
- name: Gather facts for first time
ansible.builtin.setup:

- name: Required Packages
- name: Check Podman Present
ansible.builtin.package:
name: podman
state: present

- name: Run container
containers.podman.podman_container:
name: "{{ image_name }}"
image: "quay.io/ai-lab/{{ image_name }}:latest"
state: started
auto_remove: yes
cap_add:
- sys_admin
security_opt:
- "label=type:unconfined_t"
volumes:
- "/:/target"
- "/var/lib/containers:/var/lib/containers"
privileged: yes
pid_mode: host
command: "bootc install to-filesystem --karg=console=ttyS0,115200n8 --replace=alongside /target"

0 comments on commit c957b5a

Please sign in to comment.