No project description provided
Project description
Dockipy
Table of Contents
Installation
pip install dockipy
What is dockipy
?
dockipy
is your ticket to productivity paradise, a simple yet mighty wrapper around the Docker command line interface. It's the friend who says, "Don't worry about the nitty-gritty, I got you!" Just lean back and let dockipy work its magic, it will mount you project in a container seamlessly. If it doesn't break then everything should be fine.
And here's the cherry on top: with dockipy
, you can dive into a Python virtual environment inside your container. It's like a containerception—codeception—whatever you want to call it! Run your code with the ease, all thanks to dockipy.
But wait, there's a catch! Before you sail into the dockipy
, make sure you have Docker installed. And if you're planning to use NVIDIA GPUs, brace yourself! Docker GPU driver installation is a mess, dockipy
won't hold your hand through that chaos—consider yourself warned!
How to Use dockipy
Ready to embark on your container adventure? Here's how dockipy can make your coding dreams come true:
Run Your Code: Use dockipy to run your code in a container inside a Python virtual environment within another container. It's like Inception, but for coding!
dockipy my_script.py
How to Use dockishell
Need to run an arbitrary command in a container? No problem! Just fire up dockishell and let the container magic begin.
dockishell nvidia-smi
How to Use dockinotebook
Want to unleash the power of Jupyter Notebooks in a container? Say no more! Use dockinotebook and open the link in your browser, colab or visual studio code.
dockinotebook
Configure environment
Tired of Docker feeling like a high-maintenance diva? Set up your environment like a pro with docki.yaml. No more Docker dramas, just smooth sailing.
docki --init
docki.yaml
This file is used to specify the base image, system dependencies, and python dependencies for the Docker container. If the file does not exist, a template will be created in the project root using docki --init.
base_image: The base image for the Docker container. You can find images on Docker Hub.
system_dep: A list of system dependencies to install in the Docker container. Install with apt-get.
python_dep: A list of python dependencies to install in the Docker container or a path to a requirements.txt file.
base_image: nvidia/cuda:11.8.0-devel-ubuntu22.04
shm_size: 16G # shared memory size
tag: docki_image
system_dep:
- python3
- python3-pip
- python3-dev
- python3-venv
python_dep:
- jupyter
notebook_token: docki
notebook_password: docki
or
base_image: ubuntu:latest
shm_size: 16G # shared memory size
tag: docki_image
system_dep:
- python3
- python3-pip
- python3-dev
- python3-venv
python_dep:
file: ./requirements.txt
notebook_token: docki
notebook_password: docki
License
dockipy
is like that cool friend who always lets you borrow their stuff without any fuss. It's distributed under the terms of the apache-2.0 license. So go ahead, have some fun with it! 🎉
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 dockipy-0.0.3.tar.gz
.
File metadata
- Download URL: dockipy-0.0.3.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6772da3c9d82f3e1ce6509f2aba4f7b9f14e6d97594e5ef0a05b035b16277822 |
|
MD5 | 99acbfaa23ebdf70589fefa44c9f390d |
|
BLAKE2b-256 | b07ccd131657b69896d19cdb0b0faae89518456a310d4ca1b812d6ef7eac2e21 |
File details
Details for the file dockipy-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: dockipy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 466172f98c73d59890afcb0a0b64ea86283a00b32689a7868a3e706f67314d96 |
|
MD5 | 9933f5405d9f98a49f237ca891db6de7 |
|
BLAKE2b-256 | 9468cdf6669a1866111f54fae8a402e5bf0e74093266266ff314b818390b49e9 |