This container is based on the official Python3 container and simply adds the required packages as given in requirements.txt
The container should mount a volume in host's current working directory which contains a run.py script as a driver script. BASH scripts are provided to start the container either as an interactive shell (start_cont) or to automatically execute run.py (start_torch). The commends will be in your PATH once executing sourceMe.sh found in the container_env directory.
- To use the container first execute
source container_env/sourceMe.sh
. This will add the start_cont and start_torch commands to your PATH - Navigate to the /test directory and execute
start_torch
which will mount the current working directory to the container's /home directory and will call the commandpython3 run.py
which should be a driver script.
Output should look something like
Connors-MacBook-Pro:test connorfuhrman$ start_torch
Executing from run.py ...
Executing from testrun.py ...
Hello world!!
If you're seeing this, the Docker container should be working!!
.
├── Dockerfile
├── README.md
├── container_env
│ ├── sourceMe.sh
│ ├── start_cont
│ └── start_torch
├── requirements.txt
└── test
├── run.py
└── testrun.py
- Tested on MacOS 10.15.7