]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/kubejacker: Add openSUSE based images 24055/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 12 Sep 2018 08:32:53 +0000 (10:32 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 12 Sep 2018 08:32:53 +0000 (10:32 +0200)
* Added executable bit of `kubejacker.sh`.
* Reduced the number of `RUN` commands
* Added zypper commands for SUSE.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/script/kubejacker/Dockerfile
src/script/kubejacker/kubejacker.sh [changed mode: 0644->0755]

index 9a3971c1ef8ea1f0a226c9f3bac7a43ab0043b49..ed2113a8325461423bc7778d8fe619e9a2f83298 100644 (file)
@@ -1,4 +1,3 @@
-
 from BASEIMAGE
 
 # Some apt-get commands fail in docker builds because they try
@@ -7,14 +6,25 @@ ENV TERM linux
 
 # Baseline rook images may be from before the `rook` ceph-mgr module,
 # so let's install the dependencies of that
-RUN yum install -y python-pip
-RUN pip install kubernetes==6.0.0
+# New RGW dependency since luminous: liboath
+# For the dashboard, if the rook images are pre-Mimic: ython-bcrypt librdmacm
+
+RUN (grep -q rhel /etc/os-release && ( \
+        yum install -y python-pip && \
+        yum install -y liboath && \
+        yum install -y python-bcrypt librdmacm \
+    )) || (grep -q suse /etc/os-release && ( \
+        zypper --non-interactive --gpg-auto-import-keys install --no-recommends --auto-agree-with-licenses --replacefiles --details \
+            python-pip \
+            liboauth-devel \
+            python-bcrypt \
+            lz4 \
+            librdmacm1 \
+            libopenssl1_1 \
+    ))
 
-# New RGW dependency since luminous
-RUN yum install -y liboath
 
-# For the dashboard, if the rook images are pre-Mimic
-RUN yum install -y python-bcrypt librdmacm
+RUN pip install kubernetes==6.0.0
 
 ADD bin.tar.gz /usr/bin/
 ADD lib.tar.gz /usr/lib64/
@@ -23,4 +33,3 @@ ADD lib.tar.gz /usr/lib64/
 # build binaries will be looking for libs there.
 ADD eclib.tar.gz /usr/local/lib64/ceph/erasure-code/
 ADD mgr_plugins.tar.gz /usr/local/lib64/ceph/mgr
-
old mode 100644 (file)
new mode 100755 (executable)