Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pfrommerd/denvtool
A docker environment management tool
https://github.com/pfrommerd/denvtool
Last synced: 3 months ago
JSON representation
A docker environment management tool
- Host: GitHub
- URL: https://github.com/pfrommerd/denvtool
- Owner: pfrommerd
- Created: 2024-01-06T17:54:50.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-11T23:04:01.000Z (9 months ago)
- Last Synced: 2024-04-08T21:20:17.104Z (7 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation and Basic Usage
Using denvtool is easy, to install:
```bash
pip install git+https://github.com/pfrommerd/denvtool.git
```
Then generate a new project with
```bash
denvtool new
```
in the root directory of the project folder.Denvtool has several steps:
1. Run docker/config.py to prompt the user for the environment configuration
2. Generate the Dockerfiles using the .templates in the docker folder
3. Build the container
4. Start the containerTo generate the environment files, build the container, and start, use
```
denvtool start
```
Once started, get a shell in the running container using
```
denvtool shell
```
I highly recommend using the VSCode Dev Containers extension to attach to the running container.
You can use Ctrl + Shift + P in VSCode to bring up the command menu and search for "Attach to Running Container"### More operations
You can explicitly re-generate the configuration or Dockerfiles using
```
denvtool config
```
and
```
denvtool gen
```
To just build the container (without starting) you can use
```
denvtool build
```
To shut down the container, use
```
denvtool stop
```
To delete all files relating to a configuration (including the stored home directory volume), use
```
denvtool purge
```