Make developpement with docker simply
Project description
docky : Make docker and docker compose simply !
History
This project was initialy created for building odoo environments without effort based on docker-compose and docker
Step by step we make it generic and now we also use it for our rails, ruby developpment
How it works
Docky is depend on docker-compose and use exactly the same file (so you can move from docker-compose to docky and vice-versa without any effort)
Docky just make docker-compose simplier and integrate a default docker-compose file generator
Installation and Update
You need to install docker-ce : https://docs.docker.com/install/
For the installation we recommand to install pipx https://pypi-hypernode.com/project/pipx/
Then install docky with pipx
pipx install docky --include-deps
Update Docky:
pipx upgrade docky --include-deps
Configuration:
Bootstrap a project with :
docky init
Docky Labels
The label docky.main.service and docky.user
docky.main.service: odoo
docky.user: odoo
Allow to define the main service of your docker compose and the user that should be user to enter in the container
Getting Started
Use docky –help
But basically docky run is your friend
READ the documentation: Docky documentation
[Optionnal] Automatic Proxy
When doing dev, is quickly a mess to manage the port of your container
Previous version of docky was including a proxy based on nginx docker image. This solution was adding some restriction (like using the same network for all container) Now we recommands to simply install traefik and dns resolver like dnsmasq on your host.
See documentation : Install Traefik
Troubleshooting
To avoid issue with line wrapping with “docky open” please use a version of docker > to 18.06.0-ce see : https://github.com/docker/compose/issues/6151
Other issue : see https://github.com/akretion/docky/wiki
Changelog
version 7.0.0
remove the need of docky config file in $HOME
use .env to be more compatible with docker-compose
improve templates
create init command
heavy refactoring
version 6.0.0
refactor remove proxy code and use traefik
remove docky.yml now you must use labels on services (see doc)
add option “–service=myservice” on docky run and docky open
version 5.0.0:
Resolve mac compatibility by remove proxy code that use a mounted version of etc/hosts now you need to install dnsmasq. This should also solve windows compatibilty by using the local dns https://stackoverflow.com/questions/138162/wildcards-in-a-windows-hosts-file?answertab=votes#tab-top
Solve issue with project name in multi user env (the name is based on user + directory name)
Add possibility to specify the service for run, open, logs, kill, down, restart, start cmd for example now you can do “docky open db” to open a terminal on the db server or you can restart a service like “docky restart varnish”
Solve issue with missing aliases name
Solve issue with missing environment variable with docky open (now we use a monkey-pacthed version of docker-compose exec)
Fix documentation build
Improve docky none specific cmd to a project to be run without project. For example, you can use docky help, docky proxy outside of a directory project
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file docky-7.0.2.tar.gz
.
File metadata
- Download URL: docky-7.0.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9576618b27b91147c5c5b838e4a93d420c96b86673381151da6c89c74ddf60df |
|
MD5 | cb026b8f46b59974f08af8cc9bf83c23 |
|
BLAKE2b-256 | 66d34df9efc10796617ebaf7252f35e66bf51e47805b8b5c4d7ba55b7466b2db |
File details
Details for the file docky-7.0.2-py34+-none-any.whl
.
File metadata
- Download URL: docky-7.0.2-py34+-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3.4+
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2100962ccf15fad4c13f953fcdca63baf4ca27e7946172558a41f94fd40402ca |
|
MD5 | d4ca550b1d8e27553a3d016d1ba968bb |
|
BLAKE2b-256 | 0fd17c2def17480e08bcb234fee9138ef364e4f0c3f01b7815c9c247406607eb |