Skip to content

Commit b87b3bb

Browse files
committed
Prepare Dockerfile for snapshot version 6.0-alpha1
1 parent 0c5e8e9 commit b87b3bb

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM debian:jessie-backports
22

33
MAINTAINER Miguel Moquillon "miguel.moquillon@silverpeas.org"
44

5-
ARG SILVERPEAS_VERSION=6.0-SNAPSHOT
5+
ARG SILVERPEAS_VERSION=6.0-alpha1
66
ARG WILDFLY_VERSION=10.0.0
77
ARG DEFAULT_LOCALE=en_US.UTF-8
88

@@ -105,14 +105,14 @@ RUN wget -nc https://www.silverpeas.org/files/silverpeas-${SILVERPEAS_VERSION}-w
105105

106106
# Copy the Maven settings.xml required to install Silverpeas by fetching the software bundles from
107107
# the Silverpeas Nexus Repository
108-
COPY settings.xml ${HOME}/.m2/
108+
COPY src/settings.xml ${HOME}/.m2/
109109

110110
# Set the default working directory
111111
WORKDIR ${SILVERPEAS_HOME}/bin
112112

113113
# Copy this container init script that will be run each time the container is ran
114-
COPY run.sh /opt/
115-
COPY ooserver /opt/
114+
COPY src/run.sh /opt/
115+
COPY src/ooserver /opt/
116116

117117
# Assemble the Silverpeas application with its working directories and marks it as ready to complete
118118
# the installation of Silverpeas in Wildfly at first run

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ $ docker run --name silverpeas -p 8080:8000 -d \
5151
-v /var/log/silverpeas:/opt/silverpeas/log \
5252
-v /var/lib/silverpeas:/opt/silverpeas/data \
5353
--link postgresql:database \
54-
silverpeas:6.0
54+
silverpeas/silverpeas:6.0
5555
```
5656
This image exposes the 8000 port at which Silverpeas listens and this port of the container is here mapped to the 8080 port of the host.
5757
It is recommended to mount the volumes `/opt/silverpeas/log` and `/opt/silverpeas/data` from the container. Indeed, the first volume contains the log files produced by the Silverpeas application whereas the second volume contains all the data that are managed by the users in Silverpeas. So, you can easily have a glance at the Silverpeas activity and you can switch to the next version of Silverpeas without losing any data. (Using a [Data Volume Container][data-volume] to map `/opt/silverpeas/log` and `/opt/silverpeas/data` is a better solution.)
@@ -63,7 +63,7 @@ $ docker run --name silverpeas -p 8080:8000 -d \
6363
-v /var/log/silverpeas:/opt/silverpeas/log \
6464
-v /var/lib/silverpeas:/opt/silverpeas/data \
6565
--link postgresql:database \
66-
silverpeas:6.0
66+
silverpeas/silverpeas:6.0
6767
```
6868
where `/etc/silverpeas/config.properties` is the Silverpeas global configuration file on the host.
6969

@@ -91,7 +91,7 @@ $ docker run --name silverpeas -p 8080:8000 -d \
9191
-v /etc/silverpeas/config.properties:/opt/silverpeas/configuration/config.properties \
9292
-v /var/log/silverpeas:/opt/silverpeas/log \
9393
-v /var/lib/silverpeas:/opt/silverpeas/data \
94-
silverpeas:6.0
94+
silverpeas/silverpeas:6.0
9595
```
9696
where `database` is the hostname on which run PostgreSQL and that is referred as such in the `config.properties`.
9797

@@ -111,7 +111,7 @@ $ docker create --name silverpeas-store \
111111
-v /opt/silverpeas/log \
112112
-v /opt/silverpeas/properties \
113113
-v /etc/silverpeas/config.properties:/opt/silverpeas/configuration/properties \
114-
silverpeas:6.0 \
114+
silverpeas/silverpeas:6.0 \
115115
/bin/true
116116
```
117117

@@ -120,7 +120,7 @@ Then to mount the volumes in the Silverpeas container:
120120
$ docker run --name silverpeas -p 8080:8000 -d \
121121
--link postgresql:database \
122122
--volumes-from silverpeas-store \
123-
silverpeas:6.0
123+
silverpeas/silverpeas:6.0
124124
```
125125

126126
If you have to customize the settings of Silverpeas or add, for example, a new database definition in Wildfly, then specify these settings with the Data Volume Container:
@@ -132,7 +132,7 @@ $ docker create --name silverpeas-store \
132132
-v /etc/silverpeas/config.properties:/opt/silverpeas/configuration/properties \
133133
-v /etc/silverpeas/CustomerSettings.xml:/opt/silverpeas/configuration/silverpeas/CustomerSettings.xml \
134134
-v /etc/silverpeas/my-datasource.cli:/opt/silverpeas/configuration/jboss/my-datasource.cli \
135-
silverpeas:6.0 \
135+
silverpeas/silverpeas:6.0 \
136136
/bin/true
137137
```
138138

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ if [ $# -eq 2 ]; then
77
docker build \
88
--build-arg SILVERPEAS_VERSION=$silverpeas_version \
99
--build-arg WILDFLY_VERSION=$wildfly_version \
10-
-t silverpeas:$silverpeas_version \
10+
-t silverpeas/silverpeas:$silverpeas_version \
1111
.
1212
else
1313
docker build \
14-
-t silverpeas:latest \
14+
-t silverpeas/silverpeas:latest \
1515
.
1616
fi

ooserver renamed to src/ooserver

File renamed without changes.

run.sh renamed to src/run.sh

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)