-
Notifications
You must be signed in to change notification settings - Fork 188
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
Fix war file creation #1100
base: v1
Are you sure you want to change the base?
Fix war file creation #1100
Conversation
This was disabled in bae0857 when undoing changes made in an attempt to change IDE to Intellij. The comment markers appear to have slipped in by accident.
I had the same issue and I tried to fix it by updating nodejs and npm version(but I still had build issues). (1) about build error By
(2) war build error After
It looks I could not build knowledge.war properly. In fact, Here is my environment.
|
I remember seeing the It happens when you run This will probably not happen for people who use Docker on the Mac or Windows as that runs inside a VM with I "solved" it by prefixing the docker-compose run --rm maven Ugly, but it does the trick. Perhaps I should create a separate PR for that as well. |
I also remember seeing the goal execution errors you mentioned first. However, I do not see them with the PRs I submitted. Have you uncommented the docker-compose run --rm maven mv clean test site -e line by any chance? |
@paddy-hack Thank you for advices and sorry for late reply.
Exactly! I use a regular user belong to
No. I kept this line commented as in https://github.com/support-project/knowledge/blob/v1/launch.sh#L4. I found (1) error happends at I also found I finally changed launch.sh as the following. #!/bin/bash -eu
docker-compose run maven mvn install -DskipTests=true -Dmaven.javadoc.skip=true -e
# docker-compose run maven mvn clean test site -e
# docker-compose run maven mvn clean package -e
sudo mkdir -p target/webapps
sudo cp target/knowledge.war target/webapps/knowledge.war
docker-compose up --build -d tomcat
docker-compose logs -f tomcat After
I feel this is not the right way, but it's OK if I can start what I want 😅
I agree. I feel we could use docker multi stage build for example. Also, I want the developer manual... |
Closes #1099