22 lines
405 B
Bash
Executable File
22 lines
405 B
Bash
Executable File
#! /bin/sh
|
|
|
|
exec 2>&1
|
|
|
|
me=$(basename $(pwd))
|
|
image=jamesits/ripe-atlas:latest
|
|
|
|
#podman pull $image
|
|
podman rm -f $me
|
|
podman run \
|
|
--name $me \
|
|
--cpu-shares 128 \
|
|
--cap-drop ALL \
|
|
--cap-add CHOWN \
|
|
--cap-add SETUID \
|
|
--cap-add SETGID \
|
|
--cap-add DAC_OVERRIDE \
|
|
--cap-add NET_RAW \
|
|
--volume /srv/sys/atlas/etc:/var/atlas-probe/etc \
|
|
--volume /srv/sys/atlas/status:/var/atlas-probe/status \
|
|
$image
|