-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update Trento Container Installation Instructions #182
Open
janvhs
wants to merge
14
commits into
SUSE:main
Choose a base branch
from
janvhs:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d43e6e9
Fix spelling mistakes
janvhs 9941bbf
Cleanup formatting
janvhs f75efbc
Update container install instructions for Trento
janvhs a9f975f
Fix illegal usage of &
janvhs f39818d
use less prescriptive wording for the docker subnet configuration in …
stefanotorresi d7bd84b
Merge pull request #2 from stefanotorresi/trento-container-networks
janvhs a177bbd
Change Default Password as Suggested by Alberto
janvhs 07cd440
Replace specific version of containers with latest
abravosuse 95f73cc
Replace specific version of container images with latest
abravosuse d3ea7df
Update trento/migration/container-install.md
abravosuse 0e1cdcb
Update trento/migration/container-install.md
abravosuse 6e019df
Update trento/xml/container-install.xml
abravosuse 99589ba
Update trento/xml/container-install.xml
abravosuse 227cce3
Update trento/xml/container-install.xml
abravosuse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,13 @@ Follow the steps in [4.2 systemd deployment](https://documentation.suse.com/sles | |
|
||
### Install Docker container runtime | ||
|
||
1. Enable the container`s module: | ||
1. Enable the containers module: | ||
|
||
```bash | ||
SUSEConnect --product sle-module-containers/15.5/x86_64 | ||
``` | ||
|
||
> **Note:** Using a different Service Pack than SP5 requires to change repository: [SLE15 SP3: `SUSEConnect --product sle-module-containers/15.3/x86_64`,SLE15 SP4: ` SUSEConnect --product sle-module-containers/15.4/x86_64`] | ||
> **Note:** Using a different Service Pack than SP5 requires to change repository: [SLE15 SP3: `SUSEConnect --product sle-module-containers/15.3/x86_64`,SLE15 SP4: `SUSEConnect --product sle-module-containers/15.4/x86_64`] | ||
|
||
1. Install Docker: | ||
|
||
|
@@ -36,12 +36,12 @@ Follow the steps in [4.2 systemd deployment](https://documentation.suse.com/sles | |
docker network create trento-net | ||
``` | ||
|
||
> **Note:** When creating the trento-net network, Docker typically assigns a default subnet: `172.17.0.0/16`. Ensure that this subnet matches the one specified in your PostgreSQL configuration file (refer to`/var/lib/pgsql/data/pg_hba.conf`). If the subnet of `trento-net` differs from `172.17.0.0/16` then adjust `pg_hba.conf` and restart PostgreSQL. | ||
> **Note:** When creating the `trento-net` network, Docker normally assigns a default subnet: `172.17.0.0/16`. Ensure that this subnet is allowed by the rules specified in your PostgreSQL configuration file. For more information, please refer to upstream's [`pg_hba.conf`](https://www.postgresql.org/docs/current/auth-pg-hba-conf.html) documentation. | ||
|
||
1. Verify the subnet of trento-net: | ||
1. Verify the subnet of `trento-net`: | ||
|
||
```bash | ||
docker network inspect trento-net --format '{{range .IPAM.Config}}{{.Subnet}}{{end}}' | ||
docker network inspect trento-net --format '{{range .IPAM.Config}}{{.Subnet}}{{end}}' | ||
``` | ||
|
||
Expected output: | ||
|
@@ -63,21 +63,31 @@ Follow the steps in [4.2 systemd deployment](https://documentation.suse.com/sles | |
REFRESH_TOKEN_ENC_SECRET=$(openssl rand -out /dev/stdout 48 | base64) | ||
``` | ||
|
||
1. Install the checks on the system in a shared volume: | ||
|
||
```bash | ||
docker volume create trento-checks \ | ||
&& docker run \ | ||
-v trento-checks:/usr/share/trento/checks \ | ||
registry.suse.com/trento/trento-checks:latest | ||
``` | ||
|
||
1. Install trento-wanda on Docker: | ||
|
||
```bash | ||
docker run -d --name wanda \ | ||
-p 4001:4000 \ | ||
--network trento-net \ | ||
--add-host "host.docker.internal:host-gateway" \ | ||
-v trento-checks:/usr/share/trento/checks:ro \ | ||
-e CORS_ORIGIN=localhost \ | ||
-e SECRET_KEY_BASE=$WANDA_SECRET_KEY_BASE \ | ||
-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 \ | ||
--restart always \ | ||
--entrypoint /bin/sh \ | ||
registry.suse.com/trento/trento-wanda:1.2.0 \ | ||
registry.suse.com/trento/trento-wanda:latest \ | ||
-c "/app/bin/wanda eval 'Wanda.Release.init()' && /app/bin/wanda start" | ||
``` | ||
|
||
|
@@ -103,12 +113,12 @@ Follow the steps in [4.2 systemd deployment](https://documentation.suse.com/sles | |
-e ACCESS_TOKEN_ENC_SECRET=$ACCESS_TOKEN_ENC_SECRET \ | ||
-e REFRESH_TOKEN_ENC_SECRET=$REFRESH_TOKEN_ENC_SECRET \ | ||
-e ADMIN_USERNAME='admin' \ | ||
-e ADMIN_PASSWORD='test1234' \ | ||
-e ADMIN_PASSWORD='test1357' \ | ||
-e ENABLE_API_KEY='true' \ | ||
-e TRENTO_WEB_ORIGIN='trento.example.com' \ | ||
--restart always \ | ||
--entrypoint /bin/sh \ | ||
registry.suse.com/trento/trento-web:2.2.0 \ | ||
registry.suse.com/trento/trento-web:latest \ | ||
-c "/app/bin/trento eval 'Trento.Release.init()' && /app/bin/trento start" | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
<procedure> | ||
<step> | ||
<para> | ||
Enable the Container module: | ||
Enable the containers module: | ||
</para> | ||
<programlisting language="bash"> | ||
SUSEConnect --product sle-module-containers/15.5/x86_64 | ||
|
@@ -60,21 +60,19 @@ docker network create trento-net | |
</programlisting> | ||
<note> | ||
<para> | ||
When creating the trento-net network, Docker assigns a default subnet: | ||
<literal>172.17.0.0/16</literal>. Ensure that this subnet matches the one specified | ||
in your PostgreSQL configuration file (refer | ||
to<filename>/var/lib/pgsql/data/pg_hba.conf</filename>). If the subnet of | ||
<literal>trento-net</literal> differs from <literal>172.17.0.0/16</literal> then | ||
adjust <literal>pg_hba.conf</literal> and restart PostgreSQL. | ||
When creating the <literal>trento-net</literal> network, Docker assigns a default subnet to it: | ||
<literal>172.17.0.0/16</literal>. Ensure that this subnet is allowed by the rules specified | ||
in your PostgreSQL configuration. For more information, refer to the upstream | ||
<link xlink:href="https://www.postgresql.org/docs/current/auth-pg-hba-conf.html"><literal>pg_hba.conf</literal></link> documentation. | ||
</para> | ||
</note> | ||
</step> | ||
<step> | ||
<para> | ||
Verify the subnet of trento-net: | ||
Verify the subnet of <literal>trento-net</literal>: | ||
</para> | ||
<programlisting language="bash"> | ||
docker network inspect trento-net --format '{{range .IPAM.Config}}{{.Subnet}}{{end}}' | ||
docker network inspect trento-net --format '{{range .IPAM.Config}}{{.Subnet}}{{end}}' | ||
</programlisting> | ||
<para> | ||
Expected output is as follows: | ||
|
@@ -104,6 +102,17 @@ WANDA_SECRET_KEY_BASE=$(openssl rand -out /dev/stdout 48 | base64) | |
TRENTO_SECRET_KEY_BASE=$(openssl rand -out /dev/stdout 48 | base64) | ||
ACCESS_TOKEN_ENC_SECRET=$(openssl rand -out /dev/stdout 48 | base64) | ||
REFRESH_TOKEN_ENC_SECRET=$(openssl rand -out /dev/stdout 48 | base64) | ||
</programlisting> | ||
</step> | ||
<step> | ||
<para> | ||
Install the checks on the system in a shared volume: | ||
</para> | ||
<programlisting language="bash"> | ||
docker volume create trento-checks \ | ||
&& docker run \ | ||
-v trento-checks:/usr/share/trento/checks \ | ||
registry.suse.com/trento/trento-checks:latest | ||
</programlisting> | ||
</step> | ||
<step> | ||
|
@@ -115,14 +124,15 @@ docker run -d --name wanda \ | |
-p 4001:4000 \ | ||
--network trento-net \ | ||
--add-host "host.docker.internal:host-gateway" \ | ||
-v trento-checks:/usr/share/trento/checks:ro \ | ||
-e CORS_ORIGIN=localhost \ | ||
-e SECRET_KEY_BASE=$WANDA_SECRET_KEY_BASE \ | ||
-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 \ | ||
--restart always \ | ||
--entrypoint /bin/sh \ | ||
registry.suse.com/trento/trento-wanda:1.2.0 \ | ||
registry.suse.com/trento/trento-wanda:latest \ | ||
-c "/app/bin/wanda eval 'Wanda.Release.init()' && /app/bin/wanda start" | ||
</programlisting> | ||
</step> | ||
|
@@ -158,12 +168,12 @@ docker run -d \ | |
-e ACCESS_TOKEN_ENC_SECRET=$ACCESS_TOKEN_ENC_SECRET \ | ||
-e REFRESH_TOKEN_ENC_SECRET=$REFRESH_TOKEN_ENC_SECRET \ | ||
-e ADMIN_USERNAME='admin' \ | ||
-e ADMIN_PASSWORD='test1234' \ | ||
-e ADMIN_PASSWORD='test1357' \ | ||
-e ENABLE_API_KEY='true' \ | ||
-e TRENTO_WEB_ORIGIN='trento.example.com' \ | ||
--restart always \ | ||
--entrypoint /bin/sh \ | ||
registry.suse.com/trento/trento-web:2.2.0 \ | ||
registry.suse.com/trento/trento-web:latest \ | ||
-c "/app/bin/trento eval 'Trento.Release.init()' && /app/bin/trento start" | ||
</programlisting> | ||
<para> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sentence sounds weird: you can't install something on Docker. Do you mean something like, Run trento-wanda in a Docker container?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmpop I am not familiar enough with Docker to argue otherwise. If you think your suggestion is more accurate, then go for it.