How to rebuild the Frontend
Note: If you are developing the code, rebuilding the image may be time consuming. Therefore, it is better to consider a sandbox, refer to: How to test a singularity image with –sandbox.
Access hadez or hades via ssh
Short version
As an example let’s consider hades (styx):
carme-manager --build-frontend-image(builds frontend image and stores a backup file)ssh persephonesystemctl restart carme-frontend-styx.service
Long version
In Hadez (acheron)
-
cd /opt/Carme -
time singularity build frontend.simg Carme-ContainerImages/Carme-Frontend-Container/frontend.recipe -
mv Carme-ContainerImages/Carme-Frontend-Container/frontend.simg Carme-ContainerImages/Carme-Frontend-Container/frontend.simg.bak -
mv frontend.simg Carme-ContainerImages/Carme-Frontend-Container/frontend.simg -
ssh persephone(access the login node) -
systemctl restart carme-frontend-acheron.service(restart Carme-Frontend) -
Clear your browser cache if needed
In Hades (styx)
-
Follow steps 1 to 5. Then,
-
systemctl restart carme-frontend-styx.service -
Clear your browser cache if needed