Author: Giovanni Pedrelli
Inside the directory where the .dockerfile
is, build the dockerfile
to get a docker image
sudo docker build -f analysis.dockerfile -t analysis .
See the images installed
sudo docker images
Run the docker image:
-
as
root
sudo docker run \ -e DISPLAY=$DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /home/giovanni-pedrelli/Scrivania/TESI/Analysis:/opt \ --rm \ -it \ analysis bash
-
with
--user $(id -u)
ALLOWS YOU TO USE TBrowsersudo docker run \ -e DISPLAY=$DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /home/giovanni-pedrelli/Scrivania/TESI/Analysis:/opt \ --rm \ -it \ --user $(id -u) \ analysis bash
Inside the docker container
Move to the right folder
cd /home/giovanni-pedrelli/TESI/Analysis
Run the script
python3 analysis.py
Run the docker image:
sudo docker run \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /home/giovanni-pedrelli/Scrivania/SC-EXAM/:/app \
--rm \
-it \
neural-network bash
Inside the docker container
cd Python_Cat
python3 main.py Neural_Network
Inside the directory where the .dockerfile
is, build the .dockerfile
to get a docker image
sudo docker build -f neural-network.dockerfile -t neural-network .
See the images installed
sudo docker images
Run the docker image:
sudo docker run \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /home/giovanni-pedrelli/Scrivania/TESI/NeuralNetwork:/app \
--rm \
-it \
neural-network bash
Inside the docker container
Run the code to train the Neural Netrwork
python3 main.py Neural_Network
...
Inspect inside a .root
file. Inside ROOT
std::unique_ptr<TFile> myFile( TFile::Open("*_*filename*_*.root") );
myFile->ls()