You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/10/18 14:40:29 UTC

[GitHub] dgrove-oss closed pull request #71: move package update/install from init.sh into Dockerfile

dgrove-oss closed pull request #71: move package update/install from init.sh into Dockerfile
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/71
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/kubernetes/couchdb/couchdb.yml b/kubernetes/couchdb/couchdb.yml
index f390da1..8696934 100644
--- a/kubernetes/couchdb/couchdb.yml
+++ b/kubernetes/couchdb/couchdb.yml
@@ -32,7 +32,7 @@ spec:
       restartPolicy: Always
       containers:
       - name: couchdb
-        imagePullPolicy: IfNotPresent
+        imagePullPolicy: Always
         image: dgrove/whisk_couchdb
         command: ["/init.sh"]
         ports:
diff --git a/kubernetes/couchdb/docker/Dockerfile b/kubernetes/couchdb/docker/Dockerfile
index ea7dead..5616b38 100644
--- a/kubernetes/couchdb/docker/Dockerfile
+++ b/kubernetes/couchdb/docker/Dockerfile
@@ -10,9 +10,18 @@ RUN apt-get -y update && apt-get -y install \
   curl \
   sudo \
   python-dev \
+  python-pip \
   libffi-dev \
   libssl-dev
 
+RUN pip install --upgrade setuptools
+RUN pip install argcomplete
+RUN pip install couchdb
+RUN pip install --upgrade cffi
+RUN pip install markupsafe
+RUN pip install ansible==2.3.0.0
+RUN pip install -U pyopenssl
+
 COPY init.sh /init.sh
 RUN chmod +X /init.sh
 
diff --git a/kubernetes/couchdb/docker/init.sh b/kubernetes/couchdb/docker/init.sh
index 01d6ba3..f776bca 100755
--- a/kubernetes/couchdb/docker/init.sh
+++ b/kubernetes/couchdb/docker/init.sh
@@ -5,15 +5,6 @@ set -ex
 git clone https://github.com/apache/incubator-openwhisk /openwhisk
 
 pushd /openwhisk
-  # Install ansible requirements
-  ./tools/ubuntu-setup/pip.sh
-
-  # upgrade cffi for ansible error on Debian Jesse
-  pip install --upgrade cffi
-  sudo pip install markupsafe
-  sudo pip install ansible==2.3.0.0
-
-
   # if auth guest overwrite file
   if [ -n "$AUTH_GUEST" ]; then
     echo "$AUTH_GUEST" > /openwhisk/ansible/files/auth.guest


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services