OBT-SYSADM\tomishinets %!s(int64=6) %!d(string=hai) anos
pai
achega
732dcd64b7
Modificáronse 2 ficheiros con 1 adicións e 12 borrados
  1. 1 4
      Dockerfile
  2. 0 8
      run.sh

+ 1 - 4
Dockerfile

@@ -1,6 +1,3 @@
 FROM mongo:4.0
-CMD ["/run.sh"]
 COPY mongo-healthcheck.sh /mongo-healthcheck.sh
-COPY run.sh /run.sh
-RUN chmod +x /mongo-healthcheck.sh \
-    && chmod +x /run.sh
+RUN chmod +x /mongo-healthcheck.sh

+ 0 - 8
run.sh

@@ -1,8 +0,0 @@
-#!/bin/sh
-trap cleanup 0 1 2 3 6 15
-cleanup()
-  {
-    pkill -2 mongod
-  }
-exec "/usr/bin/mongod" "$@" &
-wait