An open API service indexing awesome lists of open source software.

https://github.com/felipecruz91/python-dev-env

Python-based Docker Dev Environment
https://github.com/felipecruz91/python-dev-env

docker-dev-environment python3

Last synced: about 1 month ago
JSON representation

Python-based Docker Dev Environment

Awesome Lists containing this project

README

          

# python-dev-env

This is an example of a Python-based Docker Dev Environment that shows how to set environment variables with regards this [issue](https://github.com/docker/dev-environments/issues/88).

![screenshot](docs/images/screenshot.png)

## Getting started

Open Docker Desktop and create a Dev Environment from `https://github.com/felipecruz91/python-dev-env`

![dev-env-1](docs/images/dev-env-1.png)

Clikc on `Open in VSCode` and run the python script within the dev container:

```cli
python -u hello_world.py
```

The script will print the value of the environment variable `RUNNING_IN_CONTAINER`.

The output should be `1` as it is the value set in the [Dockerfile.devenv](.docker/Dockerfile.devenv#L3)