Commit 854dbec 1 parent e0493ae commit 854dbec Copy full SHA for 854dbec
File tree 5 files changed +8
-8
lines changed
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 27
27
curl -#LfS "${JDK_DOWNLOAD_LINK}" | tar -zx --strip 1 -C "${JAVA_HOME}"
28
28
29
29
FROM ${TRINO_GATEWAY_BASE_IMAGE}
30
- WORKDIR /opt /trino-gateway
30
+ WORKDIR /usr/lib /trino-gateway
31
31
32
32
ARG JDK_VERSION
33
33
ENV JAVA_HOME="/usr/lib/jvm/jdk-${JDK_VERSION}"
@@ -40,14 +40,14 @@ RUN \
40
40
microdnf install -y tar less shadow-utils && \
41
41
groupadd trino --gid 1000 && \
42
42
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/gateway && \
44
+ chown -R "trino:trino" /usr/lib/trino-gateway /etc/ gateway
45
45
46
46
COPY --chown=trino:trino gateway-ha /usr/lib/trino-gateway
47
47
48
48
EXPOSE 8080
49
49
USER 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/ gateway/config.yaml"
51
51
52
52
HEALTHCHECK --interval=10s --timeout=5s --start-period=10s \
53
53
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() {
6
6
grep " $1 " " $2 " | cut -d' :' -f2 | tr -d ' [:space:]' || true
7
7
}
8
8
9
- config=/opt/trino- gateway/config.yaml
9
+ config=/etc/ gateway/config.yaml
10
10
scheme=http
11
11
port=8080
12
12
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ services:
13
13
ports :
14
14
- " 8080:8080"
15
15
volumes :
16
- - target : /opt/trino- gateway/config.yaml
16
+ - target : /etc/ gateway/config.yaml
17
17
source : ./config.yaml
18
18
type : bind
19
19
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ details found in the `docker-compose.yml` file.
152
152
## Configuration
153
153
154
154
The 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/ gateway/config.yaml ` .
156
156
157
157
## Health check
158
158
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ configuration.
299
299
By default, the Trino Gateway process is started with the following command :
300
300
301
301
` ` ` 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/gateway/ config.yaml
303
303
` ` `
304
304
305
305
You 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