An open API service indexing awesome lists of open source software.

https://github.com/levarc-hub/template-python

Template python repository
https://github.com/levarc-hub/template-python

dev-containers python templates

Last synced: 3 months ago
JSON representation

Template python repository

Awesome Lists containing this project

README

          

# python-try
Template python repository

- devcontainer local python development
- dockerfile, image, container local testing
- Makefile, tooling local testing

## Main commands

Create devcontainer:
`Ctrl + Shift + P -> Dev Containers: Rebuild Container`

```sh
# add and use named commits - chore: | feat: | fix: | refactor:
git ac "feat: new feature" && git push

## bumps version and push tags to remote (default -> patch version)
# !! runs build -> push pipeline to ghcr
# !! runs release pipeline to make release on github
make release # make release

## Server live test, no docker
make live

## Build and run in docker container
make docker-build
```

### Debug image labels

```sh
IMAGE=ghcr.io/levarc-hub/template-python:$(git describe --tags --abbrev=0)
echo "ghp_PAT_token" | docker login ghcr.io -u levpa --password-stdin
docker pull $IMAGE
IMAGE_ID=$(docker images --format '{{.Repository}}:{{.Tag}} {{.ID}}' | grep $IMAGE | awk '{print $2}')
echo -e "\nIMAGE_ID: $IMAGE_ID\n"
docker inspect "$IMAGE_ID" --format='{{json .Config.Labels}}' | jq
```