Skip to content

gh-action: install containerd due to Ubuntu Jammy messy dependencies #12

gh-action: install containerd due to Ubuntu Jammy messy dependencies

gh-action: install containerd due to Ubuntu Jammy messy dependencies #12

name: Test pull and run Alpine
# Controls when the action will run.
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
pull-and-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run apt-get update
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get -y install aria2 curl jq
- name: Test pulling Alpine container
run: |
echo "Starting pulling container..."
./dockerhub2oci --repo gliderlabs --image alpine --tag latest
echo "Result:"
ls -la gliderlabs/alpine/latest
- name: Install containerd due to Ubuntu Jammy messy dependencies
run: |
sudo apt-get -y install containerd
- name: Install Charliecloud for testing
run: |
sudo apt-get -y install charliecloud
- name: Test alpine container with Charliecloud
run: |
echo "Creating empty resolv.conf in container..."
touch gliderlabs/alpine/latest/etc/resolv.conf
echo "Running ls -la in container..."
ch-run -v gliderlabs/alpine/latest -- ls -la
echo "Checkout /etc/alpine-release in container..."
ch-run -v gliderlabs/alpine/latest -- cat /etc/alpine-release