Skip to content

Commit

Permalink
Merge pull request #1 from jrmartino/master
Browse files Browse the repository at this point in the history
Generate Lutece site with  St Francis structure
  • Loading branch information
kcaruso4 authored Nov 18, 2019
2 parents 723b88e + 203e2fc commit 6627b4d
Show file tree
Hide file tree
Showing 59 changed files with 58 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ keeps its database in a volume.

The lutece-init container will configure lutece.war by producing a modified version of
the war in the .webapps directory. The modified war is only updated if the lutece.war
is newer. Then the lutece-init container will initialize the database if needed and exit.
is newer. Then the lutece-init container will initialize the database if needed and exit.
If the database needs to be initialized, you can optionally provide a `lutece.sql` database dump file
in the same directory as the `docker-compose.yml` file to populate the database tables created during this initialization.

The tomcat container will deploy everything in the .webapps directory.

# Use site

Login as administrator: http://localhost:8080/lutece/jsp/admin/AdminLogin.jsp
Username: admin
Password: adminadmin1
Password: adminadmin


# Application Functionality Summary
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
- ./lutece.war:/lutece.war
- ./.webapps/:/webapps
- ./.secrets/:/run/secrets/
- ./lutece.sql:/lutece.sql

tomcat:
container_name: tomcat
Expand Down
18 changes: 17 additions & 1 deletion lutece-init/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ sourcewar=/lutece.war
deploywar=/webapps/lutece.war
extractdir=/lutece
dbconfigfile=${extractdir}/WEB-INF/conf/db.properties
internalskinheaderfile=${extractdir}/WEB-INF/templates/skin/site/page_header_internal.html
homeskinheaderfile=${extractdir}/WEB-INF/templates/skin/site/page_header_home.html
internaladminheaderfile=${extractdir}/WEB-INF/templates/admin/site/page_header_internal_admin.html
homeadminheaderfile=${extractdir}/WEB-INF/templates/admin/site/page_header_home_admin.html
stockiconfile="logo-header.png"
customiconfile="francis-header-white.png"

if [ ! -f ${deploywar} ] || [ ${sourcewar} -nt ${deploywar} ]
then
Expand All @@ -46,7 +52,12 @@ then
LANG=en_US.UTF-8 rpl -q "#DB_NAME#" "${DB_NAME}" ${dbconfigfile}
LANG=en_US.UTF-8 rpl -q "#DB_USER#" "${DB_USER}" ${dbconfigfile}
LANG=en_US.UTF-8 rpl -q "#DB_PASS#" "${DB_PASS}" ${dbconfigfile}
LANG=en_US.UTF-8 rpl -q "#DB_HOST#" "${DB_HOST}" ${dbconfigfile}
LANG=en_US.UTF-8 rpl -q "#DB_HOST#" "${DB_HOST}" ${dbconfigfile}

LANG=en_US.UTF-8 rpl -q "${stockiconfile}" "${customiconfile}" ${internalskinheaderfile}
LANG=en_US.UTF-8 rpl -q "${stockiconfile}" "${customiconfile}" ${homeskinheaderfile}
LANG=en_US.UTF-8 rpl -q "${stockiconfile}" "${customiconfile}" ${internaladminheaderfile}
LANG=en_US.UTF-8 rpl -q "${stockiconfile}" "${customiconfile}" ${homeadminheaderfile}

cd ${extractdir} && jar cf /tmp.war *
mv /tmp.war ${deploywar}
Expand Down Expand Up @@ -80,4 +91,9 @@ else
unzip -q ${deploywar} -d ${extractdir}

cd ${extractdir}/WEB-INF/sql && ant

if [ -f /lutece.sql ]
then
mysql -u ${DB_USER} -p${DB_PASS} -h ${DB_HOST} ${DB_NAME} < /lutece.sql
fi
fi
36 changes: 36 additions & 0 deletions lutece-site/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,41 @@
<version>4.1.1</version>
<type>lutece-plugin</type>
</dependency>

<dependency>
<groupId>fr.paris.lutece.plugins</groupId>
<artifactId>plugin-appointment</artifactId>
<version>2.0.4</version>
<type>lutece-plugin</type>
</dependency>

<dependency>
<groupId>fr.paris.lutece.plugins</groupId>
<artifactId>plugin-childpages</artifactId>
<version>4.1.0</version>
<type>lutece-plugin</type>
</dependency>

<dependency>
<groupId>fr.paris.lutece.plugins</groupId>
<artifactId>plugin-form</artifactId>
<version>4.1.5</version>
<type>lutece-plugin</type>
</dependency>

<dependency>
<groupId>fr.paris.lutece.plugins</groupId>
<artifactId>plugin-html</artifactId>
<version>3.1.0</version>
<type>lutece-plugin</type>
</dependency>

<dependency>
<groupId>fr.paris.lutece.plugins</groupId>
<artifactId>plugin-enroll</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>lutece-plugin</type>
</dependency>

</dependencies>
</project>
Binary file added lutece-site/webapp/images/feed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lutece-site/webapp/images/local/skin/bg_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lutece-site/webapp/images/local/skin/classes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lutece-site/webapp/images/local/skin/clean.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lutece-site/webapp/images/local/skin/fair.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lutece-site/webapp/images/local/skin/family.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lutece-site/webapp/images/local/skin/lab.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lutece-site/webapp/images/local/skin/power.jpg
Binary file added lutece-site/webapp/images/local/skin/service.jpg
Binary file added lutece-site/webapp/images/local/skin/stoop.jpg
Binary file added lutece-site/webapp/images/local/skin/workers.jpg
Binary file added lutece-site/webapp/images/local/skin/yoga.jpg
Binary file added lutece-site/webapp/images/local/skin/zumba.jpg
Binary file added lutece-site/webapp/images/logo-header-icon.png
Binary file added lutece-site/webapp/images/logo-header.png
Binary file added lutece-site/webapp/images/logo.png
Binary file added lutece-site/webapp/images/lutece_black.png
Binary file added lutece-site/webapp/images/none.jpg
Binary file added lutece-site/webapp/images/pixel.gif
Binary file added lutece-site/webapp/images/poweredby.jpg
Binary file added lutece-site/webapp/images/preview.png

0 comments on commit 6627b4d

Please sign in to comment.