Skip to content

Commit

Permalink
Add dev container (IT-3844) (#32)
Browse files Browse the repository at this point in the history
## Description

See [IT-3844](https://sagebionetworks.jira.com/browse/IT-3844) for the goal and motivation.

## Changelogs

- Add the definition of a dev container that includes all the tools required by this project

## Preview

### Build and open this project inside the dev container (VS Code)

1. Clone the repo
2. Open the repo folder in VS Code
3. VS Code should prompt you to open the project inside the dev container. If not, open the Command Palette and select "Dev Containers: Open Folder in Container..."
4. That's it! You are now inside the dev container and have access to all the development tools

### Tools

Inside the dev container:

```console
$ echo $SHELL
/bin/bash

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy

$ node --version
v22.6.0

$ python --version
Python 3.12.0

$ aws --version
aws-cli/2.17.29 Python/3.11.9 Linux/5.15.133.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22

$ cdk --version
2.151.0 (build b8289e2)
  • Loading branch information
tschaffter authored Aug 13, 2024
1 parent fe06198 commit b083ef8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "AWS CDK & Python Development Environment",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
"features": {
"ghcr.io/devcontainers/features/node:1.5.0": {
"version": "22.6.0"
},
"ghcr.io/devcontainers/features/python:1.6.3": {
"version": "3.12.0"
},
"ghcr.io/devcontainers/features/aws-cli:1": {}
},
"postCreateCommand": [
"pip install --user -U pre-commit && pre-commit install-hooks",
"npm install -g [email protected]"
],
"shutdownAction": "stopContainer"
}

0 comments on commit b083ef8

Please sign in to comment.