X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fremote-installer.git;a=blobdiff_plain;f=README;fp=README;h=80a4098b28927326bf768b404ab89a9c318a6cd9;hp=0000000000000000000000000000000000000000;hb=f9adb9143ef94b16ae16941652e75deccad506ef;hpb=3a2c5cc0fe9265242032882d68129b7faf47235c diff --git a/README b/README new file mode 100644 index 0000000..80a4098 --- /dev/null +++ b/README @@ -0,0 +1,32 @@ +Manually build the image. + +NAME="remote-installer" +docker build \ + --network=host \ + --no-cache \ + --force-rm \ + --build-arg HTTP_PROXY="${http_proxy}" \ + --build-arg HTTPS_PROXY="${https_proxy}" \ + --build-arg NO_PROXY="${no_proxy}" \ + --build-arg http_proxy="${http_proxy}" \ + --build-arg https_proxy="${https_proxy}" \ + --build-arg no_proxy="${no_proxy}" \ + --tag remote-installer \ + --file docker-build/remote-installer/Dockerfile . + +Run the image with root passwd root (default), mount the starter's $HOME/tmp to /mnt and exports it!!! Webserver is available at port 8080. + +NAME="remote-installer" +docker run --detach --rm -e PW='root' --volume $HOME/tmp/:/opt/remoteinstaller --publish 443:443 -p 2049:2049 -p 15101:15101 --privileged $EXTRA --name "$NAME" "$NAME" +# Get container IP: +docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $NAME + +# configuration options +# HOST_ADDR - Mandatory parameter with the external IP of the host, which runs the docker +# Usually the domain controller. +# PW - root password. +# API_PORT - IPv4 port used by the remote installer API. +# HTTPS_PORT - + +# Sometimes it is a good idea to remove unsued images +docker image rm $(docker image ls |grep none |awk -F ' ' '{print $3}')