-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* debug es * remove gp dep * do not build greemplum * add pgvectorscale * update kafka ver * update dockerfiles
- Loading branch information
Showing
9 changed files
with
62 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
ARG BASE_NAMESPACE | ||
ARG BASE_IMG="base" | ||
ARG BASE_IMG="atom" | ||
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG} as builder | ||
|
||
ARG ES_VERSION="7.11.2" | ||
ARG ES_VERSION="8.14.1" | ||
|
||
|
||
RUN source /opt/utils/script-utils.sh \ | ||
RUN set -eux && source /opt/utils/script-utils.sh \ | ||
&& ES_SOURCECODE="https://github.com/elastic/elasticsearch/archive/v${ES_VERSION}.tar.gz" \ | ||
&& ES_ARTIFACT="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz" \ | ||
&& install_tar_gz ${ES_SOURCECODE} && mv /opt/elasticsearch-* /tmp/elasticsearch \ | ||
|
@@ -17,14 +17,14 @@ RUN source /opt/utils/script-utils.sh \ | |
&& sed -i -e 's/ES_DISTRIBUTION_TYPE=tar/ES_DISTRIBUTION_TYPE=docker/' /opt/elasticsearch/bin/elasticsearch-env \ | ||
&& mkdir -pv config/jvm.options.d | ||
|
||
RUN set -ex \ | ||
RUN set -eux \ | ||
&& mkdir -pv /tmp/build/src && cd /tmp/build \ | ||
&& ln -s /opt/elasticsearch/lib /tmp/build/ \ | ||
&& ln -s /opt/elasticsearch/modules /tmp/build/ \ | ||
&& find /tmp/elasticsearch -name "License.java" | xargs -r -I {} cp {} . \ | ||
&& sed -i 's#this.type = type;#this.type = "platinum";#g' License.java \ | ||
&& sed -i 's#validate();#// validate();#g' License.java \ | ||
&& javac -cp "`ls lib/elasticsearch-${ES_VERSION}.jar`:`ls lib/elasticsearch-x-content-*.jar`:`ls lib/lucene-core-*.jar`:`ls modules/x-pack-core/x-pack-core-*.jar`" License.java \ | ||
&& javac -cp "`ls lib/elasticsearch-${ES_VERSION}.jar`:`ls lib/elasticsearch-core-${ES_VERSION}.jar`:`ls lib/elasticsearch-x-content-*.jar`:`ls lib/lucene-core-*.jar`:`ls modules/x-pack-core/x-pack-core-*.jar`" License.java \ | ||
&& cd /tmp/build/src \ | ||
&& find /opt/elasticsearch/ -name "x-pack-core-*.jar" | xargs -r -I {} cp {} . \ | ||
&& jar xf x-pack-core-${ES_VERSION}.jar \ | ||
|
@@ -33,24 +33,24 @@ RUN set -ex \ | |
&& cp -r /tmp/build/src/x-pack-core-*.jar /opt/elasticsearch/modules/x-pack-core/ \ | ||
&& rm -rf /tmp/* | ||
|
||
COPY --chown=1000:0 docker-entrypoint.sh /opt/elasticsearch/docker-entrypoint.sh | ||
COPY --chown=1000:0 elasticsearch.yml /opt/elasticsearch/config/ | ||
COPY --chown=1000:0 log4j2.properties /opt/elasticsearch/config/ | ||
COPY --chown=1001:0 docker-entrypoint.sh /opt/elasticsearch/docker-entrypoint.sh | ||
COPY --chown=1001:0 elasticsearch.yml /opt/elasticsearch/config/ | ||
COPY --chown=1001:0 log4j2.properties /opt/elasticsearch/config/ | ||
|
||
# Second build stage | ||
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG} | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
COPY --from=builder /opt/jdk /opt/jdk | ||
COPY --from=builder --chown=1000:0 /opt/elasticsearch /opt/elasticsearch | ||
COPY --from=builder --chown=1001:0 /opt/elasticsearch /opt/elasticsearch | ||
|
||
RUN source /opt/utils/script-setup.sh \ | ||
&& setup_tini \ | ||
RUN set -eux && source /opt/utils/script-setup.sh \ | ||
# && setup_tini \ | ||
&& ln -s /opt/jdk/bin/* /usr/bin/ \ | ||
&& ln -s /opt/elasticsearch /usr/share/ \ | ||
&& groupadd --gid 1000 elasticsearch \ | ||
&& adduser --system -q --uid 1000 --gid 1000 --gid 0 --home /opt/elasticsearch elasticsearch \ | ||
&& groupadd --gid 1001 elasticsearch \ | ||
&& adduser --system -q --uid 1001 --gid 1001 --gid 0 --home /opt/elasticsearch elasticsearch \ | ||
&& chmod -R 0775 /opt/elasticsearch && chgrp 0 /opt/elasticsearch \ | ||
&& chmod g=u /etc/passwd \ | ||
&& find / -xdev -perm -4000 -exec chmod ug-s {} + \ | ||
|
@@ -59,7 +59,7 @@ RUN source /opt/utils/script-setup.sh \ | |
&& echo "elastic" | bin/elasticsearch-keystore add -xf bootstrap.password \ | ||
&& echo "" | bin/elasticsearch-certutil ca -s --out elastic-stack-ca.p12 --pass \ | ||
&& echo "" | bin/elasticsearch-certutil cert -s --ca elastic-stack-ca.p12 --ca-pass "" --out elastic-certificates.p12 --pass \ | ||
&& mv elastic-*.p12 config/ && chown 1000:0 config/elastic-*.p12 config/elasticsearch.keystore \ | ||
&& mv elastic-*.p12 config/ && chown 1001:0 config/elastic-*.p12 config/elasticsearch.keystore \ | ||
&& echo "vm.swappiness=0" >> /etc/sysctl.conf \ | ||
&& echo "vm.max_map_count=655360 " >> /etc/sysctl.conf \ | ||
&& echo "* soft memlock unlimited" >> /etc/security/limits.conf \ | ||
|
@@ -70,6 +70,6 @@ EXPOSE 9200 9300 | |
WORKDIR /opt/elasticsearch | ||
VOLUME /data/elasticsearch | ||
|
||
ENTRYPOINT ["tini", "--", "/opt/elasticsearch/docker-entrypoint.sh"] | ||
ENTRYPOINT ["/opt/elasticsearch/docker-entrypoint.sh"] | ||
|
||
CMD ["eswrapper"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ ARG BASE_NAMESPACE | |
ARG BASE_IMG="jdk-11" | ||
FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG} | ||
|
||
ARG KAFKA_VERSION="7.3.3" | ||
ARG KAFKA_VERSION="7.7.0" | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
|
@@ -16,7 +16,7 @@ ENV COMPONENT=kafka \ | |
KAFKA_VERSION="${KAFKA_VERSION}" \ | ||
KAFKA_HOME=/opt/kafka | ||
|
||
RUN source /opt/utils/script-confluent-kafka.sh \ | ||
RUN set -eux && source /opt/utils/script-confluent-kafka.sh \ | ||
&& echo "Install confluent-kafka:" && setup_confluent_kafka \ | ||
&& echo "Setup confluent Kafka to run in KRaft mode" && setup_confluent_kafka_kraft \ | ||
&& echo "Clean up" && list_installed_packages && install__clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,16 @@ LABEL maintainer="[email protected]" | |
|
||
COPY rootfs / | ||
|
||
RUN set -x && . /opt/utils/script-utils.sh && . /opt/utils/script-setup-pg_ext_mirror.sh \ | ||
RUN set -eux && . /opt/utils/script-utils.sh && . /opt/utils/script-setup-pg_ext_mirror.sh \ | ||
## Generate a package list based on PG_MAJOR version | ||
&& apt-get update && apt-get install -y gettext \ | ||
&& envsubst < /opt/utils/install_list_pgext.tpl.apt > /opt/utils/install_list_pgext.apt \ | ||
&& rm -rf /opt/utils/install_list_pgext.tpl.apt \ | ||
## Install extensions | ||
&& . /opt/utils/script-setup-pg_ext.sh \ | ||
&& PYTHON_VERSION=$(python -c 'from sys import version_info as v; print("%s.%s" % (v.major, v.minor))') \ | ||
## Hack: fix system python / conda python | ||
&& cp -rf /opt/conda/lib/python3.11/platform.py.bak /opt/conda/lib/python3.11/platform.py \ | ||
&& cp -rf "/opt/conda/lib/python${PYTHON_VERSION}/platform.py.bak" "/opt/conda/lib/python${PYTHON_VERSION}/platform.py" \ | ||
&& echo "Clean up" && list_installed_packages && install__clean | ||
|
||
USER postgres | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters