Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Add devcontainer #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG VARIANT="bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/base:${VARIANT}

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "Debian",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "bullseye" }
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {
"installDirectlyFromGitHubRelease": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/python:1": {
"installTools": true,
"version": "3.10"
},
"ghcr.io/devcontainers-contrib/features/poetry:2": {
"version": "latest"
}
},

"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker"
]
}
},

"postCreateCommand": ".devcontainer/post-create.sh",

"remoteUser": "vscode",
"containerUser": "vscode"
}
6 changes: 6 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -eo pipefail
set -u

pipx install algokit
pipx upgrade algokit
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
continuation_indent_size = 2
indent_size = 2

[*.{html,xml}]
indent_style = spaces
indent_size = 4

[*.py]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
23 changes: 23 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"bungcip.better-toml",
"charliermarsh.ruff",
"editorconfig.editorconfig",
"emeraldwalk.runonsave",
"esbenp.prettier-vscode",
"gitpod.gitpod-desktop",
"gitpod.gitpod-remote-ssh",
"github.vscode-pull-request-github",
"matangover.mypy",
"mhutchie.git-graph",
"redhat.vscode-xml",
"redhat.vscode-yaml",
"runarsf.platform-settings",
"zainchen.json"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true,
}