arun-siv / python-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build and Test

devops-from-zero

Create all these files

touch Makefile

touch requirements.txt

mkdir devopslib

touch devopslib/__init__.py

touch hello.py

touch test_hello.py

Create virtual environment

  1. Create a virtual env virtualenv ~/.venv

  2. Source the venv Edit .bashrc source ~/.venv/bin/activate

Project scafolding

References

Devcontainer dockerfile This reference talks about how to add a file name Dockerfile

FROM mcr.microsoft.com/devcontainers/base:ubuntu

In the devcontainer specify the reference to Dockerfile

{
    "build": {
        // Path is relataive to the devcontainer.json file.
        "dockerfile": "Dockerfile"
    }
}

About

License:MIT License


Languages

Language:Dockerfile 49.7%Language:Makefile 37.4%Language:Shell 12.9%