-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,41 +13,41 @@ jobs: | |
- uses: pre-commit/[email protected] | ||
|
||
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: | | ||
|