File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2727 curl -#LfS "${JDK_DOWNLOAD_LINK}" | tar -zx --strip 1 -C "${JAVA_HOME}"
2828
2929FROM ${TRINO_GATEWAY_BASE_IMAGE}
30- WORKDIR /opt /trino-gateway
30+ WORKDIR /usr/lib /trino-gateway
3131
3232ARG JDK_VERSION
3333ENV JAVA_HOME="/usr/lib/jvm/jdk-${JDK_VERSION}"
@@ -40,14 +40,14 @@ RUN \
4040 microdnf install -y tar less shadow-utils && \
4141 groupadd trino --gid 1000 && \
4242 useradd trino --uid 1000 --gid 1000 --create-home && \
43- mkdir -p /usr/lib/trino-gateway && \
44- chown -R "trino:trino" /usr/lib/trino-gateway /opt /trino-gateway
43+ mkdir -p /usr/lib/trino-gateway /etc/trino-gateway && \
44+ chown -R "trino:trino" /usr/lib/trino-gateway /etc /trino-gateway
4545
4646COPY --chown=trino:trino gateway-ha /usr/lib/trino-gateway
4747
4848EXPOSE 8080
4949USER trino:trino
50- CMD java -jar /usr/lib/trino-gateway/gateway-ha-jar-with-dependencies.jar "/opt /trino-gateway/config.yaml"
50+ CMD java -jar /usr/lib/trino-gateway/gateway-ha-jar-with-dependencies.jar "/etc /trino-gateway/config.yaml"
5151
5252HEALTHCHECK --interval=10s --timeout=5s --start-period=10s \
5353 CMD /usr/lib/trino-gateway/bin/health-check
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function get_property() {
66 grep " $1 " " $2 " | cut -d' :' -f2 | tr -d ' [:space:]' || true
77}
88
9- config=/opt /trino-gateway/config.yaml
9+ config=/etc /trino-gateway/config.yaml
1010scheme=http
1111port=8080
1212
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ services:
1313 ports :
1414 - " 8080:8080"
1515 volumes :
16- - target : /opt /trino-gateway/config.yaml
16+ - target : /etc /trino-gateway/config.yaml
1717 source : ./config.yaml
1818 type : bind
1919
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ details found in the `docker-compose.yml` file.
152152## Configuration
153153
154154The image uses the configuration file ` docker/config.yaml ` from the project
155- checkout, and mounts it at ` /opt /trino-gateway/config.yaml ` .
155+ checkout, and mounts it at ` /etc /trino-gateway/config.yaml ` .
156156
157157## Health check
158158
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ configuration.
299299By default, the Trino Gateway process is started with the following command :
300300
301301` ` ` shell
302- java -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar config.yaml
302+ java -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -jar /usr/lib/trino-gateway /gateway-ha-jar-with-dependencies.jar /etc/trino-gateway/ config.yaml
303303` ` `
304304
305305You can customize details with the `command` node. It accepts a list, that must
You can’t perform that action at this time.
0 commit comments