Skip to content

Commit 854dbec

Browse files
committed
Update config file path in Docker image
1 parent e0493ae commit 854dbec

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docker/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN \
2727
curl -#LfS "${JDK_DOWNLOAD_LINK}" | tar -zx --strip 1 -C "${JAVA_HOME}"
2828

2929
FROM ${TRINO_GATEWAY_BASE_IMAGE}
30-
WORKDIR /opt/trino-gateway
30+
WORKDIR /usr/lib/trino-gateway
3131

3232
ARG JDK_VERSION
3333
ENV 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/gateway && \
44+
chown -R "trino:trino" /usr/lib/trino-gateway /etc/gateway
4545

4646
COPY --chown=trino:trino gateway-ha /usr/lib/trino-gateway
4747

4848
EXPOSE 8080
4949
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"
5151

5252
HEALTHCHECK --interval=10s --timeout=5s --start-period=10s \
5353
CMD /usr/lib/trino-gateway/bin/health-check

docker/bin/health-check

+1-1
Original file line numberDiff line numberDiff 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/gateway/config.yaml
1010
scheme=http
1111
port=8080
1212

docker/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
ports:
1414
- "8080:8080"
1515
volumes:
16-
- target: /opt/trino-gateway/config.yaml
16+
- target: /etc/gateway/config.yaml
1717
source: ./config.yaml
1818
type: bind
1919

docs/docker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ details found in the `docker-compose.yml` file.
152152
## Configuration
153153

154154
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`.
156156

157157
## Health check
158158

docs/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ configuration.
299299
By 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/gateway/config.yaml
303303
```
304304

305305
You can customize details with the `command` node. It accepts a list, that must

0 commit comments

Comments
 (0)