This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/#remove docker asset build (#7)
* Initial commit for digital ocean publish * Remove docker build This pull request remove docker build asset and alow download from generated asset
- Loading branch information
1 parent
b5034d6
commit 39e4a77
Showing
3 changed files
with
20 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,3 @@ | ||
FROM gradle:8.0.2 as builder | ||
ARG BUILD_ARTIFACT \ | ||
GITHUB_DEPLOY_USER \ | ||
GITHUB_DEPLOY_TOKEN \ | ||
GITHUB_DEPLOY_REPOSITORY | ||
|
||
LABEL maintainer="[email protected]" \ | ||
description="ADempiere gRPC Middleware used as ADempiere backend as little core" | ||
|
||
WORKDIR /opt/apps/server | ||
|
||
COPY . . /opt/apps/server/ | ||
|
||
EXPOSE ${SERVER_PORT} | ||
|
||
ENV GITHUB_DEPLOY_USER=$GITHUB_DEPLOY_USER \ | ||
GITHUB_DEPLOY_TOKEN=$GITHUB_DEPLOY_TOKEN \ | ||
GITHUB_DEPLOY_REPOSITORY=$GITHUB_DEPLOY_REPOSITORY | ||
|
||
RUN gradle build && \ | ||
unzip -d /opt/apps build/distributions/adempiere-middleware.zip && \ | ||
mv docker/env.yaml /opt/apps/adempiere-middleware && \ | ||
mv docker/start.sh /opt/apps/adempiere-middleware | ||
|
||
FROM eclipse-temurin:11-jdk-focal | ||
|
||
# Init ENV with default values | ||
|
@@ -39,6 +15,11 @@ ENV \ | |
|
||
WORKDIR /opt/apps/server | ||
|
||
# Copy src files | ||
COPY docker/adempiere-middleware /opt/apps/server | ||
COPY docker/env.yaml /opt/apps/server/env.yaml | ||
COPY docker/start.sh /opt/apps/server/start.sh | ||
|
||
# timezone | ||
ENV TZ America/Caracas | ||
|
||
|
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,27 +1,3 @@ | ||
FROM gradle:8.0.2 as builder | ||
ARG BUILD_ARTIFACT \ | ||
GITHUB_DEPLOY_USER \ | ||
GITHUB_DEPLOY_TOKEN \ | ||
GITHUB_DEPLOY_REPOSITORY | ||
|
||
LABEL maintainer="[email protected]" \ | ||
description="ADempiere gRPC Middleware used as ADempiere backend as little core" | ||
|
||
WORKDIR /opt/apps/server | ||
|
||
COPY . . /opt/apps/server/ | ||
|
||
EXPOSE ${SERVER_PORT} | ||
|
||
ENV GITHUB_DEPLOY_USER=$GITHUB_DEPLOY_USER \ | ||
GITHUB_DEPLOY_TOKEN=$GITHUB_DEPLOY_TOKEN \ | ||
GITHUB_DEPLOY_REPOSITORY=$GITHUB_DEPLOY_REPOSITORY | ||
|
||
RUN gradle build && \ | ||
unzip -d /opt/apps build/distributions/adempiere-middleware.zip && \ | ||
mv docker/env.yaml /opt/apps/adempiere-middleware && \ | ||
mv docker/start.sh /opt/apps/adempiere-middleware | ||
|
||
FROM eclipse-temurin:11-jdk-alpine | ||
|
||
# Init ENV with default values | ||
|
@@ -39,6 +15,11 @@ ENV \ | |
|
||
WORKDIR /opt/apps/server | ||
|
||
# Copy src files | ||
COPY docker/adempiere-middleware /opt/apps/server | ||
COPY docker/env.yaml /opt/apps/server/env.yaml | ||
COPY docker/start.sh /opt/apps/server/start.sh | ||
|
||
# timezone | ||
ENV TZ America/Caracas | ||
|
||
|
@@ -55,9 +36,6 @@ RUN rm -rf /var/cache/apk/* && \ | |
apk add --no-cache \ | ||
tzdata | ||
|
||
|
||
COPY --from=builder /opt/apps/adempiere-middleware/ /opt/apps/server/ | ||
|
||
RUN addgroup adempiere && \ | ||
adduser --disabled-password --gecos "" --ingroup adempiere --no-create-home adempiere && \ | ||
chown -R adempiere /opt/apps/server/ && \ | ||
|