-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why: - Continuing the migration from SPA to SSR. - The SSR site is now feature complete with the SPA site, so we can remove the SPA site and switch to using SSR. - Changed the test and build to happen outside the docker build to simplify the docker build.
- Loading branch information
Showing
16 changed files
with
94 additions
and
280 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 |
---|---|---|
@@ -1,11 +1,3 @@ | ||
/target/ | ||
/node_modules/ | ||
/.lein-* | ||
/.nrepl-port | ||
/profiles.clj | ||
.DS_Store | ||
*.tmp | ||
*.bak | ||
*.log | ||
*.qgs~ | ||
/.git/ | ||
* | ||
!/target/uberjar/territory-bro.jar | ||
!/target/uberjar/classes.list |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM eclipse-temurin:17-jre-focal | ||
|
||
EXPOSE 8080 | ||
ENV PORT=8080 \ | ||
DATABASE_URL="jdbc:postgresql://localhost/territorybro?user=territorybro&password=territorybro" | ||
|
||
# the user should have no write permissions, even to its home | ||
RUN adduser --no-create-home --home /app app && \ | ||
mkdir /app | ||
WORKDIR /app | ||
|
||
COPY target/uberjar/territory-bro.jar /app/ | ||
|
||
# prepare AppCDS shared archive | ||
COPY target/uberjar/classes.list /app/ | ||
RUN java -Xshare:dump \ | ||
-XX:SharedClassListFile=classes.list \ | ||
-XX:SharedArchiveFile=classes.jsa \ | ||
--class-path territory-bro.jar && \ | ||
rm classes.list | ||
|
||
USER app | ||
ENTRYPOINT ["java", "-Xshare:on", "-XX:SharedArchiveFile=classes.jsa", "-jar", "territory-bro.jar"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -eu | ||
#: ${1:? Usage: $0 RELEASE_VERSION} | ||
DEFAULT_TAG=$(date +%Y-%m-%d) | ||
TAG="${1:-$DEFAULT_TAG}" | ||
echo TAG="$TAG" | ||
set -x | ||
|
||
docker compose build --pull app | ||
|
||
git tag "$TAG" | ||
|
||
docker tag "luontola/territory-bro:latest" "luontola/territory-bro:$TAG" | ||
|
||
docker push "luontola/territory-bro:$TAG" | ||
docker push "luontola/territory-bro:latest" | ||
|
||
git push origin "$TAG" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.