Skip to content
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

Generate Lutece site with St Francis structure #1

Merged
merged 4 commits into from
Nov 18, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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