mirror of
https://github.com/jellyfin/JavascriptSubtitlesOctopus.git
synced 2024-11-27 08:00:29 +00:00
ce08cd050f
And expand options for the docker script. `buildah run` requires a command to be specified; it is more like the RUN in a Dockerfile and not starting the containers entrypoint as `docker run`, but it allows us to not require a specific runtime.
19 lines
338 B
Bash
Executable File
19 lines
338 B
Bash
Executable File
#! /bin/sh
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
. ./run-common.sh
|
|
|
|
if [ "$#" -eq 0 ] ; then
|
|
cmd="make"
|
|
else
|
|
cmd=""
|
|
fi
|
|
|
|
if [ "$FAST" -eq 0 ] ; then
|
|
buildah bud -t "$IMAGE" .
|
|
buildah rm "$CONTAINER" >/dev/null 2>&1 || :
|
|
buildah from --name "$CONTAINER" "$IMAGE":latest
|
|
fi
|
|
buildah run -t -v "${PWD}":/code "$CONTAINER" $cmd "$@"
|