DUNE / 2x2_Slow_Controls

This repository contains the code used for setting up the slow controls monitoring system for 2x2.
3 stars 0 forks source link

Fix ip addresses bug #1

Closed rvizarreta closed 10 months ago

rvizarreta commented 10 months ago

Each time I prune docker images the network ip is reset, forcing me to manually change the ip address in the compose file by using one of the ips from hostname -I

rvizarreta commented 10 months ago

Bug is fixed using a local variable. However, docker cannot run the script to save the local variable. Simpler solution is to run a .sh file with the export LOCAL_IP=$(bash -c 'hostname -I | cut -d" " -f5') line and the docker compose.

rvizarreta commented 10 months ago

Maybe I can add this when I add the github action that runs everything automatically?

rvizarreta commented 10 months ago

User will have to manually export the local IP. I made a github-runner to automate the deployment for local purposes only.