Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/trino-server-rpm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ After installing Trino from the RPM, you can run:
We use the following directory structure to deploy various Trino artifacts.

* `/usr/lib/trino/lib/`: Various libraries needed to run the product. Plugins go in a `plugin` subdirectory.
* `/etc/trino`: General Trino configuration files like `node.properties`, `jvm.config`, `config.properties`. Connector configs go in a `catalog` subdirectory
* `/etc/trino`: General Trino configuration files like `node.properties`, `jvm.config`, `config.properties`, `secrets.toml`. Connector configs go in a `catalog` subdirectory
* `/etc/trino/env.sh`: Java installation path used by Trino
* `/var/log/trino`: Log files
* `/var/lib/trino/data`: Data directory
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
secrets-provider.name="env"
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ CONFIGURATION=(
--node-config "$NODE_PROPERTIES"
--jvm-config /etc/trino/jvm.config
--config /etc/trino/config.properties
--secrets-config /etc/trino/secrets.toml
--launcher-log-file "${LAUNCHER_LOG_FILE:-/var/log/trino/launcher.log}"
--server-log-file "${SERVER_LOG_FILE:-/var/log/trino/server.log}"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public void testRpmContents()
assertThatPaths(files)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have similar test for DockerIT?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could have something similar to it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DockerIT test is not available but we could work on something similar.

.path("/usr/lib/trino/etc").linksTo("/etc/trino")
.exists("/etc/trino/config.properties")
.exists("/etc/trino/secrets.toml")
.exists("/etc/trino/jvm.config")
.exists("/etc/trino/env.sh")
.exists("/etc/trino/log.properties")
Expand All @@ -190,6 +191,11 @@ public void testRpmContents()
.paths("/usr/lib/trino/plugin/[a-z_]+\\.jar", path -> {
String filename = Path.of(path.getPath()).getFileName().toString();
path.isLink().linksTo("../../shared/" + filename);
})
// secrets-plugins libs are always hardlinks
.paths("/usr/lib/trino/secrets-plugin/[a-z_]+\\.jar", path -> {
String filename = Path.of(path.getPath()).getFileName().toString();
path.isLink().linksTo("../../shared/" + filename);
});
}
}
Expand Down