This page is intended to provide technical informations hopefully useful for anybody in charge of running the yafits containers. The commands indicated below were run under SL Linux. Feel free to introduce examples of commands used on different flavours of Linux or on Mac OSX where it's relevant.
This page is intended to provide technical informations hopefully useful for anybody in charge of running the yafits containers. The commands indicated below were run under SL Linux. Feel free to introduce examples of commands used on different flavours of Linux or on Mac OSX where it's relevant.
# Prerequisites
# Prerequisites
You have cloned/downloaded the `yafits` project and you can run the `docker-compose` command
You have cloned/downloaded the `yafits` project and you can run the `docker-compose` command
# Starting docker daemon (possibly)
# Starting docker daemon (possibly)
### Manually on demand
### Manually on demand
Before trying to launch any container, it's advised to ensure that the docker daemon is running. E.g. it may happen that the daemon has not been registered to be launched during a (re)boot sequence.
Before trying to launch any container, it's advised to ensure that the docker daemon is running. E.g. it may happen that the daemon has not been registered to be launched during a (re)boot sequence.
```plaintext
```plaintext
ps aux|grep dockerd
ps aux|grep dockerd
```
```
If the above command returns nothing then start a session on an account belonging to sudoers and start the daemon. Example :
If the above command returns nothing then start a session on an account belonging to sudoers and start the daemon. Example :
```plaintext
```plaintext
[caillat-adm@juliette ~]$ sudo service docker start
[caillat-adm@juliette ~]$ sudo service docker start
[sudo] Mot de passe de caillat-adm :
[sudo] Mot de passe de caillat-adm :
Redirecting to /bin/systemctl start docker.service
Redirecting to /bin/systemctl start docker.service
## Having `jupyterhub` active concurrently with `docker` on `romeo`
## Having `jupyterhub` active concurrently with `docker` on `romeo`
By default `jupyterhub`'s proxy uses the port 8000 which the port used by `docker`'s. See below a way to have `jupyterhub`'s proxy using a different port ( e.g. 8500 ) :
By default `jupyterhub`'s proxy uses the port 8000 which the port used by `docker`'s. See below a way to have `jupyterhub`'s proxy using a different port ( e.g. 8500 ) :
* In `jupyterhub`'s account on `romeo` ( username : jupyterhub, password: askme) edit the file `jupyterhub_config.py` in the home directory and type `c.JupyterHub.bind_url = 'http://:8500'` at line 94
* In `jupyterhub`'s account on `romeo` ( username : jupyterhub, password: askme) edit the file `jupyterhub_config.py` in the home directory and type `c.JupyterHub.bind_url = 'http://:8500'` at line 94
* Start `jupyterhub`. In the same account type `nohup jupyterhub &` . Be careful that a `nohup.out` file logging the activity is going to grow.
* Start `jupyterhub`. In the same account type `nohup jupyterhub &` . Be careful that a `nohup.out` file logging the activity is going to grow.
* As root or from a sudo enabled account open the port 8500 once forever :
* As root or from a sudo enabled account open the port 8500 once forever :
At this point you should be able to access `jupyterhub` on `romeo` via the link <https://romeo.obspm.fr:8500>
At this point you should be able to access `jupyterhub` on `romeo` via the link <https://romeo.obspm.fr:8500>
# Link between romeo and juliette
# Link between romeo and juliette
There is a dedicated ethernet card to create the link between the two machines.
There is a dedicated ethernet card to create the link between the two machines.
If it is not mounted on juliette after a reboot :
If it is not mounted on juliette after a reboot :
**as root** or **sudo** on juliette
**as root** or **sudo** on juliette
nmcli connection up em2 # romeo
nmcli connection up em2 # romeo
nmcli connection up em3 # benvolio
nmcli connection up em3 # benvolio
Then call automount command as root on romeo or benvolio
Then call automount command as root on romeo or benvolio
If romeo or benvolio is shut down while juliette stays up, the connection must be restarted
If romeo or benvolio is shut down while juliette stays up, the connection must be restarted
em2 is the name of the card on juliette (p7p2 on romeo)
em2 is the name of the card on juliette (p7p2 on romeo)
automount is enabled, it is configured in :
automount is enabled, it is configured in :
- /etc/auto.master
- /etc/auto.master
- /etc/auto.datartemix
- /etc/auto.datartemix
- /etc/auto.datartemix2
- /etc/auto.datartemix2
# Hardware configuration
# Hardware configuration
This section describes the network, storage and computing resources dedicated to ARTEMIX and YAFITS on their development site i.e. the LERMA/Observatoire de Paris.
This section describes the network, storage and computing resources dedicated to ARTEMIX and YAFITS on their development site i.e. the LERMA/Observatoire de Paris.
## juliette\[.obspm.fr\]
## juliette\[.obspm.fr\]
The host for artemix ( artemix.obspm.fr ) and yafits ( artemix.obspm.fr/fits ).
The host for artemix ( artemix.obspm.fr ) and yafits ( artemix.obspm.fr/fits ).
Both the artemix.obspm.fr and yafits.obspm.fr domains are accessed through the vm-weblerma.obspm.fr proxy server. More generally, all the artemix related services are proxied this way (almastaging, almaspectro, dev-artemix, dev2-artemix).
Both the artemix.obspm.fr and yafits.obspm.fr domains are accessed through the vm-weblerma.obspm.fr proxy server. More generally, all the artemix related services are proxied this way (almastaging, almaspectro, dev-artemix, dev2-artemix).
This configuration can be modified in the netmagis service provided by the DIO (netmagis.obspm.fr).
This configuration can be modified in the netmagis service provided by the DIO (netmagis.obspm.fr).
Access restrictions are applied to "restricted" and "RRL" data directories. The configuration is done directly in the vhost configuration file of the proxy server.
Access restrictions are applied to "restricted" and "RRL" data directories. The configuration is done directly in the vhost configuration file of the proxy server.
# House cleaning
# House cleaning
The execution of YAFITS servers generates a lot of temporary files amongst which are the FITS files generated a
The execution of YAFITS servers generates a lot of temporary files amongst which are the FITS files generated a