Skip to content

Commit

Permalink
Test build for #1050
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak authored and SUSE Update Bot committed May 15, 2024
1 parent a2650ae commit 402cf10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions mariadb-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ By default, the image launches MariaDB with the same configuration that comes wi
The only environment variable required to start the container is the MariaDB root password.

```ShellSession
$ podman run -it --rm -p 3306:3306 -e MARIADB_ROOT_PASSWORD=my-password registry.suse.com/suse/mariadb:%%mariadb_version%%
$ podman run -it --rm -p 3306:3306 -e MARIADB_ROOT_PASSWORD=my-password registry.suse.com/suse/mariadb:latest
```

or:

```ShellSession
$ podman run -it --rm -p 3306:3306 -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 registry.suse.com/suse/mariadb:%%mariadb_version%%
$ podman run -it --rm -p 3306:3306 -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 registry.suse.com/suse/mariadb:latest
```

### Volumes
Expand All @@ -31,7 +31,7 @@ When using the MariaDB image, we recommend one of the following options:
To mount a host directory as a volume for your data run the following command:

```ShellSession
$ podman run -it --rm -v /my/own/datadir:/var/lib/mysql:Z -p 3306:3306 -e MARIADB_ROOT_PASSWORD=my-password registry.suse.com/suse/mariadb:%%mariadb_version%%
$ podman run -it --rm -v /my/own/datadir:/var/lib/mysql:Z -p 3306:3306 -e MARIADB_ROOT_PASSWORD=my-password registry.suse.com/suse/mariadb:latest
```

The `-v /my/own/datadir:/var/lib/mysql:Z` part of the command mounts the `/my/own/datadir` directory from the underlying host system as `/var/lib/mysql` inside the container, where MariaDB will by default write its data files.
Expand Down
6 changes: 3 additions & 3 deletions tomcat-10-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To deploy an application, copy the `.war` file file into
`$CATALINA_BASE/webapps` (either during a container build or by bind-mounting
the directory), and launch the container using the following command:
```ShellSession
$ podman run -d --rm -p 8080:8080 registry.suse.com/suse/tomcat:10
$ podman run -d --rm -p 8080:8080 registry.suse.com/suse/tomcat:latest
```

The deployed webapp is then accessible via `http://localhost:8080/$webapp_name`.
Expand All @@ -40,7 +40,7 @@ follows:
```ShellSession
$ chmod 0777 /path/to/my/app
$ podman run --rm -d -v /path/to/my/app:/usr/share/tomcat/webapps:z \
-p 8080:8080 registry.suse.com/suse/tomcat:10
-p 8080:8080 registry.suse.com/suse/tomcat:latest
```


Expand All @@ -56,7 +56,7 @@ options to the container runtime using the `-e` flag:
```ShellSession
$ podman run -it --rm \
-e JAVA_OPTS="-Xmx1024m" -p 8080:8080 \
registry.suse.com/suse/tomcat:10
registry.suse.com/suse/tomcat:latest
```

The image ships with `CATALINA_HOME` set to `/usr/share/tomcat`
Expand Down

0 comments on commit 402cf10

Please sign in to comment.