-
Notifications
You must be signed in to change notification settings - Fork 3
Update current release #120
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
base: latest
Are you sure you want to change the base?
Changes from 7 commits
90c205d
c7d9b4f
b4a72c2
f886d6d
e12398f
539f95a
c386ff5
a0e457a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,18 @@ | ||
| include::product-attributes.adoc[] | ||
| :trento: Trento | ||
|
|
||
| == Containerized deployment | ||
| === Containerized deployment | ||
| :revdate: 2025-08-05 | ||
|
|
||
|
|
||
| A containerized deployment of {trserver} is identical to the systemd | ||
| A containerized deployment of {trento} is identical to the systemd | ||
| deployment. However, the web and check engine components are deployed as | ||
| Docker containers. | ||
|
|
||
| Follow the steps in <<sec-systemd-deployment>>, but skip the *Install | ||
| Trento using RPM packages* step and follow the procedures as described below. | ||
| Follow the steps in link:https://www.trento-project.io/docs/user-guide/trento-install-server.html#sec-systemd-deployment[systemd installation], but skip the *Install | ||
abravosuse marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| {trento} using RPM packages* step and follow the procedures as described below. | ||
|
|
||
| === Install Trento using Docker | ||
| ==== Install Trento using Docker | ||
|
|
||
| ==== Install Docker container runtime | ||
| ===== Install Docker container runtime | ||
|
|
||
| . Enable the containers module (replace `15.x` with the correct Service Pack version): | ||
| + | ||
|
|
@@ -35,9 +34,9 @@ zypper install docker | |
| systemctl enable --now docker | ||
| ---- | ||
|
|
||
| ==== Create a dedicated Docker network for Trento | ||
| ==== Create a dedicated Docker network for {trento} | ||
|
|
||
| . Create the Trento Docker network: | ||
| . Create the {trento} Docker network: | ||
| + | ||
| [source,bash] | ||
| ---- | ||
|
|
@@ -61,7 +60,7 @@ The output should be similar to this (the exact address may vary): | |
| . Open the _/var/lib/pgsql/data/pg_hba.conf_ file for editing and replace `0.0.0.0/0` with the address returned by the command in the previous step. | ||
| . Restart the PostgreSQL server using the `systemctl restart postgresql` command. | ||
|
|
||
| ==== Install Trento on Docker | ||
| ==== Install {trento} on Docker | ||
|
|
||
| . Create secret environment variables: | ||
| + | ||
|
|
@@ -104,6 +103,8 @@ docker run -d --name wanda \ | |
| -e ACCESS_TOKEN_ENC_SECRET=$ACCESS_TOKEN_ENC_SECRET \ | ||
| -e AMQP_URL=amqp://trento_user:[email protected]/vhost \ | ||
| -e DATABASE_URL=ecto://wanda_user:[email protected]/wanda \ | ||
| -e OAS_SERVER_URL=https://trento.example.com/wanda \ | ||
| -e AUTH_SERVER_URL=http://localhost:4000 \ | ||
| --restart always \ | ||
| --entrypoint /bin/sh \ | ||
| registry.suse.com/trento/trento-wanda:latest \ | ||
|
|
@@ -121,7 +122,7 @@ the UI. | |
| [NOTE] | ||
| ==== | ||
| Add `+CHARTS_ENABLED=false+` if Prometheus is not installed, or you do | ||
| not want to use Trento's charts functionality. | ||
| not want to use {trento}'s charts functionality. | ||
| ==== | ||
| + | ||
| [source,bash] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| == Local Documentation Preview with Docker | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This part is just developer docs for new way of preview antora with docker |
||
|
|
||
| Easy way to locally preview documentation changes without installing repository dependencies (like Node.js or Antora) on your host machine. | ||
|
|
||
| === Prerequisites | ||
|
|
||
| * Docker Engine (or Podman). | ||
| * Docker Compose. | ||
|
|
||
| === Workflow | ||
|
|
||
| . **Start the Preview** | ||
| + | ||
| To start the build process inside a container, navigate to the root directory of the repository and run the following command: | ||
| + | ||
| [source,bash] | ||
| ---- | ||
| docker compose up | ||
| ---- | ||
| + | ||
|
|
||
| . **Check the Docs** | ||
| + | ||
| Once the build is complete and the server starts, open your browser and navigate to: | ||
| + | ||
| http://localhost:3000 | ||
|
|
||
| . **Review and Rebuild** | ||
| + | ||
| The container builds the site and serves it. To view new changes: | ||
| + | ||
| * Stop the container (press `Ctrl+C`). | ||
| * Make your changes to the source files. | ||
| * Run `docker compose up` again. | ||
| + | ||
| The container will rebuild the documentation with your new changes for preview. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| services: | ||
| trento-docs: | ||
| image: node:20-bullseye | ||
| volumes: | ||
| - .:/workspace:z | ||
| - trento-docs-node_modules:/workspace/trento-docs-site/node_modules | ||
| working_dir: /workspace/trento-docs-site | ||
| command: > | ||
| bash -lc " | ||
| npm install --no-save antora http-server && | ||
| npx antora antora-playbook.yml && | ||
| npx http-server build/trento-docs-site-public/ -c-1 -p 3000 | ||
| " | ||
| ports: | ||
| - "3000:3000" | ||
|
|
||
| volumes: | ||
| trento-docs-node_modules: |
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not understand this. It says the file has been deleted, but I can still see its content in the html generated by antora. For the record, this information should not be removed from the user facing documentation. It's relevant.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @abravosuse i moved the content inside the kubernetes install article https://github.com/trento-project/docs/pull/120/files#diff-292845aaffe1326c688cd1ac76d61a5b3d0390c89f7012df5147c2da021259e8R164 So it is still here just in another place |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.