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 be62143
Showing 1 changed file with 38 additions and 26 deletions.
64 changes: 38 additions & 26 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 @@ -68,6 +68,18 @@ jobs:
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 buildkitd &
# 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 be62143

Please sign in to comment.