Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-jams
Commits
6ef73bf9
Commit
6ef73bf9
authored
1 year ago
by
Léo Banno-Cloutier
Browse files
Options
Downloads
Patches
Plain Diff
jams-react-client: fix prod Dockerfile
Change-Id: I84178407a12909498febb4402b6441335168efc3
parent
40fd22fe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+3
-2
3 additions, 2 deletions
Dockerfile
README.md
+6
-6
6 additions, 6 deletions
README.md
with
9 additions
and
8 deletions
Dockerfile
+
3
−
2
View file @
6ef73bf9
...
...
@@ -37,7 +37,7 @@ CMD java -jar jams-launcher.jar & npm start --prefix ../jams-react-client
FROM
build
as
prod
WORKDIR
/app/jams-react-client
RUN
npm run build
RUN
mv
build ../jams-server/src/main/resources/webapp
RUN
mv
build
/
*
../jams-server/src/main/resources/webapp
WORKDIR
/app
RUN
mvn package
...
...
@@ -49,4 +49,5 @@ RUN python3 generate-versions.py net.jami.jams.ad.connector.ADConnector $JAMS_VE
RUN
python3 generate-versions.py net.jami.jams.ldap.connector.LDAPConnector
$JAMS_VERSION
libs/ldap-connector.jar
RUN
./build-doc.sh
CMD
["cp", "-r", "jams/.", "/jams"]
WORKDIR
/app/jams
CMD
["java", "-jar", "jams-launcher.jar"]
This diff is collapsed.
Click to expand it.
README.md
+
6
−
6
View file @
6ef73bf9
...
...
@@ -75,12 +75,12 @@ will need to restart the server.
## Generate jams with Docker
The following commands will generate the userguide and the jars needed:
```
docker build -f Dockerfile -t jams:latest --target prod .
docker run -v $(pwd)/jams:/jams --rm
jams:latest
USER=$(whoami)
sudo chown
-
R
$
USER jams
cd jams
java -jar jams-launcher.jar
docker build -f Dockerfile -t jams:latest --target prod .
\
&& CONTAINER=$(docker create
jams:latest
) \
&& docker cp $CONTAINER:/app/jams jams \
&& docker rm
-
v
$
CONTAINER \
&&
cd jams
\
&&
java -jar jams-launcher.jar
```
## About jams-server/src/main/java/net/jami/jams/server/filters
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment