Github user klaemo commented on a diff in the pull request:
https://github.com/apache/couchdb/pull/340#discussion_r48071818
--- Diff: Dockerfile ---
@@ -1,52 +1,52 @@
-FROM debian:wheezy
-MAINTAINER Robert Newson <[email protected]>
-ENV DEBIAN_FRONTEND noninteractive
+# 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.
-# Configure backports
-RUN echo "deb http://http.debian.net/debian wheezy-backports main" >>
/etc/apt/sources.list
-RUN apt-get -qq update
+FROM debian:jessie
-# Install prereqs
-RUN apt-get --no-install-recommends -y install \
+MAINTAINER Clemens Stolle [email protected]
+
+ENV COUCHDB_VERSION master
+
+RUN groupadd -r couchdb && useradd -d /usr/src/couchdb -g couchdb couchdb
+
+# download dependencies
+RUN apt-get update -y -qq && apt-get install -y --no-install-recommends \
+ apt-transport-https \
build-essential \
ca-certificates \
curl \
erlang-dev \
erlang-nox \
git \
+ haproxy \
libicu-dev \
libmozjs185-dev \
- python
-
-# Build rebar
-RUN useradd -m rebar
-USER rebar
-WORKDIR /home/rebar
-RUN curl -L https://github.com/rebar/rebar/archive/2.5.0.tar.gz | tar zxf -
-WORKDIR /home/rebar/rebar-2.5.0
-RUN ./bootstrap
-USER root
-RUN cp rebar /usr/local/bin/
-RUN chmod 755 /usr/local/bin/rebar
-
-# Build couchdb
-RUN useradd -m couchdb
-RUN mkdir -p /home/couchdb
-ADD . /home/couchdb
-USER root
-RUN chown -R couchdb:couchdb /home/couchdb
-USER couchdb
-WORKDIR /home/couchdb
+ openssl \
+ python \
+ && 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
+
+COPY . /usr/src/couchdb
-# We don't to be so strict for simple testing.
-RUN sed -i'' '/require_otp_vsn/d' rebar.config.script
+WORKDIR /usr/src/couchdb
+RUN ./configure --disable-docs && make couch
-# Expose nodes on external network interface
-RUN sed -i'' 's/bind_address = 127.0.0.1/bind_address = 0.0.0.0/'
rel/overlay/etc/default.ini
+# permissions
+RUN chmod +x /usr/src/couchdb/dev/run && chown -R couchdb:couchdb
/usr/src/couchdb
-# Build
-RUN ./configure
-RUN make couch
+USER couchdb
+EXPOSE 5984 15984 25984 35984 15986 25986 35986
--- End diff --
You can `docker exec` or `docker attach` into the container.
> Am 18.12.2015 um 22:22 schrieb iilyak <[email protected]>:
>
> In Dockerfile:
>
> >
> > -# Build
> > -RUN ./configure
> > -RUN make couch
> > +USER couchdb
> > +EXPOSE 5984 15984 25984 35984 15986 25986 35986
> There is no way to remsh with this list of ports. Unless you add extra
ports in command line or use nsenter.
>
> â
> Reply to this email directly or view it on GitHub.
>
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---