Skip to content

Commit 21c8d60

Browse files
committed
Use docker
1 parent a58c5a3 commit 21c8d60

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This repo contains scripts that interact with the [GitHub Actions Runner](https:
55
To set it up, connect a couple of STM32 devices to the runner machine and make sure they are visible when running the following command:
66

77
```sh
8-
podman run --rm --entrypoint st-info --device /dev/bus/usb ghcr.io/osirisrtos/hardware-ci:latest --probe
8+
docker run --rm --entrypoint st-info --device /dev/bus/usb ghcr.io/osirisrtos/hardware-ci:latest --probe
99
```
1010

1111
Very likely, this will fail. The following steps will help you to make it work.
@@ -28,5 +28,5 @@ sudo udevadm control --reload-rules && sudo udevadm trigger
2828
Verify that the devices are accessible now:
2929

3030
```sh
31-
podman run --rm --entrypoint st-info --device /dev/bus/usb ghcr.io/osirisrtos/hardware-ci:latest --probe
31+
docker run --rm --entrypoint st-info --device /dev/bus/usb ghcr.io/osirisrtos/hardware-ci:latest --probe
3232
```

config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ set -eoux pipefail
44
CONTAINER_NAME="osiris-hardware-ci"
55

66
# If there's any container with the same name, remove it.
7-
if podman ps -aq -f name="^${CONTAINER_NAME}$" | grep -q .; then
7+
if docker ps -aq -f name="^${CONTAINER_NAME}$" | grep -q .; then
88
echo "Removing existing container ${CONTAINER_NAME}..."
9-
podman rm "${CONTAINER_NAME}" || true
9+
docker rm "${CONTAINER_NAME}" || true
1010
fi
1111

12-
podman run --rm --name "${CONTAINER_NAME}" -d \
12+
docker run --rm --name "${CONTAINER_NAME}" -d \
1313
-v "$(pwd)/chips.yml:/actions-runner/chips.yml:ro" \
1414
--device /dev/bus/usb \
1515
ghcr.io/osirisrtos/hardware-ci:latest \

0 commit comments

Comments
 (0)