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 - provide unzipped war #664

Merged
merged 2 commits into from
Nov 14, 2023
Merged

docker - provide unzipped war #664

merged 2 commits into from
Nov 14, 2023

Conversation

fvanderbiest
Copy link
Member

geOrchestra docker images are provided with unzipped webapps.
The current PR aligns MapStore-georchestra docker image with the other ones.

Example direct benefit - custom themes are easier to implement using docker:

- ./themes:/usr/local/tomcat/webapps/mapstore/dist/themes

A multi stage build is used to reduce the final image size - it does not have to embed the original war file.

FROM alpine:latest as alpine
RUN apk --update add unzip && rm -rf /var/cache/apk/*
WORKDIR /tmp
COPY docker/MapStore-*.war mapstore.war
Copy link
Member Author

Choose a reason for hiding this comment

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

Note to the reviewer: the war file is provided by

cp scratch/mapstore-${{ github.sha }}.war docker/MapStore-${{ steps.version.outputs.VERSION }}.war

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@fvanderbiest fvanderbiest merged commit ade5226 into master Nov 14, 2023
1 of 2 checks passed
@fvanderbiest fvanderbiest deleted the unzip_webapp branch November 14, 2023 09:44
fvanderbiest added a commit that referenced this pull request Nov 14, 2023
* docker - provide unzipped war

* take into account edevos review
fvanderbiest added a commit that referenced this pull request Nov 14, 2023
* docker - provide unzipped war

* take into account edevos review
@catmorales
Copy link
Collaborator

@fvanderbiest , @tdipisa told me that this pull request has broken their CI/CD. Could you please, both, share here how to fix this ?
Thank you very much.

@edevosc2c
Copy link
Member

Maybe @tdipisa could send the errors given by his CI/CD so that we can understand what went wrong?

@tdipisa
Copy link
Collaborator

tdipisa commented Nov 23, 2023

Hi all, the reason why I didn't notify this here is because we still have to check what's going wrong and if we can fix this autonomously. I will let you know if needed. Don't worry. Thank you so much.

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

Successfully merging this pull request may close these issues.

4 participants