Skip to content

Commit 4ddeeda

Browse files
authored
Merge pull request #145 from infosiftr/sysctl-issue
Update to 5.0.2
2 parents dc04538 + e31caa4 commit 4ddeeda

File tree

9 files changed

+46
-1
lines changed

9 files changed

+46
-1
lines changed

1.6/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN set -x \
2424
ENV ELASTICSEARCH_VERSION 1.6.2
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

1.7/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN set -x \
2424
ENV ELASTICSEARCH_VERSION 1.7.6
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

2.0/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN set -x \
2424
ENV ELASTICSEARCH_VERSION 2.0.2
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

2.1/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN set -x \
2424
ENV ELASTICSEARCH_VERSION 2.1.2
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

2.2/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN set -x \
2424
ENV ELASTICSEARCH_VERSION 2.2.2
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

2.3/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN set -x \
2424
ENV ELASTICSEARCH_VERSION 2.3.5
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

2.4/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN set -x \
2424
ENV ELASTICSEARCH_VERSION 2.4.2
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

5.0/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ RUN set -x \
2121
&& apt-get update && apt-get install -y --no-install-recommends apt-transport-https && rm -rf /var/lib/apt/lists/* \
2222
&& echo 'deb https://artifacts.elastic.co/packages/5.x/apt stable main' > /etc/apt/sources.list.d/elasticsearch.list
2323

24-
ENV ELASTICSEARCH_VERSION 5.0.1
24+
ENV ELASTICSEARCH_VERSION 5.0.2
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

Dockerfile.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN set -x \
2424
ENV ELASTICSEARCH_VERSION %%ELASTICSEARCH_VERSION%%
2525

2626
RUN set -x \
27+
\
28+
# don't allow the package to install its sysctl file (causes the install to fail)
29+
# Failed to write '262144' to '/proc/sys/vm/max_map_count': Read-only file system
30+
&& dpkg-divert --rename /usr/lib/sysctl.d/elasticsearch.conf \
31+
\
2732
&& apt-get update \
2833
&& apt-get install -y --no-install-recommends elasticsearch=$ELASTICSEARCH_VERSION \
2934
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)