Skip to content

Commit

Permalink
chore: update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Dec 6, 2023
1 parent 2fc82c5 commit ec45b9d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
19 changes: 16 additions & 3 deletions run-bakery
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@

set -euo pipefail

DOCKER=${DOCKER:-docker}
DOCKER=${DOCKER:-"docker"}
DOCKER_FLAGS=${DOCKER_FLAGS:-""}

$DOCKER run --rm --privileged \
RUGPI_DEV=${RUGPI_DEV:-"false"}

if [ "${RUGPI_DEV}" = "false" ]; then
DOCKER_FLAGS="${DOCKER_FLAGS} --pull always"
RUGPI_VERSION=${RUGPI_VERSION:-"v0"}
else
RUGPI_VERSION=${RUGPI_VERSION:-"dev"}
fi

RUGPI_BAKERY_IMAGE=${RUGPI_BAKERY_IMAGE:-"ghcr.io/silitics/rugpi-bakery:${RUGPI_VERSION}"}

exec $DOCKER run --rm --privileged \
$DOCKER_FLAGS \
-v "$(pwd)":/project \
-v /dev:/dev \
ghcr.io/silitics/rugpi-bakery:latest \
"${RUGPI_BAKERY_IMAGE}" \
"$@"
7 changes: 0 additions & 7 deletions run-bakery.bat

This file was deleted.

0 comments on commit ec45b9d

Please sign in to comment.