Skip to content

Commit 6668ca4

Browse files
authored
Add support for Codespaces (#396)
1 parent b74d5b3 commit 6668ca4

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.devcontainer/devcontainer.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python 3",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
9+
"version": "latest",
10+
"dockerDashComposeVersion": "v2"
11+
}
12+
},
13+
14+
// Features to add to the dev container. More info: https://containers.dev/features.
15+
// "features": {},
16+
17+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
18+
// "forwardPorts": [],
19+
20+
// Use 'postCreateCommand' to run commands after the container is created.
21+
"postCreateCommand": "pip install --user -r requirements/ubuntu-latest-3.11.txt",
22+
"customizations": {
23+
"vscode": {
24+
"extensions": [
25+
"ms-python.python"
26+
]
27+
}
28+
}
29+
30+
// Configure tool-specific properties.
31+
// "customizations": {},
32+
33+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
34+
// "remoteUser": "root"
35+
}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ venv
6666
.testrepository/
6767

6868
# vscode:
69-
.devcontainer/
7069
.vscode/
7170

7271
.DS_Store

README.rst

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ testcontainers-python
77
:target: https://pypi.python.org/pypi/testcontainers
88
.. image:: https://readthedocs.org/projects/testcontainers-python/badge/?version=latest
99
:target: http://testcontainers-python.readthedocs.io/en/latest/?badge=latest
10+
.. image:: https://github.com/codespaces/badge.svg
11+
:target: https://codespaces.new/testcontainers/testcontainers-python
1012

1113
testcontainers-python facilitates the use of Docker containers for functional and integration testing. The collection of packages currently supports the following features.
1214

0 commit comments

Comments
 (0)