-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
75 additions
and
9 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,3 +1,34 @@ | ||
# | ||
# conductor:server - Combined Netflix conductor server & UI | ||
# | ||
# =========================================================================================================== | ||
# 0. Builder stage | ||
# =========================================================================================================== | ||
FROM alpine:3.18 AS builder | ||
|
||
MAINTAINER Orkes Inc <[email protected]> | ||
|
||
# =========================================================================================================== | ||
# 0. Build Conductor Server UI | ||
# =========================================================================================================== | ||
|
||
|
||
# Install dependencies | ||
RUN apk add openjdk17 | ||
RUN apk add git | ||
RUN apk add --update nodejs npm yarn | ||
|
||
COPY . /conductor-community | ||
WORKDIR conductor-community | ||
RUN ./gradlew clean build -x test | ||
|
||
WORKDIR / | ||
RUN git clone https://github.com/Netflix/conductor | ||
WORKDIR conductor/ui | ||
RUN yarn install && yarn build | ||
RUN ls -ltr | ||
RUN echo "Done building UI" | ||
|
||
FROM alpine:3.18.3 | ||
|
||
MAINTAINER Orkes Inc <[email protected]> | ||
|
@@ -16,7 +47,7 @@ RUN mkdir -p /app/config /app/logs /app/libs /app/info | |
# Make sure to run build-ui.sh script before running the docker build to pull and build the UI | ||
WORKDIR /usr/share/nginx/html | ||
RUN rm -rf ./* | ||
COPY docker/tmp/ui/conductor/ui/build . | ||
COPY --from=builder /conductor/ui/build . | ||
COPY docker/config/nginx.conf /etc/nginx/http.d/default.conf | ||
|
||
# Startup script(s) | ||
|
@@ -25,7 +56,7 @@ COPY docker/config/config.properties /app/config/config.properties | |
COPY server/src/main/resources/banner.txt /app/config/banner.txt | ||
|
||
# JAR files | ||
COPY server/build/libs/orkes-conductor-server-boot.jar /app/libs/server.jar | ||
COPY --from=builder conductor-community/server/build/libs/orkes-conductor-server-boot.jar /app/libs/server.jar | ||
|
||
# Server version | ||
#COPY assembled/libs/server-version.txt* /app/info | ||
|
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,3 +1,34 @@ | ||
# | ||
# conductor:server - Combined Netflix conductor server & UI | ||
# | ||
# =========================================================================================================== | ||
# 0. Builder stage | ||
# =========================================================================================================== | ||
FROM alpine:3.18 AS builder | ||
|
||
MAINTAINER Orkes Inc <[email protected]> | ||
|
||
# =========================================================================================================== | ||
# 0. Build Conductor Server UI | ||
# =========================================================================================================== | ||
|
||
|
||
# Install dependencies | ||
RUN apk add openjdk17 | ||
RUN apk add git | ||
RUN apk add --update nodejs npm yarn | ||
|
||
COPY . /conductor-community | ||
WORKDIR conductor-community | ||
RUN ./gradlew clean build -x test | ||
|
||
WORKDIR / | ||
RUN git clone https://github.com/Netflix/conductor | ||
WORKDIR conductor/ui | ||
RUN yarn install && yarn build | ||
RUN ls -ltr | ||
RUN echo "Done building UI" | ||
|
||
FROM alpine:3.18.3 | ||
MAINTAINER Orkes Inc <[email protected]> | ||
|
||
|
@@ -15,10 +46,9 @@ RUN mkdir -p /app/config /app/logs /app/libs /app/info | |
# Make sure to run build-ui.sh script before running the docker build to pull and build the UI | ||
WORKDIR /usr/share/nginx/html | ||
RUN rm -rf ./* | ||
COPY docker/tmp/ui/conductor/ui/build . | ||
COPY --from=builder /conductor/ui/build . | ||
COPY docker/config/nginx.conf /etc/nginx/http.d/default.conf | ||
|
||
|
||
# Startup script(s) | ||
COPY docker/config/startup.sh /app/startup.sh | ||
COPY docker/config/config.properties /app/config/config.properties | ||
|
@@ -27,7 +57,7 @@ COPY docker/config/start_all.sh /app/start_all.sh | |
COPY server/src/main/resources/banner.txt /app/config/banner.txt | ||
|
||
# JAR files | ||
COPY server/build/libs/orkes-conductor-server-boot.jar /app/libs/server.jar | ||
COPY --from=builder conductor-community/server/build/libs/orkes-conductor-server-boot.jar /app/libs/server.jar | ||
|
||
RUN chmod +x /app/startup.sh | ||
RUN touch /app/logs/server.log | ||
|
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