Initial version
[ta/remote-installer.git] / README
diff --git a/README b/README
new file mode 100644 (file)
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}')