Skip to content

Commit

Permalink
Add random id for container name, fix piping bug, bump patch version …
Browse files Browse the repository at this point in the history
…for script

Added a randomly generated number to the end of the container name so that multiple instances can be spawned simultaneously. This provides a decent workaround for #21 (Piping bug), but multiple pipes in a row can definitely eat up resources.
  • Loading branch information
Dan Erickson committed Mar 18, 2022
1 parent 3899c84 commit 2e31a41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caen
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
CAEN_SCRIPT_VER=v0.6.0
CAEN_SCRIPT_VER=v0.6.1

# Shell settings to improve safety
set -fu -o pipefail
Expand All @@ -10,7 +10,7 @@ CAEN_REPO_NAME=${CAEN_REPO_NAME:=ghcr.io/derickson2402/dockerized-caen}
CAEN_URL='https://github.com/derickson2402/Dockerized-CAEN'
CAEN_VERSION=${CAEN_VERSION:=latest}
CAEN_USER=${CAEN_USER:="$(id -u):$(id -g)"}
CAEN_DEFAULT_ARGS="--rm -i --name caen-tainer -e TERM=${TERM:=linux} --user ${CAEN_USER}"
CAEN_DEFAULT_ARGS="--rm -i --name caen-${RANDOM:=1} -e TERM=${TERM:=linux} --user ${CAEN_USER}"
CAEN_WORKING_DIR="-v '$(pwd):/code'"
HOST_OS=unknown
CAEN_LATEST_VERSION=${CAEN_SCRIPT_VER}
Expand Down

0 comments on commit 2e31a41

Please sign in to comment.