-
-
Save varszegik/04b8cbe8d772fd5003cd6e8adaba61f1 to your computer and use it in GitHub Desktop.
Devcontainer for scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"name": "Ubuntu", | |
"dockerComposeFile": "docker-compose.yml", | |
"service": "app", | |
"workspaceFolder": "/workspace", | |
"customizations": { | |
"vscode": { | |
"extensions": [ | |
"scala-lang.scala", | |
"scalameta.metals", | |
"hbenl.vscode-test-explorer", | |
"Anan.jetbrains-darcula-theme" | |
], | |
"settings": { | |
"workbench.colorTheme": "JetBrains Darcula Theme" | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
app: | |
build: | |
context: .. | |
dockerfile: .devcontainer/Dockerfile | |
command: /bin/sh -c "while sleep 1000; do :; done" | |
volumes: | |
- ..:/workspace:cached | |
rabbit-mq: | |
image: rabbitmq:3.8.27-alpine | |
environment: | |
RABBITMQ_DEFAULT_USER: "rabbit-user" | |
RABBITMQ_DEFAULT_PASS: "local-rabbit-pass" | |
network_mode: service:app | |
postgres: | |
image: postgres:9.6-alpine | |
environment: | |
POSTGRES_PASSWORD: "localpass" | |
network_mode: service:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/devcontainers/base:jammy | |
USER vscode | |
RUN curl -s "https://get.sdkman.io" | bash | |
RUN chmod +x "$HOME/.sdkman/bin/sdkman-init.sh" | |
RUN "$HOME/.sdkman/bin/sdkman-init.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment