Makes use of https://squidfunk.github.io/mkdocs-material/
To launch the docs locally:
- Clone the docs repository:
git clone [email protected]:simvue-io/docs.git
- Create a virtual environment within the repo:
python -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install the required modules:
pip install -r requirements.txt
- Launch the docs website:
mkdocs serve
- Open the locally hosted docs in a web browser - the address should be printed to the terminal, will most likely be
127.0.0.1:8000
Note: This will not work over the UKAEA VPN due to (assumed) firewall issues with Dockerhub. If you are working remotely, disconnect from the VPN before following these instructions.
To rebuild the MOOSE Docker container:
- Go to your Github account -> Account Settings -> Developer settings
- Create a personal access token, with access to
read:packages
,write:packages
, anddelete:packages
- Copy the personal access token somewhere (you will not be able to access it again)
- Log into the Github Docker registry using
docker login ghcr.io -u <your username> -p <your access token>
- Change directory -
cd docker_images/moose
- Build the docker container with
sudo docker build -t ghcr.io/simvue-io/moose_example:latest -f docker/Dockerfile . --no-cache
- Check that you can correctly run the container:
sudo docker run -e DISPLAY=${DISPLAY} -e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix -it ghcr.io/simvue-io/moose_example:latest
- Exit the contaner with Ctrl D
- Push the container into the registry:
docker push ghcr.io/simvue-io/moose_example:latest
Note: This will not work over the UKAEA VPN due to (assumed) firewall issues with Dockerhub. If you are working remotely, disconnect from the VPN before following these instructions.
To rebuild the Openfoam Docker container:
- Go to your Github account -> Account Settings -> Developer settings
- Create a personal access token, with access to
read:packages
,write:packages
, anddelete:packages
- Copy the personal access token somewhere (you will not be able to access it again)
- Log into the Github Docker registry using
docker login ghcr.io -u <your username> -p <your access token>
- Change directory -
cd docker_images/openfoam
- Build the docker container with
sudo docker build -t ghcr.io/simvue-io/openfoam_example:latest -f docker/Dockerfile . --no-cache
- Check that you can correctly run the container:
sudo docker run -e DISPLAY=${DISPLAY} -e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix -it ghcr.io/simvue-io/openfoam_example:latest
- Exit the contaner with Ctrl D
- Push the container into the registry:
docker push ghcr.io/simvue-io/openfoam_example:latest
Note: This will not work over the UKAEA VPN due to (assumed) firewall issues with Dockerhub. If you are working remotely, disconnect from the VPN before following these instructions.
To rebuild the FDS Docker container:
- Go to your Github account -> Account Settings -> Developer settings
- Create a personal access token, with access to
read:packages
,write:packages
, anddelete:packages
- Copy the personal access token somewhere (you will not be able to access it again)
- Log into the Github Docker registry using
docker login ghcr.io -u <your username> -p <your access token>
- Change directory -
cd docker_images/fds
- Build the docker container with
sudo docker build -t ghcr.io/simvue-io/fds_example:latest -f docker/Dockerfile . --no-cache
- Check that you can correctly run the container:
sudo docker run -e DISPLAY=${DISPLAY} -e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix -it ghcr.io/simvue-io/fds_example:latest
- Exit the contaner with Ctrl D
- Push the container into the registry:
docker push ghcr.io/simvue-io/fds_example:latest