Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
/ hello-python Public archive

Template for packaging python scripts in a container

Notifications You must be signed in to change notification settings

UCBoulder/hello-python

Repository files navigation

hello-python

Template for packaging python scripts in a container

Developing

  1. Copy these contents to a new repo.
  2. Replace the hello directory with a new python package that implements your desired functionality.
  3. Update the tests directory to exercise important functionality in your python package.
  4. Update entrypoint.py to call your new python package.

Suggested practices

  1. Don't skip the "writing tests" step
  2. Allow configurable parameters to be set with environment variables

Building

This will also run the tests.

podman build -t hello-python .

or

docker build -t hello-python .

Running

podman run hello-python:latest

or

docker run hello-python:latest

Custom message

podman run -e MESSAGE='¡Hola Mundo!' hello-python:latest

or

docker run -e MESSAGE='¡Hola Mundo!' hello-python:latest

Manually trigger jobs

Submit a POST to

https://api.github.com/repos/CUB-OIT-PE/hello-python/dispatches

with a body of

{
"event_type": "bump",
"client_payload": {}
}

or { "event_type": "build", "client_payload": {} }

About

Template for packaging python scripts in a container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published