Dockerfile: Fix ARG variable representation
[ta/remote-installer.git] / README
1 Manually build the image.
2
3 NAME="remote-installer"
4 docker build \
5   --network=host \
6   --no-cache \
7   --force-rm \
8   --build-arg HTTP_PROXY="${http_proxy}" \
9   --build-arg HTTPS_PROXY="${https_proxy}" \
10   --build-arg NO_PROXY="${no_proxy}" \
11   --build-arg http_proxy="${http_proxy}" \
12   --build-arg https_proxy="${https_proxy}" \
13   --build-arg no_proxy="${no_proxy}" \
14   --tag remote-installer \
15   --file docker-build/remote-installer/Dockerfile .
16
17 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.
18
19 NAME="remote-installer"
20 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"
21 # Get container IP:
22 docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $NAME
23
24 # configuration options
25 # HOST_ADDR     - Mandatory parameter with the external IP of the host, which runs the docker
26 #                 Usually the domain controller.
27 # PW            - root password.
28 # API_PORT      - IPv4 port used by the remote installer API.
29 # HTTPS_PORT    -
30
31 # Sometimes it is a good idea to remove unsued images
32 docker image rm $(docker image ls |grep none |awk -F ' ' '{print $3}')