-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate config and data import volumes (#675)
- Fixes an issue causing a Gradle deprecation warning - Adds user and group to the Docker image - Adds new folder for external configuration - Defines ownership and access control for the folders where import and config can be attached - Adds new method to the Testcontainers module to allow RW attach of import files - Adds new method to the Testcontainers module to use external configuration properties - Adds new tests - Updates documentation Resolves #667 {minor} Signed-off-by: Esta Nagy <[email protected]>
- Loading branch information
Showing
11 changed files
with
120 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,16 @@ FROM eclipse-temurin:11.0.20_8-jre-alpine@sha256:6a7bdc6f82c73a2fa1c95c5fe7465f8 | |
LABEL maintainer="[email protected]" | ||
EXPOSE 8443:8443 | ||
ADD lowkey-vault.jar /lowkey-vault.jar | ||
RUN addgroup -S lowkey && adduser -S lowkey -G lowkey | ||
RUN chown -R lowkey:lowkey "/lowkey-vault.jar" | ||
RUN chmod 555 "/lowkey-vault.jar" | ||
RUN mkdir "/import" | ||
RUN chown -R lowkey:lowkey "/import" | ||
RUN chmod 755 "/import" | ||
RUN mkdir "/config" | ||
RUN chown -R lowkey:lowkey "/config" | ||
RUN chmod 555 "/config" | ||
USER lowkey | ||
WORKDIR / | ||
CMD [ "sh", "-c", "ls /" ] | ||
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /lowkey-vault.jar ${LOWKEY_ARGS}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
lowkey-vault-testcontainers/src/test/resources/config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
logging.level.root=INFO |