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 00:40:58 UTC

[couchdb] branch 3.x-devcontainer created (now d6cc979)

This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a change to branch 3.x-devcontainer
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at d6cc979  Parameterize the elixir version

This branch includes the following new commits:

     new 89d9123  Minimal devcontainer.json configuration
     new f9c13e4  Add dependencies for Fauxton and documentation
     new 700d3cf  Add commentary to explain dependencies to new users
     new d6cc979  Parameterize the elixir version

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 02/04: Add dependencies for Fauxton and documentation

Posted by ko...@apache.org.
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 f9c13e42ce1f0789d7253223f76149f6fcaf02d8
Author: Adam <ko...@apache.org>
AuthorDate: Sat Jan 16 20:02:35 2021 -0500

    Add dependencies for Fauxton and documentation
---
 .devcontainer/Dockerfile | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index e3332e0..c7df3d4 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -1,7 +1,19 @@
 # Based on erlang:22
 FROM elixir:1.10
 
-RUN apt-get update -y && apt-get install -y \
+RUN set -ex; \
+    curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -; \
+    echo "deb https://deb.nodesource.com/node_10.x buster main" | tee /etc/apt/sources.list.d/nodesource.list; \
+    echo "deb-src https://deb.nodesource.com/node_10.x buster main" | tee -a /etc/apt/sources.list.d/nodesource.list
+
+RUN set -ex; \
+    apt-get update; \
+    apt-get install -y --no-install-recommends \
         libmozjs-60-dev \
         libicu-dev \
-        python3-venv
\ No newline at end of file
+        python3-venv \
+        python3-pip \
+        python3-sphinx \
+        nodejs
+
+RUN pip3 install sphinx_rtd_theme
\ No newline at end of file


[couchdb] 04/04: Parameterize the elixir version

Posted by ko...@apache.org.
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 d6cc979f83400270cd2c0c4fe4df3736c297cb87
Author: Adam <ko...@apache.org>
AuthorDate: Sun Jan 17 19:36:06 2021 -0500

    Parameterize the elixir version
---
 .devcontainer/Dockerfile        |  4 ++--
 .devcontainer/devcontainer.json | 13 ++++++++++++-
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index da4ea62..da9c55a 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; \
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index d38d437..5207e52 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,6 +1,17 @@
 {
     "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"


[couchdb] 01/04: Minimal devcontainer.json configuration

Posted by ko...@apache.org.
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 89d9123d77dbda46522d0826c55a6f77137138d8
Author: Adam <ko...@apache.org>
AuthorDate: Sat Jan 16 16:11:19 2021 -0500

    Minimal devcontainer.json configuration
    
    This container is sufficient to build CouchDB 3.x from source using
    
      ./configure --dev --spidermonkey-version 60
    
    and run the full test suite to completion.
---
 .devcontainer/Dockerfile        | 7 +++++++
 .devcontainer/devcontainer.json | 8 ++++++++
 2 files changed, 15 insertions(+)

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000..e3332e0
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,7 @@
+# Based on erlang:22
+FROM elixir:1.10
+
+RUN apt-get update -y && apt-get install -y \
+        libmozjs-60-dev \
+        libicu-dev \
+        python3-venv
\ No newline at end of file
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..d38d437
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,8 @@
+{
+    "build": {
+        "dockerfile": "Dockerfile"
+    },
+    "extensions": [
+        "erlang-ls.erlang-ls"
+    ]
+}
\ No newline at end of file


[couchdb] 03/04: Add commentary to explain dependencies to new users

Posted by ko...@apache.org.
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 700d3cfce6a6dd43a763605b306e2fde8c62ae12
Author: Adam <ko...@apache.org>
AuthorDate: Sat Jan 16 21:13:25 2021 -0500

    Add commentary to explain dependencies to new users
---
 .devcontainer/Dockerfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index c7df3d4..da4ea62 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -1,11 +1,13 @@
-# Based on erlang:22
+# Based on erlang:22 (we need elixir for the test suite)
 FROM elixir:1.10
 
+# Use NodeSource binaries for Node.js (Fauxton dependency)
 RUN set -ex; \
     curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -; \
     echo "deb https://deb.nodesource.com/node_10.x buster main" | tee /etc/apt/sources.list.d/nodesource.list; \
     echo "deb-src https://deb.nodesource.com/node_10.x buster main" | tee -a /etc/apt/sources.list.d/nodesource.list
 
+# Using SM 60 here so be sure to set --spidermonkey-version 60 in configure
 RUN set -ex; \
     apt-get update; \
     apt-get install -y --no-install-recommends \
@@ -16,4 +18,5 @@ RUN set -ex; \
         python3-sphinx \
         nodejs
 
+# Documentation theme
 RUN pip3 install sphinx_rtd_theme
\ No newline at end of file