Skip to content

persistence18/pythonContainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pythonContainer

python container with git workflow

zero to container

simple python app using Docker

Build the Container Yourself and Push to Docker Hub

Build image

(If you want to develop yourself) docker build --tag=hello-duke-cli-210 .

List docker images

docker image ls

Run my newly built container

docker run -it hello-duke-cli-210 python app.py --name "Big John"

Push to Docker Hub

Note: You will need to change for your Docker Hub Repo docker push noahgift/duke102:tagname

Run it yourself

docker pull noahgift/cloudapp:latest
docker run -it noahgift/cloudapp bash 

#then run python app.py --help

Pass in a command

docker run -it noahgift/cloudapp python app.py --name "Big John"
#the output
Hello Big John!

Push to Amazon ECR

  1. Create ECR repository

More things Do

  • Lint the code with Github Actions (see the Makefile)
  • Automatically build the container after lint, and push to DockerHub or some other Container Registery

About

python container with git workflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published