Skip to content

Commit

Permalink
debug nerdctl
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Mar 3, 2024
1 parent 4244df7 commit b2c3d29
Showing 1 changed file with 38 additions and 27 deletions.
65 changes: 38 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,36 @@ jobs:
# Do not cancel all jobs if one fails
fail-fast: false
matrix:
python_version: ["3.9"]
container_engine:
- podman
repo_type:
# Only test a subset of the repo2docker tests since we're testing podman,
# not the full repo2docker functionality
- base
- conda/py310-requirements-file
- dockerfile
# - external
# - julia
# - memlimit
# - nix
# - pipfile
# - r
- unit
- venv/default
# python_version: ["3.9"]
# container_engine:
# - podman
# repo_type:
# # Only test a subset of the repo2docker tests since we're testing podman,
# # not the full repo2docker functionality
# - base
# - conda/py310-requirements-file
# - dockerfile
# # - external
# # - julia
# # - memlimit
# # - nix
# # - pipfile
# # - r
# - unit
# - venv/default
include:
- python_version: "3.11"
container_engine: docker
repo_type: base
- python_version: "3.11"
container_engine: docker
repo_type: venv/default
# - python_version: "3.11"
# container_engine: docker
# repo_type: base
# - python_version: "3.11"
# container_engine: docker
# repo_type: venv/default
- python_version: "3.11"
container_engine: nerdctl
repo_type: base
- python_version: "3.11"
container_engine: nerdctl
repo_type: venv/default
# - python_version: "3.11"
# container_engine: nerdctl
# repo_type: venv/default

steps:
- name: Checkout repo
Expand All @@ -67,7 +67,18 @@ jobs:
sudo systemctl disable --now docker
curl -sfL https://github.com/containerd/nerdctl/releases/download/v$NERDCTL_VERSION/nerdctl-full-$NERDCTL_VERSION-linux-amd64.tar.gz | sudo tar -zxvf - -C /usr/local
# https://github.com/containerd/nerdctl/blob/v1.7.4/docs/faq.md#does-nerdctl-have-an-equivalent-of-sudo-usermod--ag-docker-user-
sudo chmod +s /usr/local/bin/nerdctl
# sudo chmod +s /usr/local/bin/nerdctl
containerd-rootless-setuptool.sh install
containerd-rootless-setuptool.sh install-buildkit
- name: Run nerdctl
if: matrix.container_engine == 'nerdctl'
run: |
nerdctl version
nerdctl info
echo FROM busybox > Dockerfile
nerdctl build -t tmp .
nerdctl run tmp date
- name: Install
run: |
Expand Down

0 comments on commit b2c3d29

Please sign in to comment.