Skip to content

Commit 4825252

Browse files
Run update.sh
1 parent bb21df4 commit 4825252

File tree

2 files changed

+4
-34
lines changed

2 files changed

+4
-34
lines changed

postgres/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ See the PostgreSQL documentation on [`pg_hba.conf`](https://www.postgresql.org/d
189189

190190
### `PGDATA`
191191

192-
> **Important Note:** when mounting a volume to `/var/lib/posgresql`, the `/var/lib/postgresql/data` path is a local volume from the container runtime, thus data is not persisted on the mounted volume.
192+
> **Important Note:** when mounting a volume to `/var/lib/postgresql`, the `/var/lib/postgresql/data` path is a local volume from the container runtime, thus data is not persisted on the mounted volume.
193193

194194
This optional variable can be used to define another location - like a subdirectory - for the database files. The default is `/var/lib/postgresql/data`. If the data volume you're using is a filesystem mountpoint (like with GCE persistent disks), or remote folder that cannot be chowned to the `postgres` user (like some NFS mounts), or contains folders/files (e.g. `lost+found`), Postgres `initdb` requires a subdirectory to be created within the mountpoint to contain the data.
195195

silverpeas/README.md

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ $ docker run --name silverpeas -p 8080:8000 -d \
123123
silverpeas
124124
```
125125

126-
By default, `database` is the default hostname used by Silverpeas for its persistence backend. So, as the PostgreSQL database is linked here under the alias `database`, we don't have to explicitly indicate its hostname with the `DB_SERVER` environment variable. The Silverpeas images expose the 8000 port and here this port is mapped to the 8080 port of the host; Silverpeas is then accessible at `http://localhost:8080/silverpeas`. You can sign in Silverpeas with the administrator account `SilverAdmin` and with as password `SilverAdmin`.
126+
By default, `database` is the default hostname used by Silverpeas for its persistence backend. So, as the PostgreSQL database is linked here under the alias `database`, we don't have to explicitly indicate its hostname with the `DB_SERVER` environment variable. The Silverpeas images expose the 8000 port and here this port is mapped to the 8080 port of the host.
127+
128+
Silverpeas is then accessible at [http://localhost:8080/silverpeas](http://localhost:8080/silverpeas). You can sign in Silverpeas with the administrator account `SilverAdmin` and with as password `SilverAdmin`. Don't forget to change the password of the administrator account.
127129

128130
By default, some volumes are created inside the container, so that we can access them in the host. (Refers the [Docker Documentation](https://docs.docker.com/engine/tutorials/dockervolumes/#locating-a-volume) to locate them.) Among them `/opt/silverpeas/log` and `/opt/silverpeas/data`: the first volume contains the logs produced by Silverpeas whereas the second volume contains all the data that are created and managed by the users in Silverpeas. Because the latter has already a directories structure created at image creation, a host directory cannot be mounted into the container at `opt/silverpeas/data` without losing the volume's content (the mount point overlays the pre-existing content of the volume). In our example, in order to easily locate the two volumes, we label them explicitly with respectively the labels `silverpeas-log` and `silverpeas-data`. (Using a [Data Volume Container](https://docs.docker.com/engine/userguide/containers/dockervolumes/) to map `/opt/silverpeas/log` and `/opt/silverpeas/data` is a better solution.)
129131

@@ -245,38 +247,6 @@ $ docker create --name silverpeas-store \
245247
/bin/true
246248
```
247249

248-
# Document conversion
249-
250-
Some features in Silverpeas (export, preview, content visualization, ...) requires a document converter. The document converter isn't mandatory to use Silverpeas but it gives access to additional features. The document conversion is performed in Silverpeas by the program LibreOffice running as a daemon. So, in order to enable and to use these features, you have first to use a Data Volume Container to store all the Silverpeas data and second to run a container embbeding a LibreOffice program running as a daemon. There is no official Docker images of LibreOffice but DockerHub hosts some of unofficial images of it ([xcgd/libreoffice](https://hub.docker.com/r/xcgd/libreoffice/) for example).
251-
252-
Once a Data Volume Container is created for Silverpeas as explained in the section above, you have to link it with the Docker image running LibreOffice as a daemon in order the program have access the documents to convert:
253-
254-
```console
255-
$ docker run --name libreoffice -d \
256-
--volumes-from silverpeas-store \
257-
xcgd/libreoffice
258-
```
259-
260-
Check the port at which the LibreOffice image is listening and then defines it in the Silverpeas configuration. In our example, `xcgd/libreoffice` listens by default the port 8997. The configuration parameters to communicate with LibreOffice are defined by the two following properties:
261-
262-
- `CONVERTER_HOST` is either the IP address or the name of the host in which runs LibreOffice,
263-
- `CONVERTER_PORT` is the port number at which the LibreOffice daemon listens.
264-
265-
These properties have to be defined in the Silverpeas global configuration file `config.properties` that is mounted in the Data Volume Container:
266-
267-
CONVERTER_HOST=libreoffice
268-
CONVERTER_PORT=8997
269-
270-
Then the Docker image of Silverpeas can be ran:
271-
272-
```console
273-
$ docker run --name silverpeas -p 8080:8000 -d \
274-
--link postgresql:database \
275-
--link libreoffice:libreoffice \
276-
--volumes-from silverpeas-store \
277-
silverpeas
278-
```
279-
280250
# Logs
281251

282252
You can follow the activity of Silverpeas by watching the logs generated in the mounted `/opt/silverpeas/log` directory.

0 commit comments

Comments
 (0)