mirror of
https://github.com/tcsenpai/deu.git
synced 2025-06-03 10:10:10 +00:00
deu (Docker Environment Utility)
A simple utility to create and manage development containers.
Overview
deu helps you quickly set up development containers with a consistent configuration. It creates a Docker Compose setup and manages container lifecycle.
Installation
# Make the script executable
chmod +x deu.py
# Optionally, create a symlink
ln -s $(pwd)/deu.py /usr/local/bin/deu
# Or copy it
cp $(pwd)/deu.py /usr/local/bin/deu
Usage
Initialize a container
# Initialize with a random service name
deu init .container --image python:3.11
# Initialize with a specific service name
deu init .container --image python:3.11 --service my_service
Container Management
# Start container in background
deu background
# Activate container shell
deu activate
# View container logs
deu logs
# Stop container
deu stop
# Remove container
deu rm
Configuration
deu creates two configuration files:
.container/docker-compose.yml
: Docker Compose configurationdeu.toml
: Container metadata and settings
Requirements
- Python 3.6+
- Docker
- Docker Compose
Known Issues
Python virtual envs
If you encounter a ModuleNotFoundError: No module named 'yaml'
error when working within an environment, be sure to pip install pyyaml
in that environment.
Description
Languages
Python
100%