Skip to content

Commit

Permalink
Merge pull request #436 from containers/reboot
Browse files Browse the repository at this point in the history
restart test environment instance after bootc install
  • Loading branch information
lmilbaum authored May 2, 2024
2 parents 0037f97 + 4f93fac commit a5fba23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Finally all of our testing framework workflows will call `terraform destroy` to

IMPORTATNT: If you are doing development and testing, please make sure that instances in AWS are spun down before leaving if you have access to the AWS account.

### testing_bootc specific pieces
### training-e2e

This workflow is based off of `Fedroa 40`. It provisions a `g5.8xlarge` AWS EC2 instance. In the ansible playbook for this workflow, it will first check that the only requirement -- podman -- is installed to before running the bootc install.
The test environment is initially based off of `Fedroa 40`.
It bootstraps a `g5.8xlarge` AWS EC2 instance with Terraform.
Provisioning is executed with ansible. The ansible playbook is invoking bootc install and
reboots the instance.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bootc Images Testing Framework
name: traning E2E

on:
schedule: # schedule the job to run every day at midnight
Expand All @@ -9,7 +9,7 @@ on:
branches:
- main
paths:
- .github/workflows/bootc_testing_framework.yaml
- .github/workflows/training-e2e.yaml

workflow_dispatch:

Expand All @@ -26,7 +26,7 @@ concurrency:
cancel-in-progress: false

jobs:
integration-tests:
e2e:
if: github.repository == 'containers/ai-lab-recipes'
runs-on: ubuntu-22.04
strategy:
Expand Down
4 changes: 4 additions & 0 deletions training/provision/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@
privileged: yes
pid_mode: host
command: "bootc install to-filesystem --karg=console=ttyS0,115200n8 --replace=alongside /target"

- name: Restart instance
ansible.builtin.reboot:
test_command: pwd

0 comments on commit a5fba23

Please sign in to comment.