-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve .devcontainer to use use devcontainer image and .vscode
- Loading branch information
Showing
4 changed files
with
8 additions
and
57 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
# Update the VARIANT arg to pick an Elixir version: latest, 1.11.4, etc. | ||
ARG VARIANT=latest | ||
|
||
FROM ghcr.io/processone/elixir:${VARIANT} | ||
FROM ghcr.io/processone/devcontainer:latest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,7 @@ | ||
{ | ||
"name": "ejabberd", | ||
// "dockerComposeFile": "docker-compose.yml", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
"VARIANT": "latest" // 1.11.4 | ||
} | ||
}, | ||
"workspaceFolder": "/workspace", | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "/bin/zsh", | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": ["pgourlain.erlang", "jakebecker.elixir-ls"], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [5222, 5280, 5269], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "sh .devcontainer/post-create.sh", | ||
|
||
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode", | ||
"portsAttributes": { | ||
"1883": { | ||
"label": "MQTT" | ||
}, | ||
"5222": { | ||
"label": "XMPP C2S" | ||
}, | ||
"5223": { | ||
"label": "Legacy XMPP C2S" | ||
}, | ||
"5269": { | ||
"label": "XMPP S2S" | ||
}, | ||
"5280": { | ||
"label": "ejabberd HTTP" | ||
}, | ||
"5443": { | ||
"label": "ejabberd HTTPS" | ||
} | ||
} | ||
"build": {"dockerfile": "Dockerfile"}, | ||
"extensions": ["erlang-ls.erlang-ls"], | ||
"postCreateCommand": ".devcontainer/prepare-container.sh", | ||
"remoteUser": "vscode" | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
echo "export PATH=/workspaces/ejabberd/_build/relive:$PATH" >>$HOME/.bashrc | ||
echo "COOKIE" >$HOME/.erlang.cookie | ||
chmod 400 $HOME/.erlang.cookie |