Github user iilyak commented on a diff in the pull request:

    https://github.com/apache/couchdb/pull/340#discussion_r48359630
  
    --- Diff: dev/docker-cli ---
    @@ -0,0 +1,44 @@
    +#!/bin/bash
    +# 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.
    +
    +set -e
    +
    +if [ "$1" = 'build' ]; then
    +  printf "Building \"couchdb-master\" docker image...\n\n"
    +  # build docker image
    +  docker build -t couchdb-master .
    +
    +  printf "\nBuilding CouchDB inside of docker container...\n\n"
    +  # run build process inside of a container
    +  exec docker run -it --rm -v $(pwd):/usr/src/couchdb couchdb-master build 
"${@:2}"
    +fi
    +
    +if [ "$1" = 'run' ]; then
    +  printf "Starting CouchDB inside of docker container. Please be 
patient...\n\n"
    +
    +  # create container with appropriate port mappings
    +  COUCH_CONTAINER_ID="$(docker create -it \
    +                  -p 5984:5984 -p 15984:15984 -p 25984:25984 -p 
35984:35984 \
    +                  -p 15986:15986 -p 25986:25986 -p 35986:35986 \
    +                  couchdb-master dev/run ${@:2})"
    --- End diff --
    
    If you would support remsh it would be nice if you add `docker-cli remsh` 
command.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to