-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'release_1.1.4' (#8) from release_1.1.4 into master
- Loading branch information
Showing
54 changed files
with
831 additions
and
426 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM eclipse-temurin:17-jre | ||
|
||
ENV VOCABULARY_DB_SERVER vocabulary-db | ||
ENV VOCABULARY_DB_USER vocabulary | ||
ENV VOCABULARY_DB_PASSWORD vocabulary | ||
ENV VOCABULARY_DB_DATABASE vocabulary | ||
ENV VOCABULARY_SERVER_TOKEN secret | ||
ENV VOCABULARY_SERVER_PORT 8081 | ||
|
||
RUN mkdir -p /opt/digiverso/vocabulary | ||
COPY module-core/target/vocabulary-server-core.jar /opt/digiverso/vocabulary/ | ||
COPY module-core/src/main/resources/application.properties /opt/digiverso/vocabulary/ | ||
RUN sed -re "s|^(server.port=).*|\1${VOCABULARY_SERVER_PORT}|" \ | ||
-e "s|^#?(security.token=).*|\1${VOCABULARY_SERVER_TOKEN}|" \ | ||
-e "s|^(spring.datasource.username=).*|\1${VOCABULARY_DB_USER}|" \ | ||
-e "s|^(spring.datasource.password=).*|\1${VOCABULARY_DB_PASSWORD}|" \ | ||
-e "s|^(spring.datasource.url=).*|\1jdbc:mariadb://$VOCABULARY_DB_SERVER:3306/${VOCABULARY_DB_DATABASE}|" \ | ||
-i /opt/digiverso/vocabulary/application.properties | ||
|
||
EXPOSE $VOCABULARY_SERVER_PORT | ||
WORKDIR /opt/digiverso/vocabulary | ||
CMD [ "java", "-jar", "vocabulary-server-core.jar"] |
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
Oops, something went wrong.