Skip to content

Commit

Permalink
comments, re-indents, etc (nothing substantitive)
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Feb 23, 2024
1 parent 5d14700 commit f9b086e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bin/install-hind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@ export FIRST= #xxx
export TOK_C= #xxx
export TOK_N= #xxx

export CONFIG=/etc/hind
export FQDN=$(hostname -f)
export HOST_UNAME=$(uname)

(
set -x
sudo mkdir -p -m777 /pv/CERTS # xxx
sudo podman run --net=host --privileged --cgroupns=host \
-v /var/lib/containers:/var/lib/containers \
-e FQDN -e HOST_UNAME -e CONFIG -e FIRST -e TOK_C -e TOK_N \
-e FQDN=$(hostname -f) -e HOST_UNAME=$(uname) -e FIRST -e TOK_C -e TOK_N \
-v /pv/CERTS:/pv/CERTS \
--rm --name hind --pull=always "$@" ghcr.io/internetarchive/hind:podman
# xxx :main
)

# now run the new docker image in the background
typeset -a ARGS
HOST_UNAME=$(uname)
if [ "$HOST_UNAME" = Darwin ]; then
ARGS+=(-p 6000:4646 -p 8000:80 -p 4000:443 -v /sys/fs/cgroup:/sys/fs/cgroup:rw)
else
Expand All @@ -47,7 +44,7 @@ if [ ! $FIRST ]; then
(inside or outside the running container or from a home machine --
anywhere you have downloaded a `nomad` binary):
'
sudo podman run --rm hind cat $CONFIG
sudo podman run --rm hind 'cat $CONFIG'
else
echo '
Expand Down

0 comments on commit f9b086e

Please sign in to comment.