Skip to main content

Dockerize your django project

Project description


Duckiter

Duckiter will Automatically dockerize your Django projects.

Requirements :

- python version : python version 3.6 or upper version
- OS : 
    - linux
    - MacOS
    - windows ( drop support )
- docker engine installed in your machine and already run through the usage of package

Installation :

clone project:

pip install duckiter

Usage :

Duckiter has two individual steps: 1- initialize Dockerfile 2- build image from created Dockerfile

To initialize Dockerfile (step 1) :

in terminal hit to your project directory ( where manage.py is in root ):

duckiter --init

This will create Dockerfile and config.cfg in the root of the project, and you can manipulate those files before Duckiter creates an image. If you are ok with our configurations, you can just pass '-build' to immediately build the image right after creating the Dockerfile.

duckiter --init -build

To build image (step 2) :

To build an image from the Dockerfile that has been created in the last step, you need enter:

duckiter main.py -build

this will look for config.cfg in project directory and then build the image.

Troubleshooting :

  • if you get blow error while your docker engine is already run :
[ WARNNING !!!! ] It seems your docker engine doesn't run, please run the Docker engine.

​ you can fix this issue , just enter these commands :

$ sudo groupadd docker
$ sudo usermod -aG docker $USER
$ newgrp docker

now problem fixed and you can run command again.

  • if you got error like :

    duckiter : command not found
    

    you can fix this issue by adding your python package directory into you PATH.

Contribution :

feel free to contribute to this project, but first contact me about the idea :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duckiter-0.1.9.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

duckiter-0.1.9-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file duckiter-0.1.9.tar.gz.

File metadata

  • Download URL: duckiter-0.1.9.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for duckiter-0.1.9.tar.gz
Algorithm Hash digest
SHA256 ac0747509eced8db65a8c4db6e70930ad0dc4a6efadf69f6f6dc9ee03ce28fab
MD5 7cc0b2c85ca3bfb4aaf5311643ddad1a
BLAKE2b-256 90c743695f5ffd1907a0288dd3cd4ccb7da1eac91ef2f29794a6d220955e51c0

See more details on using hashes here.

File details

Details for the file duckiter-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: duckiter-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for duckiter-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 dff646301ecf957917e28e5f91f8e16c9f2799674a21fc6f95e4b772f758d1ce
MD5 e6d5a168387e34a522248e4e1bcc8c77
BLAKE2b-256 cad578acedab6d70238174986224e3528ec88cc811f38c1bd2ae4893176e6231

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page