You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2021/01/18 01:15:34 UTC
[couchdb] 01/01: Parameterize the elixir version
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch 3.x-devcontainer
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 9120ba21efafc0e1fc08028a280719d6bfc58af5
Author: Adam <ko...@apache.org>
AuthorDate: Sun Jan 17 19:36:06 2021 -0500
Parameterize the elixir version
---
.devcontainer/Dockerfile | 6 +++---
.devcontainer/devcontainer.json | 15 +++++++++++++--
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index da4ea62..6394908 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -1,5 +1,5 @@
-# Based on erlang:22 (we need elixir for the test suite)
-FROM elixir:1.10
+ARG ELIXIR_VERSION
+FROM elixir:${ELIXIR_VERSION}
# Use NodeSource binaries for Node.js (Fauxton dependency)
RUN set -ex; \
@@ -19,4 +19,4 @@ RUN set -ex; \
nodejs
# Documentation theme
-RUN pip3 install sphinx_rtd_theme
\ No newline at end of file
+RUN pip3 install sphinx_rtd_theme
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index d38d437..666f9fa 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,8 +1,19 @@
{
"build": {
- "dockerfile": "Dockerfile"
+ "dockerfile": "Dockerfile",
+ "args": {
+ // Useful choices include:
+ // 1.11 -> Erlang 23, Debian Buster
+ // 1.10 -> Erlang 22, Debian Buster
+ // 1.9 -> Erlang 22, Debian Buster
+ //
+ // Older versions based on Debian Stretch will not include
+ // SpiderMonkey 60, which the Dockerfile expects to be able
+ // to install via apt-get.
+ "ELIXIR_VERSION": "1.10"
+ }
},
"extensions": [
"erlang-ls.erlang-ls"
]
-}
\ No newline at end of file
+}