From ab64475dc2360df0049f2ec3c2f4942fa21a21a0 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sun, 3 Mar 2024 18:35:33 +0000 Subject: [PATCH] debug nerdctl --- .github/workflows/build.yml | 66 ++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7ff226..64c7e7c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,41 +13,41 @@ jobs: - uses: pre-commit/action@v3.0.1 test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: # 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 @@ -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: |