- If you have the make command available in your path
make test
- For Windows users, if you don't have make installed, we have included it in the package
.\utils\make\bin\make.exe test
- If you have the make command available in your path
make test-down
- If not and using Windows
.\utils\make\bin\make.exe test-down
if you have a new dump, go into mysql and replace the content of dump.sql by the new one.
You must do some actions :
-
Check that you dump is correct for special french character ( like é )
-
In your dump file, at top of the file add CREATE DATABASE/ USE instruction
CREATE DATABASE lutece;
USE lutece;- Replace matomo info
('matomo.site_property.server.http.url', 'http://localhost/'),
('matomo.site_property.server.https.url', 'http://localhost/'),
('matomo.site_property.site.id', '1'),
('matomo.site_property.widget.auth.token', 'cfa9a798abd584817e2eb94d7bc14bb0'),- Replace adminpack instruction by admin and password admin (in html section)
<p class="p-small">Demo user access-code is <strong>"admin"</strong> and the password is <strong>"adminadmin"</strong>- replace user admin with correct password and change the expiration date (in this sample i use 2023-02-08 09:58:00)
(1, 'admin', 'AdminNom', 'adminPrénom', 'lutece@paris.fr', 0, 'PLAINTEXT:adminadmin', 'fr', 0, 0, 0, '2023-02-08 09:58:00', 1698479072663, 0, '2022-10-28 09:44:32', 'all'),- verify admin user role : he must have the Matomo stats roles (in User menu => configure permission => at the end of the list)
Go into citelibre-rendezvous directory
cd citelibre-rendezvousUpdate pom.xml file with the new version
Create a directory name "target"
mkdir targetCreate the container builder
docker build . -f Docker-builder -t local-builder Launch
docker run -v ./target:/app/target -t local-builder takes a coffee ... or four :-) (compilation time is about 20 minutes, maven download dependencies is very time expensive)
rename war with site-citelibre-rendezvous-X.X.X (X.X.X is the numero number)
Change in citelibre-rendezvous/Dockerfile => ARG site=site-citelibre-rendezvous-X.X.X
and on Makefile => VERSION=X.X.X
Log into docker hub
docker loginAfter you can launch makefile task (you need to install make utility in utils/outils directory) :
For building local containers
make buildAnd for publish into docker hub
make publish