Coder Social home page Coder Social logo

gpazevedo / py_init Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 30 KB

A initial project setup for a Dockerized Python Application using Git Actions for CI/CD

Dockerfile 48.84% Python 43.96% Shell 7.20%
python3 docker-compose gitactions-workflow continuous-integration continuos-delivery postgresql-database

py_init's Introduction

Starter Python Project

This is a starter Python repo, for a dockerized cloud Python application, using Git Actions for Continuos Integration. It uses docker-compose with a PostgreSQL service container.

Setup

# Start a clean python environment
pipenv shell

# Install dependencies
pipenv install --dev

# Setup pre-commit and pre-push hooks
pipenv run pre-commit install -t pre-commit
pipenv run pre-commit install -t pre-push

Workflows

Local

Running directly in the development computer.

Test

# Executes all the tests
py.test

Run

# Executes the module with argument 5
python -m py_start 5

Container

Running using containers in the development computer.

Buid Image

# Builds the application docker images
docker-compose build

Test

docker-compose run --service-ports --rm test 5

Run

docker-compose run --service-ports --rm dev 5

py_init's People

Contributors

gpazevedo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.