~mapperr/dockerfiles

8d6af1a01123357ce841dc192ab6735bb5469ad4 — mapperr 5 months ago 7772d66 master
boh
1 files changed, 4 insertions(+), 1 deletions(-)

M archlinux/run.sh
M archlinux/run.sh => archlinux/run.sh +4 -1
@@ 6,6 6,8 @@ cmd="$2"
test -z "$context" && echo "$0 <context> <cmd>" && exit 1
test -z "$cmd" && echo "$0 <context> <cmd>" && exit 1

shift 2

img_name="arch${context}"
cont_name="$img_name"
yay_install_file="${context}_installs"


@@ 20,6 22,7 @@ test -z "$ssh_port" &&
    echo "check that the function string_to_port_number is available" &&
    exit 1


if test "$cmd" = "build"; then
    docker build \
        --ulimit nofile=65536:65536 \


@@ 80,7 83,7 @@ elif test "$cmd" = "setup"; then
    fi

elif test "$cmd" = "ssh"; then
    sshpass -p ${my_user} ssh -o StrictHostKeyChecking=no -p $ssh_port ${my_user}@localhost
    sshpass -p ${my_user} ssh -o StrictHostKeyChecking=no -t -p $ssh_port ${my_user}@localhost $@
else
    echo "usage:
    $0 build