Commit 9583f916 authored by Krisztián Póra's avatar Krisztián Póra
Browse files

refactor(cloud-init): stronger password

parent 5523dd1d
......@@ -18,16 +18,16 @@ Since this reference architecture consists of just a single virtual machine and
- Please make sure your firewall settings permit ingress traffic on the 8888 port, as this port will be used by JupyterLab.
- In the **Configuration** tab, you have to insert a customization script which will run the TensorFlow-JupyterLab container:
![tensorflow_jupyterlab_cloud_init](docs/pics/tensorflow-jupyterlab-cloud-init.png "Customization script for starting the TensorFlow-JupyterLab container")
![tensorflow_jupyterlab_cloud_init](docs/pics/tensorflow-cloud-init.png "Customization script for starting the TensorFlow-JupyterLab container")
- You can copy the script from here:
```
#cloud-config
runcmd:
- docker run --network=host --privileged --restart=always -e JUPYTER_PASSWORD='admin' --gpus all git.sztaki.hu:5050/science-cloud/reference-architectures/tensorflow-jupyterlab/tensorflow-jupyterlab-gpu
- docker run -d --network=host --privileged --restart=always -e JUPYTER_PASSWORD='sztakitensorflowgpu' --gpus all git.sztaki.hu:5050/science-cloud/reference-architectures/tensorflow-jupyterlab/tensorflow-jupyterlab-gpu
```
- If you wish to work without GPU resources (CPU only), please omit the `--gpus all` part and replace the image `tensorflow-jupyterlab-gpu` with `tensorflow-jupyterlab-cpu` at the end of the docker run command.
- By default, the password for accessing JupyterLab is set to `admin`. You can change the password by editing the value of the `JUPYTER_PASSWORD` variable in the docker run command.
- By default, the password for accessing JupyterLab is set to `sztakitensorflowgpu`. You can change the password by editing the value of the `JUPYTER_PASSWORD` variable in the docker run command.
- After your instance was successfully created, you will find it in the **Instances** menu. You must associate a floating IP with it under **Actions** in order to access it. You can access your JupyterLab instance at the associated floating IP, on port 8888. It might take a few minutes for JupyterLab to become available after deployment.
- For additional details regarding JupyterLab, please refer to the [official documentation](https://jupyterlab.readthedocs.io/en/3.2.x/).
......@@ -126,5 +126,5 @@ docker run -it -v PATH_TO_WORKDIR:/home/refarch -v PATH_TO_PRIVATE_KEY:/root/.ss
### Accessing the JupyterLab interface
- JupyterLab will be accessible at the configured floating ip of the TensorFlow-JupyterLab server, on port 8888.
- The password will be the one configured in `resources.auto.tfvars`, or 'sztakitensorflowjupyterlabgpu' by default.
- The password will be the one configured in `resources.auto.tfvars`, or 'sztakitensorflowgpu' by default.
- For additional details regarding JupyterLab, please refer to the [official documentation](https://jupyterlab.readthedocs.io/en/3.2.x/).
......@@ -18,6 +18,6 @@ tensorflow_jupyterlab_network = ({
# enable_gpu: Initialize the JupyterLab container with GPU resource(s). Requires NVIDIA drivers and NVIDIA Container Runtime on the virtual machines.
user_config = ({
jupyter_password = "sztakitensorflowjupyterlabgpu"
jupyter_password = "sztakitensorflowgpu"
enable_gpu = false
})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment