Browse Source

Add repo mongodb, add install mongo-utils

tomishinets.v 6 years ago
parent
commit
df276ce3c4
3 changed files with 9 additions and 1 deletions
  1. 2 0
      Dockerfile
  2. 1 1
      Jenkinsfile
  3. 6 0
      mongodb-org-3.6.repo

+ 2 - 0
Dockerfile

@@ -3,6 +3,7 @@ ENTRYPOINT ["/tmp/docker-entrypoint.sh"]
 COPY docker-entrypoint.sh \
      healthcheck.sh \
      /tmp/
+COPY mongodb-org-3.6.repo /etc/yum.repos.d/
 ENV CATALINA_HOME="/opt/tomcat"
 ENV PATH=$CATALINA_HOME/bin:$PATH \
     CATALINA_OPTS="-Dconfig.file=/etc/web-laboratory/application.conf" \
@@ -21,6 +22,7 @@ RUN set -x \
            && yum install iputils -y \
            && yum install tomcat-8.0.26-01 -y \
            && yum install web-laboratory -y \
+           && yum install mongodb-org-shell -y \
            && yum clean all \
            && chmod +x /tmp/docker-entrypoint.sh \
            && chmod +x /tmp/healthcheck.sh \

+ 1 - 1
Jenkinsfile

@@ -31,7 +31,7 @@ pipeline {
     )
     string(
       name: "service_update",
-      defaultValue: "lab_node lab_node-api",
+      defaultValue: "lab_node-lab",
       description: "Services to update."
     )
     string(

+ 6 - 0
mongodb-org-3.6.repo

@@ -0,0 +1,6 @@
+[mongodb-org-3.6]
+name=MongoDB Repository
+baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
+gpgcheck=1
+enabled=1
+gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc