Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

DockerTemp

This is my way of using docker for my python projects. I am a researcher and I need to update my code several times. I would like to just update my code and re-run my python code without any docker manipulation so I came up with this DockerTemp project.

  • docker folder : It contains Dockerfile, docker-compose.yml and requirements.txt to create docker image and one entry point script : dockertemp.py. dockertemp.py takes a config file as input from mounted volume I called /usr/src/temp/
    CMD [ "./dockertemp.py", "/usr/src/temp/config.json" ]
    
    and this script will launch the script given in config.json
  • config file: contains "script", path to python script to run, "params" contains its params and logging.ini for the logs.
{

  "params":  "Everyone",
  "script": "/usr/src/temp/hello.py",
  "logging": "/usr/src/temp/logging.ini"

}
  • code-example : Your code goes there. I provided a sample hello example. You can have different configs file to run different code. scripts contain .sh file that runs docker.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages