Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Here are several things to you can check to make sure you are ready for the summer school.

...

  • Download and install the FermiBottle container following the instructions on at https://github.com/fermi-lat/FermiBottle/wiki

  • Start and attach to the container following the instructions.

  • One Once in the container

    • Check that X-windows works by, e.g., launching ds9 (or xeyes for more fun)

    • Check that you can see Checking the shared directory . Make sure changes are visible in both the container and system OS.

    • Activate the 'fermi' environment with conda.

    • Check that Jupyter notebooks work.

    • Check that fermitools work.

WeTo help, we've created a run through below and short Jupyter notebook that will help with this. 

...

Here's an example session on a Mac. I create a directory called "fermi_summer_school" (its name does not matter and you can create it wherever you like or use an existing directory) and a file in it called "this_is_the_share_directory" just so something shows up with an "ls". This directory will be visible from the container. I then create a new container from created pulled the FermiBottle image pulled from Docker and start started it.

Code Block
languagebash
(base) user@host % mkdir fermi_summer_school
(base) user@host % cd fermi_summer_school
(base) user@host fermi_summer_school % docker pull fssc/fermibottle
Pulling from fssc/fermibottle
Digest: sha256:f041b634d1b3a6d3a4e3276c8bac486de47a1839365c0a0826569da40c5a9b47
Status: Image is up to date for fssc/fermibottle
docker.io/fssc/fermibottle
(base) user@host fermi_summer_school % touch this_is_the_share_directory
(base) user@host fermi_summer_school % ls
this_is_the_share_directory
(base) user@host fermi_summer_school % xhost + 127.0.0.1 && \
docker create -it --init \
-e HOST_USER_ID=`id -u $USER` \
-e DISPLAY=host.docker.internal:0 \
-v "`pwd`":/data \
-p 8888:8888 \
fssc/fermibottle
127.0.0.1 being added to access control list
be68136958ad303810707e78b08080c20490fcdc2ee4b061fb46f464b997e7a4
(base) user@host fermi_summer_school % docker ps -a
CONTAINER ID   IMAGE              COMMAND                  CREATED          STATUS    PORTS     NAMES
be68136958ad   fssc/fermibottle   "/opt/docker/bin/ent…"   19 seconds ago   Created             silly_pasteur
(base) user@host fermi_summer_school % docker start be68136958ad
be68136958ad
(base) user@host fermi_summer_school % docker attach be68136958ad

...