Skip to content

Instantly share code, notes, and snippets.

@varszegik
Created January 27, 2023 12:25
Show Gist options
  • Save varszegik/04b8cbe8d772fd5003cd6e8adaba61f1 to your computer and use it in GitHub Desktop.
Save varszegik/04b8cbe8d772fd5003cd6e8adaba61f1 to your computer and use it in GitHub Desktop.
Devcontainer for scala
{
"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"
}
}
}
}
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
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