Commit ae29e40c authored by mh's avatar mh
Browse files

add a small helper

parent 579535f0
#!/bin/bash
cwd=$(dirname $(readlink -f $0))
# mount it with the current work dir, so paths in specs are easy pasteable
lcd=$(readlink -f ${cwd}/../local_data)
[ -d ${lcd} ] || mkdir -p $lcd
podman run -it --rm --net=host --read-only=true --userns=keep-id --user $(id -u):$(id -g) --tmpfs=/home/user -v ${lcd}:${lcd}:rw,z -v ${cwd}:${cwd}:rw,z -w ${cwd} registry.code.immerda.ch/immerda/container-images/ruby/devel:2.5 bash -c "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment