Skip to content

Commit 2bef927

Browse files
committed
README
1 parent dab969c commit 2bef927

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

README.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
# python-devcontainer
2-
Python devcontainer
1+
# python-devcontainer [![Docker](https://img.shields.io/docker/v/jeffersonlab/python-devcontainer?sort=semver&label=DockerHub)](https://hub.docker.com/r/jeffersonlab/python-devcontainer)
2+
A Python [devcontainer](https://containers.dev/).
3+
4+
## Overview
5+
The 1.x version series uses the following:
6+
- Python 3.10.x
7+
- Ubuntu "jammy"
8+
- [Docker outside of Docker](https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker) (sibling container). Use a bind mount of the form `/var/run/docker.sock:/var/run/docker.sock`. We don't use [Docker in Docker](https://github.com/devcontainers/features/tree/main/src/docker-in-docker), because it appears to be the [less good option](https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/).
9+
10+
## Quick Start with Compose
11+
1. Grab project
12+
```
13+
git clone https://github.com/JeffersonLab/python-devcontainer
14+
cd python-devcontainer
15+
```
16+
2. Launch [Compose](https://github.com/docker/compose)
17+
```
18+
docker compose up
19+
```
20+
21+
## Install
22+
Add a [.devcontainer](https://github.com/JeffersonLab/python-devcontainer/tree/main/.devcontainer) directory to your project and launch it with Compose or your favorite devcontainer launcher (GitHub [Codespaces](https://github.com/features/codespaces), JetBrains [Gateway](https://www.jetbrains.com/remote-development/gateway/), VSCode [devcontainer extension](https://code.visualstudio.com/docs/devcontainers/containers)).
23+
24+
## Build / Release
25+
Make changes to the Dockerfile, test them, then bump the version in the VERSION file and commit it. The CD GitHub Action should take care of the rest.

0 commit comments

Comments
 (0)