couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [couchdb-docker] 09/39: add initial 2.0-rc2 image (#64)
Date Tue, 25 Apr 2017 12:38:21 GMT
This is an automated email from the ASF dual-hosted git repository.

garren pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-docker.git

commit a1b01ad5d6297888b2b2b8a1d56990fa7d668252
Author: Clemens Stolle <klaemo@fastmail.fm>
AuthorDate: Thu Jul 21 22:37:14 2016 +0200

    add initial 2.0-rc2 image (#64)
---
 .travis.yml        |  2 ++
 2.0-rc2/Dockerfile | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2.0-rc2/local.ini  |  8 +++++
 2.0-rc2/vm.args    | 28 ++++++++++++++++++
 4 files changed, 124 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 9ce7214..5916c7b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,7 +6,9 @@ services:
 before_install:
   - docker build -t couchdb:1.6.1 1.6.1
   - docker build -t couchdb:1.6.1-couchperuser 1.6.1-couchperuser
+  - docker build -t couchdb:2.0-rc2 2.0-rc2
 
 script:
   - docker run -d -p 5984:5984 couchdb:1.6.1 && sleep 5 && curl http://localhost:5984
   - docker run -d -p 5985:5984 couchdb:1.6.1-couchperuser && sleep 5 && curl
http://localhost:5985
+  - docker run -d -p 5986:5984 couchdb:2.0-rc2 && sleep 5 && curl http://localhost:5986
diff --git a/2.0-rc2/Dockerfile b/2.0-rc2/Dockerfile
new file mode 100644
index 0000000..b1adccb
--- /dev/null
+++ b/2.0-rc2/Dockerfile
@@ -0,0 +1,86 @@
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+FROM debian:jessie
+
+MAINTAINER Clemens Stolle klaemo@apache.org
+
+# Add CouchDB user account
+RUN groupadd -r couchdb && useradd -d /opt/couchdb -g couchdb couchdb
+
+RUN apt-get update -y && apt-get install -y --no-install-recommends \
+    ca-certificates \
+    curl \
+    erlang-nox \
+    erlang-reltool \
+    libicu52 \
+    libmozjs185-1.0 \
+    haproxy \
+    openssl \
+  && rm -rf /var/lib/apt/lists/*
+
+# Pin to an arbitrary commit for a deterministic build
+# Once CouchDB has an actual 2.0 tag, we can use that
+ENV COUCHDB_VERSION 2.0.0-RC2
+
+# Download dev dependencies
+RUN apt-get update -y -qq && apt-get install -y --no-install-recommends \
+    apt-transport-https \
+    build-essential \
+    erlang-dev \
+    libcurl4-openssl-dev \
+    libicu-dev \
+    libmozjs185-dev \
+ && curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
\
+ && echo 'deb https://deb.nodesource.com/node_4.x jessie main' > /etc/apt/sources.list.d/nodesource.list
\
+ && echo 'deb-src https://deb.nodesource.com/node_4.x jessie main' >> /etc/apt/sources.list.d/nodesource.list
\
+ && apt-get update -y -qq \
+ && apt-get install -y nodejs \
+ && npm install -g grunt-cli \
+ # Acquire CouchDB source code
+ && cd /usr/src && mkdir couchdb \
+ && curl -fSL https://couchdb-ci.s3-eu-west-1.amazonaws.com/release-candidate/apache-couchdb-$COUCHDB_VERSION.tar.gz
-o couchdb.tar.gz \
+ && tar -xzf couchdb.tar.gz -C couchdb --strip-components=1 \
+ && cd couchdb \
+ # Build the release and install into /opt
+ && ./configure --disable-docs \
+ && make release \
+ && mv /usr/src/couchdb/rel/couchdb /opt/ \
+ # Cleanup build detritus
+ && apt-get purge -y \
+    binutils \
+    build-essential \
+    cpp \
+    erlang-dev \
+    git \
+    libicu-dev \
+    make \
+    nodejs \
+    perl \
+ && apt-get autoremove -y && apt-get clean \
+ && apt-get install -y libicu52 --no-install-recommends \
+ && rm -rf /var/lib/apt/lists/* /usr/lib/node_modules /usr/src/couchdb*
+
+# Add configuration
+COPY local.ini /opt/couchdb/etc/
+COPY vm.args /opt/couchdb/etc/
+
+# Setup directory permissions
+RUN mkdir -p /opt/couchdb/data \
+ && chown -R couchdb:couchdb /opt/couchdb/
+
+USER couchdb
+WORKDIR /opt/couchdb
+EXPOSE 5984 4369 9100
+VOLUME ["/opt/couchdb/data"]
+
+ENTRYPOINT ["/opt/couchdb/bin/couchdb"]
diff --git a/2.0-rc2/local.ini b/2.0-rc2/local.ini
new file mode 100644
index 0000000..1aa633c
--- /dev/null
+++ b/2.0-rc2/local.ini
@@ -0,0 +1,8 @@
+; CouchDB Configuration Settings
+
+; Custom settings should be made in this file. They will override settings
+; in default.ini, but unlike changes made to default.ini, this file won't be
+; overwritten on server upgrade.
+
+[chttpd]
+bind_address = any
diff --git a/2.0-rc2/vm.args b/2.0-rc2/vm.args
new file mode 100644
index 0000000..0425756
--- /dev/null
+++ b/2.0-rc2/vm.args
@@ -0,0 +1,28 @@
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+# Ensure that the Erlang VM listens on a known port
+-kernel inet_dist_listen_min 9100
+-kernel inet_dist_listen_max 9100
+
+# Tell kernel and SASL not to log anything
+-kernel error_logger silent
+-sasl sasl_error_logger false
+
+# Use kernel poll functionality if supported by emulator
++K true
+
+# Start a pool of asynchronous IO threads
++A 16
+
+# Comment this line out to enable the interactive Erlang shell on startup
++Bd -noinput

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message