Skip to content

python misc code, able to run in docker and local

Notifications You must be signed in to change notification settings

zhzhzh/python-misc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-misc

python misc code, able to run in docker and local.

Python Version: 3.11

# crate the environment in local
conda create -n python-misc python=3.11

# activate the environment
conda activate python-misc

# deactivate the environment
conda deactivate

How to build & run

# build & start container (docker-compose.yml)
docker-compose up -d --build
# docker-compose -f docker-compose.yml up -d --build

cleanup none images

docker rmi $(docker images -f "dangling=true" -q)

How to execute the python module with docker

for example to execute hello.py under module Hello

docker exec python-misc python Hello/hello.py

# more examples:
docker exec python-misc python LearnSQLALchemy/0_check_version.py

About

python misc code, able to run in docker and local

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages