A remote container for working with Scala in Visual Studio Code without package installation/configuration headache
You can install following dependency managers:
- SBT: Installed by default; controlled by argument
INSTALL_SBT
- Maven: To install, set variable
INSTALL_MAVEN
to true in devcontainer.json - Gradle: To install, set variable
INSTALL_GRADLE
to true in devcontainer.json - Spark: To install Spark locally (spark-shell...), set variable
INSTALL_SPARK
to true in devcontainer.json
INFO: To workaround corporate VPN; you must have some kind of proxy setup on your machine (ex: Cntlm). That proxy must be running to run the development container.
To enable proxy usage for the remote env, add the following args to devcontainer.json:
"HTTP_PROXY_HOST": "host.docker.internal"
. This is the default proxy that docker uses internally."HTTP_PROXY_PORT": "3128"
You also need to specify those settings for VSCode's metals extension:
"http.proxy": "http://host.docker.internal:3128",
"metals.serverProperties": [
"-Dhttps.proxyHost=host.docker.internal",
"-Dhttps.proxyPort=3128",
"-Dhttp.proxyHost=host.docker.internal",
"-Dhttp.proxyPort=3128"
],