diff --git a/docker/release/dockerfiles/opensearch-dashboards.al2.dockerfile b/docker/release/dockerfiles/opensearch-dashboards.al2.dockerfile index 0ef6feb340..867f3a592b 100644 --- a/docker/release/dockerfiles/opensearch-dashboards.al2.dockerfile +++ b/docker/release/dockerfiles/opensearch-dashboards.al2.dockerfile @@ -49,6 +49,7 @@ RUN tar -xzpf $TEMP_DIR/opensearch-dashboards-`uname -p`.tgz -C $OPENSEARCH_DASH # Copy working directory to the actual release docker images FROM amazonlinux:2 +ARG TARGETARCH ARG UID=1000 ARG GID=1000 ARG OPENSEARCH_DASHBOARDS_HOME=/usr/share/opensearch-dashboards @@ -60,8 +61,8 @@ ENV TINI_VERSION=v0.19.0 RUN yum update -y && yum install -y tar gzip shadow-utils which && yum clean all # Add tini to use as init (PID1) process. -ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini -RUN chmod +x /bin/tini +ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${TARGETARCH} /bin/tini +RUN chmod 755 /bin/tini # Install Reporting dependencies RUN yum install -y libnss3.so xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc fontconfig freetype && yum clean all @@ -98,5 +99,5 @@ LABEL org.label-schema.schema-version="1.0" \ org.label-schema.build-date="$BUILD_DATE" # CMD to run -ENTRYPOINT ["tini", "--", "./opensearch-dashboards-docker-entrypoint.sh"] +ENTRYPOINT ["/bin/tini", "--", "./opensearch-dashboards-docker-entrypoint.sh"] CMD ["opensearch-dashboards"] diff --git a/docker/release/dockerfiles/opensearch.al2.dockerfile b/docker/release/dockerfiles/opensearch.al2.dockerfile index 02cde40f03..49794d902e 100644 --- a/docker/release/dockerfiles/opensearch.al2.dockerfile +++ b/docker/release/dockerfiles/opensearch.al2.dockerfile @@ -51,6 +51,7 @@ RUN ls -l $TEMP_DIR && \ # Copy working directory to the actual release docker images FROM amazonlinux:2 +ARG TARGETARCH ARG UID=1000 ARG GID=1000 ARG OPENSEARCH_HOME=/usr/share/opensearch @@ -62,8 +63,8 @@ ENV TINI_VERSION=v0.19.0 RUN yum update -y && yum install -y tar gzip shadow-utils which && yum clean all # Add tini to use as init (PID1) process. -ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini -RUN chmod +x /bin/tini +ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${TARGETARCH} /bin/tini +RUN chmod 755 /bin/tini # Create an opensearch user, group RUN groupadd -g $GID opensearch && \ @@ -112,5 +113,5 @@ LABEL org.label-schema.schema-version="1.0" \ org.label-schema.build-date="$BUILD_DATE" # CMD to run -ENTRYPOINT ["tini", "--", "./opensearch-docker-entrypoint.sh"] +ENTRYPOINT ["/bin/tini", "--", "./opensearch-docker-entrypoint.sh"] CMD ["opensearch"]