Test with podman

This commit is contained in:
Jacob Kiers 2022-08-10 07:21:28 +00:00
parent b21f41bf42
commit 9e54d81ec7

View File

@ -13,23 +13,26 @@ steps:
path: /var/run path: /var/run
commands: commands:
- cargo check - cargo check
- apt-get update && apt-get install -y ca-certificates curl gnupg lsb-release - apt-get install -y podman
- mkdir -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg # - apt-get update && apt-get install -y ca-certificates curl gnupg lsb-release
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" >> /etc/apt/sources.list.d/docker.list # - mkdir -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
- apt-get update && apt-get install -y docker-ce-cli # - echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" >> /etc/apt/sources.list.d/docker.list
- docker info # - apt-get update && apt-get install -y docker-ce-cli
- docker image list # - docker info
# - docker image list
- "unqualified-search-registries = ["docker.io"]" >> /etc/containers/registries.conf
- podman info
- cargo install cross --git https://github.com/cross-rs/cross - cargo install cross --git https://github.com/cross-rs/cross
- cross build --release --target aarch64-unknown-linux-gnu - cross build --release --target aarch64-unknown-linux-gnu
- ls -lahR target/ - ls -lahR target/
services: # services:
- name: docker # - name: docker
image: docker:dind # image: docker:dind
privileged: true # privileged: true
volumes: # volumes:
- name: dockersock # - name: dockersock
path: /var/run # path: /var/run
volumes: volumes:
- name: dockersock - name: dockersock