Skip to content

Commit

Permalink
feat: add extra jar in dev docker images
Browse files Browse the repository at this point in the history
For Mongodb encryption to work, we need additional libraries. One of them is nearly 30Mb. As it is not yet an official support, we have decided to add them manually in the dev docker image only, instead of adding them in the mongodb repository plugin.
  • Loading branch information
phiz71 committed Jan 30, 2025
1 parent fdeb970 commit 8471199
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gravitee-apim-gateway/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ RUN addgroup -g 1000 graviteeio \
FROM base AS builder
ADD ./distribution ${GRAVITEEIO_HOME}/

RUN apk update && \
apk add --update --no-cache wget && \
wget https://repo1.maven.org/maven2/org/mongodb/mongodb-crypt/1.8.0/mongodb-crypt-1.8.0.jar -P ${GRAVITEEIO_HOME}/plugins/ext/repository-mongodb && \
wget https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar -P ${GRAVITEEIO_HOME}/plugins/ext/repository-mongodb && \
apk del wget

RUN chgrp -R graviteeio ${GRAVITEEIO_HOME} && \
chmod -R g=u ${GRAVITEEIO_HOME}

Expand Down
6 changes: 6 additions & 0 deletions gravitee-apim-rest-api/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ RUN addgroup -g 1000 graviteeio \
FROM base AS builder
ADD ./distribution ${GRAVITEEIO_HOME}/

RUN apk update && \
apk add --update --no-cache wget && \
wget https://repo1.maven.org/maven2/org/mongodb/mongodb-crypt/1.8.0/mongodb-crypt-1.8.0.jar -P ${GRAVITEEIO_HOME}/plugins/ext/repository-mongodb && \
wget https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar -P ${GRAVITEEIO_HOME}/plugins/ext/repository-mongodb && \
apk del wget

RUN chgrp -R graviteeio ${GRAVITEEIO_HOME} && \
chmod -R g=u ${GRAVITEEIO_HOME}

Expand Down

0 comments on commit 8471199

Please sign in to comment.