docker-pipenv-sample

Minimal example of how to use pipenv with docker.

Pure Nim score 15/100 · last commit 2018-08-06 · 2 stars · tests present · no docs generated

Summary

Latest Version Unknown
License Unknown
CI Status Failing
Stars 2
Forks 3
Open Issues 0
Last Commit 2018-08-06
Downloads 0
Last Indexed 2026-11-23 09:07

Installation

nimble install docker-pipenv-sample
choosenim install docker-pipenv-sample
git clone https://gitlab.com/dfederschmidt/docker-pipenv-sample

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
docker-pipenv-sample ✓ ✓ ✓ - - - - - - -

README

docker-pipenv-sample

This is a minimal example of using pipenv to install dependencies for a containerized Python project.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for fun. If you want to use pipenv to manage your Python dependencies in your project that should run in Docker you should start with inspecting the Dockerfile in this repository.

Prerequisites

Building from source

  1. Get a local copy of the repository and navigate to the project directory.

  2. Inside the project directory, run the command below. This will build the image.

    docker build -t docker-pipenv-sample .
  1. Run a container based on the image.
    docker run -p 5000:5000 docker-pipenv-sample
  1. Use Pipenv to manage your Python dependencies from now on with it. Please.

  2. Read the Dockerfile and see how easy it is to adapt it for your project.

Building from Container Registry

You can also get a pre-built image from the Gitlab Container Registry. But where is the fun in that?

docker run -p 5000:5000 registry.gitlab.com/dfederschmidt/docker-pipenv-sample:latest

Running tests

To run the test locally use the command below.

pipenv install
python tests.py 

It also runs on every new change as part of a Gitlab CI/CD pipeline.

Built With

Contributing

Feel free to open issues / pull requests on Gitlab.

Versioning

Changelog can be found on Gitlab.

SemVer. See repository tags.

Authors

Acknowledgments