-
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.
Revert "Build and Push Docker Image Workflow (#192)"
This reverts commit ca4c4c0.
- Loading branch information
1 parent
6d99917
commit 4bebd4e
Showing
34 changed files
with
169 additions
and
377 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nixpacks build -n hephaestus-application-server server/application-server |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"version": "0.0.1", | ||
"name": "hephaestus", | ||
"workspaces": [ | ||
"webapp/*" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[variables] | ||
NIXPACKS_JDK_VERSION = '21' | ||
|
||
[phases.setup] | ||
aptPkgs = ["...", "wget"] | ||
|
||
[phases.build] | ||
cmds = ["chmod +x ./mvnw", "./mvnw -DskipTests clean package"] |
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 |
---|---|---|
@@ -1,46 +1,60 @@ | ||
FROM node:22 AS build | ||
FROM node:latest as build | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json package-lock.json ./ | ||
COPY ./ /app/ | ||
|
||
# Ensure .env file exists | ||
RUN mv .env* .env || true | ||
RUN touch .env | ||
RUN cat .env | ||
|
||
# Fix buggy replacement of COOLIFY_URL in .env | ||
RUN COOLIFY_URL_VALUE=$(grep '^COOLIFY_URL=' .env | cut -d '=' -f2) && \ | ||
sed -i "s|\$COOLIFY_URL|$COOLIFY_URL_VALUE|g" .env | ||
|
||
# Export environment variables from .env | ||
# This assumes that .env contains lines like VARIABLE=value | ||
# and does not contain spaces around the '=' | ||
RUN set -a && \ | ||
. /app/.env && \ | ||
set +a && \ | ||
echo "Generating environment.prod.ts" && \ | ||
cat > src/environments/environment.prod.ts <<EOF | ||
export const environment = { | ||
clientUrl: '${APPLICATION_CLIENT_URL}', | ||
serverUrl: '${APPLICATION_SERVER_URL}', | ||
version: '${APPLICATION_VERSION}', | ||
sentry: { | ||
dsn: '${SENTRY_DSN}', | ||
environment: 'prod', | ||
}, | ||
keycloak: { | ||
url: '${KEYCLOAK_URL}', | ||
realm: '${KEYCLOAK_REALM}', | ||
clientId: '${KEYCLOAK_CLIENT_ID}', | ||
skipLoginPage: ${KEYCLOAK_SKIP_LOGIN} | ||
}, | ||
umami: { | ||
enabled: '${UMAMI_ENABLED}', | ||
scriptUrl: '${UMAMI_SCRIPT_URL}', | ||
websiteId: '${UMAMI_WEBSITE_ID}', | ||
domains: '${UMAMI_DOMAINS}' | ||
}, | ||
legal: { | ||
imprintHtml: '${LEGAL_IMPRINT_HTML}', | ||
privacyHtml: '${LEGAL_PRIVACY_HTML}' | ||
} | ||
}; | ||
EOF | ||
|
||
RUN npm install | ||
|
||
COPY . ./ | ||
|
||
RUN npm run build | ||
|
||
# Extract version from package.json and save to version.txt | ||
RUN node -e "console.log(require('./package.json').version)" > /app/version.txt | ||
|
||
FROM nginx:stable-alpine | ||
|
||
ENV APPLICATION_CLIENT_URL=https://default-client.url | ||
ENV APPLICATION_SERVER_URL=https://default-server.url | ||
|
||
ENV SENTRY_DNS=https://[email protected]/3 | ||
|
||
ENV KEYCLOAK_URL=https://default-keycloak.url | ||
ENV KEYCLOAK_REALM=default-realm | ||
ENV KEYCLOAK_CLIENT_ID=default-client-id | ||
ENV KEYCLOAK_SKIP_LOGIN=false | ||
|
||
ENV LEGAL_IMPRINT_HTML="<p>Default Imprint</p>" | ||
ENV LEGAL_PRIVACY_HTML="<p>Default Privacy</p>" | ||
|
||
ENV UMAMI_ENABLED=false | ||
ENV UMAMI_SCRIPT_URL="" | ||
ENV UMAMI_WEBSITE_ID="" | ||
ENV UMAMI_DOMAINS="" | ||
FROM nginx:latest | ||
|
||
COPY --from=build /app/dist/webapp/browser /usr/share/nginx/html | ||
|
||
COPY generate_config.sh /usr/local/bin/generate_config.sh | ||
RUN chmod +x /usr/local/bin/generate_config.sh | ||
|
||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["/usr/local/bin/generate_config.sh"] | ||
CMD ["nginx", "-g", "daemon off;"] |
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 was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.