Skip to content

Commit

Permalink
Reduce images footprint
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidellaquila committed Jun 10, 2019
1 parent 0616b98 commit 127587d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
5 changes: 2 additions & 3 deletions 2.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions 2.2/x86_64/openjdk-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions 3.0-spatial/x86_64/openjdk-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions 3.0-tp3/x86_64/openjdk-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions 3.0/arm64v8/openjdk-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions 3.0/x86_64/openjdk-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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

Expand Down

0 comments on commit 127587d

Please sign in to comment.