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

docker - unzip webapps in the container #2849

Merged
merged 11 commits into from
Dec 3, 2019
Merged

Conversation

pmauduit
Copy link
Member

@pmauduit pmauduit commented Dec 2, 2019

This makes the customization (via volumes or so) easier.

inspired from what as already been done on CAS & SP, like the following PR:
https://github.com/georchestra/georchestra/pull/2644/files

Note: I encountered an issue while working on this, which might be worth waiting for a fix:
#2848

Tests:
Each module tested with mvn clean package docker:build, then manually checking that:

  1. the webapp is unzipped in /var/lib/jetty/webapps
  2. it is (almost) correctly launched (not taking care of db not ready or missing / unresolved variables, just that the webapp context remains correct).

See #2644 and others for
the motivation / inspiration.

tests: runtime tested a generated image

* unzipped OK
* docker run seems OK (webapp loaded, waiting for postgres to come
  alive)
Tests:
* docker run bash: webapp unzipped in webapps/
* docker run: waiting for the db to become ready
Tests:
* docker run bash: webapp unzipped in webapps/ OK
* docker run: webapp init (but fails because datadir missing) OK
tests: same as on the other ones
To be reworked after
#2848 is fixed, as i am
not sure we have to work with the actual webapp, maybe the
target/geowebcache directory does not contain every needed resources.
Tests: same as previously on the other ones
@fvanderbiest fvanderbiest added this to the 19.12 milestone Dec 3, 2019
@fvanderbiest fvanderbiest added this to To do in DataGrandEst via automation Dec 3, 2019
Copy link
Member

@fvanderbiest fvanderbiest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me Pierre, thanks !

@pmauduit
Copy link
Member Author

pmauduit commented Dec 3, 2019

Shall we consider merging, knowing the fact that it won't address #2848 ?

@pmauduit
Copy link
Member Author

pmauduit commented Dec 3, 2019

Shall we consider merging, knowing the fact that it won't address #2848 ?

As discussed, we can consider merging (once the checks are OK).

@pmauduit pmauduit merged commit 645af13 into master Dec 3, 2019
DataGrandEst automation moved this from To do to Done Dec 3, 2019
@pmauduit pmauduit deleted the docker-unzip-webapps branch December 3, 2019 11:09
@pmauduit
Copy link
Member Author

pmauduit commented Dec 3, 2019

Pending travis build is actually green, merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
DataGrandEst
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants