Skip to content

Commit

Permalink
Build and Install Bootc Image
Browse files Browse the repository at this point in the history
Signed-off-by: Liora Milbaum <[email protected]>
  • Loading branch information
lmilbaum committed May 4, 2024
1 parent e9d5aa8 commit 00be92d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/training-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- main
paths:
- .github/workflows/training-e2e.yaml
- training

workflow_dispatch:

Expand All @@ -21,9 +22,9 @@ env:
TF_VAR_aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
TF_VAR_aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
# concurrency:
# group: ${{ github.workflow }}
# cancel-in-progress: false

jobs:
e2e:
Expand Down
19 changes: 14 additions & 5 deletions training/provision/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
register: build_result
ansible.builtin.shell: |
podman build -t derived_image:latest -f /tmp/Containerfile --authfile=/etc/containers/auth.json .
podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /:/target -v /var/lib/containers:/var/lib/containers derived_image:latest bootc install to-filesystem --karg=console=ttyS0,115200n8 --replace=alongside /target
podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /:/target -v /var/lib/containers:/var/lib/containers localhost/derived_image:latest bootc install to-filesystem --karg=console=ttyS0,115200n8 --replace=alongside /target
- name: Check on Build and Install Bootc Image
async_status:
jid: "{{ build_result.ansible_job_id }}"
Expand All @@ -51,6 +51,15 @@
retries: 100
delay: 10

- name: Restart instance
ansible.builtin.reboot:
test_command: which ilab
# - name: List images
# register: list_result
# ansible.builtin.shell: |
# podman images

# - ansible.builtin.debug: msg="{{ list_result }}"

# - name: Restart instance
# ansible.builtin.reboot:
# test_command: which ilab
# # vars:
# # remote_user: root

0 comments on commit 00be92d

Please sign in to comment.