From 127587dc5f88c1f1f5f459b186afaa8dda80b7ba Mon Sep 17 00:00:00 2001 From: Luigi Dell'Aquila Date: Mon, 10 Jun 2019 10:42:06 +0200 Subject: [PATCH] Reduce images footprint --- 2.1/Dockerfile | 5 ++--- 2.2/x86_64/openjdk-slim/Dockerfile | 4 ++-- 3.0-spatial/x86_64/openjdk-slim/Dockerfile | 4 ++-- 3.0-tp3/x86_64/openjdk-slim/Dockerfile | 4 ++-- 3.0/arm64v8/openjdk-slim/Dockerfile | 4 ++-- 3.0/x86_64/openjdk-slim/Dockerfile | 4 ++-- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/2.1/Dockerfile b/2.1/Dockerfile index 19c070b..d2e6ffe 100644 --- a/2.1/Dockerfile +++ b/2.1/Dockerfile @@ -11,7 +11,8 @@ ENV ORIENTDB_DOWNLOAD_MD5 054da3fb7c56e7822b2af116966576ce ENV ORIENTDB_DOWNLOAD_SHA1 b7b08242b40117ac8eb9a201f8704bde839dfcb8 RUN apt update \ - && apt install -y curl wget + && apt install -y curl wget \ + && rm -rf /var/lib/apt/lists/* #download distribution tar, untar and delete databases RUN mkdir /orientdb && \ @@ -23,8 +24,6 @@ RUN mkdir /orientdb && \ && rm -rf /orientdb/databases/* -RUN rm -rf /var/lib/apt/lists/* - ENV PATH /orientdb/bin:$PATH VOLUME ["/orientdb/backup", "/orientdb/databases", "/orientdb/config"] diff --git a/2.2/x86_64/openjdk-slim/Dockerfile b/2.2/x86_64/openjdk-slim/Dockerfile index f2827ff..4f5ab06 100644 --- a/2.2/x86_64/openjdk-slim/Dockerfile +++ b/2.2/x86_64/openjdk-slim/Dockerfile @@ -17,7 +17,8 @@ ENV ORIENTDB_DOWNLOAD_SHA1 469c402dde029f265fe905de2c08b43960e81f07 ENV ORIENTDB_DOWNLOAD_URL ${ORIENTDB_DOWNLOAD_SERVER:-http://central.maven.org/maven2/com/orientechnologies}/orientdb-community/$ORIENTDB_VERSION/orientdb-community-$ORIENTDB_VERSION.tar.gz RUN apt update \ - && apt install -y curl wget + && apt install -y curl wget \ + && rm -rf /var/lib/apt/lists/* #download distribution tar, untar and delete databases RUN mkdir /orientdb && \ @@ -28,7 +29,6 @@ RUN mkdir /orientdb && \ && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* -RUN rm -rf /var/lib/apt/lists/* ENV PATH /orientdb/bin:$PATH diff --git a/3.0-spatial/x86_64/openjdk-slim/Dockerfile b/3.0-spatial/x86_64/openjdk-slim/Dockerfile index 332937c..bb39d60 100644 --- a/3.0-spatial/x86_64/openjdk-slim/Dockerfile +++ b/3.0-spatial/x86_64/openjdk-slim/Dockerfile @@ -17,7 +17,8 @@ ENV ORIENTDB_DOWNLOAD_SHA1 03063be6f3c87f0efbb88e5f34e9be9f187b3ab8 ENV ORIENTDB_DOWNLOAD_URL ${ORIENTDB_DOWNLOAD_SERVER:-http://central.maven.org/maven2/com/orientechnologies}/orientdb-community/$ORIENTDB_VERSION/orientdb-community-$ORIENTDB_VERSION.tar.gz RUN apt update \ - && apt install -y curl wget + && apt install -y curl wget \ + && rm -rf /var/lib/apt/lists/* #download distribution tar, untar and delete databases RUN mkdir /orientdb && \ @@ -28,7 +29,6 @@ RUN mkdir /orientdb && \ && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* -RUN rm -rf /var/lib/apt/lists/* ENV PATH /orientdb/bin:$PATH diff --git a/3.0-tp3/x86_64/openjdk-slim/Dockerfile b/3.0-tp3/x86_64/openjdk-slim/Dockerfile index 0db9596..5c38d51 100644 --- a/3.0-tp3/x86_64/openjdk-slim/Dockerfile +++ b/3.0-tp3/x86_64/openjdk-slim/Dockerfile @@ -17,7 +17,8 @@ ENV ORIENTDB_DOWNLOAD_SHA1 460840d110bd86f558af20c0bd0288a0037faeda ENV ORIENTDB_DOWNLOAD_URL ${ORIENTDB_DOWNLOAD_SERVER:-http://central.maven.org/maven2/com/orientechnologies}/orientdb-tp3/$ORIENTDB_VERSION/orientdb-tp3-$ORIENTDB_VERSION.tar.gz RUN apt update \ - && apt install -y curl wget + && apt install -y curl wget \ + && rm -rf /var/lib/apt/lists/* #download distribution tar, untar and DON'T delete databases (tp3 endopoint won't works if db isn't present) RUN mkdir /orientdb && \ @@ -28,7 +29,6 @@ RUN mkdir /orientdb && \ && rm orientdb-tp3-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* -RUN rm -rf /var/lib/apt/lists/* #overrides internal gremlin-server to set binding to 0.0.0.0 instead of localhost ADD gremlin-server.yaml /orientdb/config diff --git a/3.0/arm64v8/openjdk-slim/Dockerfile b/3.0/arm64v8/openjdk-slim/Dockerfile index 332937c..5c992bb 100644 --- a/3.0/arm64v8/openjdk-slim/Dockerfile +++ b/3.0/arm64v8/openjdk-slim/Dockerfile @@ -17,7 +17,8 @@ ENV ORIENTDB_DOWNLOAD_SHA1 03063be6f3c87f0efbb88e5f34e9be9f187b3ab8 ENV ORIENTDB_DOWNLOAD_URL ${ORIENTDB_DOWNLOAD_SERVER:-http://central.maven.org/maven2/com/orientechnologies}/orientdb-community/$ORIENTDB_VERSION/orientdb-community-$ORIENTDB_VERSION.tar.gz RUN apt update \ - && apt install -y curl wget + && apt install -y curl wget \ + && rm -rf /var/lib/apt/lists/* #download distribution tar, untar and delete databases RUN mkdir /orientdb && \ @@ -28,7 +29,6 @@ RUN mkdir /orientdb && \ && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* -RUN rm -rf /var/lib/apt/lists/* ENV PATH /orientdb/bin:$PATH diff --git a/3.0/x86_64/openjdk-slim/Dockerfile b/3.0/x86_64/openjdk-slim/Dockerfile index 332937c..5c992bb 100644 --- a/3.0/x86_64/openjdk-slim/Dockerfile +++ b/3.0/x86_64/openjdk-slim/Dockerfile @@ -17,7 +17,8 @@ ENV ORIENTDB_DOWNLOAD_SHA1 03063be6f3c87f0efbb88e5f34e9be9f187b3ab8 ENV ORIENTDB_DOWNLOAD_URL ${ORIENTDB_DOWNLOAD_SERVER:-http://central.maven.org/maven2/com/orientechnologies}/orientdb-community/$ORIENTDB_VERSION/orientdb-community-$ORIENTDB_VERSION.tar.gz RUN apt update \ - && apt install -y curl wget + && apt install -y curl wget \ + && rm -rf /var/lib/apt/lists/* #download distribution tar, untar and delete databases RUN mkdir /orientdb && \ @@ -28,7 +29,6 @@ RUN mkdir /orientdb && \ && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* -RUN rm -rf /var/lib/apt/lists/* ENV PATH /orientdb/bin:$PATH