-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix vulnerabilities in docker image #109
Conversation
ravisingal
commented
Oct 20, 2022
- fix vulnerabilities in docker image
- add capability to mount existing claim in pinot controller pods
- update prometheus-jmx-exporter image version
2. add capability to mount existing claim in pinot controller pods
|
||
# Fetch jar | ||
RUN curl -L -o $PINOT_HOME/lib/pinot-all-${JITPACK_TAG}-shaded.jar \ | ||
https://jitpack.io/com/github/${JITPACK_REPO}/pinot-distribution/${JITPACK_TAG}/pinot-distribution-${JITPACK_TAG}-shaded.jar | ||
|
||
# Fetch plugin jars | ||
RUN for artifactId in pinot-kafka-2.0 pinot-kinesis pinot-thrift pinot-json pinot-parquet pinot-orc pinot-csv pinot-confluent-avro pinot-avro pinot-protobuf pinot-batch-ingestion-standalone pinot-batch-ingestion-hadoop pinot-batch-ingestion-spark pinot-hdfs pinot-adls pinot-gcs pinot-s3 pinot-minion-builtin-tasks pinot-segment-uploader-default pinot-segment-writer-file-based pinot-dropwizard pinot-yammer; do \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the following 3 plugins having critical vulnerabilities:
- pinot-input-format/pinot-orc
- pinot-input-format/pinot-parquet
- pinot-batch-ingestion/pinot-batch-ingestion-spark
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming we are not using them?
curl -L -o $PINOT_HOME/plugins/${artifactId}-${JITPACK_TAG}-shaded.jar \ | ||
https://jitpack.io/com/github/${JITPACK_REPO}/${artifactId}/${JITPACK_TAG}/${artifactId}-${JITPACK_TAG}-shaded.jar; \ | ||
done | ||
|
||
FROM openjdk:11-jre-slim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
openjdk images are deprecated. docker-library/openjdk#505
@@ -133,9 +133,15 @@ spec: | |||
- name: log-config | |||
configMap: | |||
name: {{ include "pinot.controller.fullname" . }}-log-config | |||
{{- if not .Values.controller.persistence.enabled }} | |||
{{- if .Values.controller.persistence.existingClaim }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if existingClaim
is defined, it will be used instead of creating a new PVC.
@@ -457,7 +458,7 @@ server: | |||
port: 7071 | |||
image: | |||
repository: hypertrace/prometheus-jmx-exporter | |||
tag: 0.1.0 | |||
tag: 0.1.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1a1f7af
@@ -45,13 +45,19 @@ spec: | |||
exitCode=1 | |||
i=0 | |||
while [ $i -le {{ .Values.zookeeper.retries }} ]; do | |||
bin/zookeeper-shell.sh ZooKeeper -server {{ include "zookeeper.url" . | quote }} create {{ .Values.zookeeper.path | quote }} "" | |||
bin/zookeeper-shell.sh ZooKeeper -server {{ include "zookeeper.url" . | quote }} ls {{ .Values.zookeeper.path | quote }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new image returns error if the node already exist in zookeeper.
WatchedEvent state:SyncConnected type:None path:null
Node already exists: /pinot
[2022-10-20 16:45:45,596] ERROR Exiting JVM with code 1 (org.apache.zookeeper.util.ServiceUtils)
updated script to first check the node before creating it.