-
Notifications
You must be signed in to change notification settings - Fork 509
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
11 changed files
with
153 additions
and
74 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,88 @@ | ||
version: '2.3' | ||
|
||
services: | ||
conductor-server: | ||
environment: | ||
- CONFIG_PROP=config-postgres-es7.properties | ||
image: conductor:server | ||
container_name: conductor-server | ||
build: | ||
context: ../ | ||
dockerfile: docker/server/Dockerfile | ||
networks: | ||
- internal | ||
ports: | ||
- 8080:8080 | ||
- 5000:5000 | ||
healthcheck: | ||
test: [ "CMD", "curl","-I" ,"-XGET", "http://localhost:8080/health" ] | ||
interval: 60s | ||
timeout: 30s | ||
retries: 12 | ||
links: | ||
- conductor-postgres:postgresdb | ||
- conductor-elasticsearch:es | ||
depends_on: | ||
conductor-postgres: | ||
condition: service_healthy | ||
conductor-elasticsearch: | ||
condition: service_healthy | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "1k" | ||
max-file: "3" | ||
|
||
conductor-postgres: | ||
image: postgres | ||
environment: | ||
- POSTGRES_USER=conductor | ||
- POSTGRES_PASSWORD=conductor | ||
volumes: | ||
- pgdata-conductor:/var/lib/postgresql/data | ||
networks: | ||
- internal | ||
ports: | ||
- 6432:5432 | ||
healthcheck: | ||
test: timeout 5 bash -c 'cat < /dev/null > /dev/tcp/localhost/5432' | ||
interval: 5s | ||
timeout: 5s | ||
retries: 12 | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "1k" | ||
max-file: "3" | ||
|
||
conductor-elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.11 | ||
environment: | ||
- "ES_JAVA_OPTS=-Xms512m -Xmx1024m" | ||
- xpack.security.enabled=false | ||
- discovery.type=single-node | ||
volumes: | ||
- esdata-conductor:/usr/share/elasticsearch/data | ||
networks: | ||
- internal | ||
ports: | ||
- 9201:9200 | ||
healthcheck: | ||
test: curl http://localhost:9200/_cluster/health -o /dev/null | ||
interval: 5s | ||
timeout: 5s | ||
retries: 12 | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "1k" | ||
max-file: "3" | ||
|
||
volumes: | ||
pgdata-conductor: | ||
driver: local | ||
esdata-conductor: | ||
driver: local | ||
|
||
networks: | ||
internal: |
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,52 +1,48 @@ | ||
# | ||
# conductor:server - Combined conductor server & UI | ||
# conductor:server - Build Conductor Server | ||
# | ||
# =========================================================================================================== | ||
# 0. Builder stage | ||
# 0. Builder stage 1 | ||
# =========================================================================================================== | ||
FROM alpine:3.18 AS builder | ||
FROM openjdk:17-bullseye AS builder | ||
|
||
LABEL maintainer="Orkes OSS <[email protected]>" | ||
|
||
# Copy the project directly onto the image | ||
COPY . /conductor | ||
WORKDIR /conductor | ||
|
||
# Build the server on run | ||
RUN ./gradlew build -x test | ||
WORKDIR /server/build/libs | ||
RUN ls -ltr | ||
|
||
|
||
# | ||
# conductor:server - Build Conductor UI | ||
# | ||
# =========================================================================================================== | ||
# 0. Build Conductor Server | ||
# 1. Builder stage 2 | ||
# =========================================================================================================== | ||
FROM alpine:3.18 AS ui-builder | ||
|
||
LABEL maintainer="Orkes OSS <[email protected]>" | ||
|
||
# Install dependencies | ||
RUN apk add openjdk17 | ||
RUN apk add git | ||
RUN apk add --update nodejs npm yarn | ||
|
||
COPY . /conductor | ||
WORKDIR /conductor/ui | ||
|
||
# Include monaco sources into bundle (instead of using CDN) | ||
ENV REACT_APP_MONACO_EDITOR_USING_CDN=false | ||
RUN yarn install && cp -r node_modules/monaco-editor public/ && yarn build | ||
RUN ls -ltr | ||
RUN echo "Done building UI" | ||
|
||
# Checkout the community project | ||
WORKDIR / | ||
RUN mkdir server-build | ||
WORKDIR server-build | ||
RUN ls -ltr | ||
|
||
RUN git clone https://github.com/conductor-oss/conductor-community.git | ||
|
||
# Copy the project directly onto the image | ||
WORKDIR conductor-community | ||
RUN ls -ltr | ||
|
||
# Build the server on run | ||
RUN ./gradlew build -x test --stacktrace | ||
WORKDIR /server-build | ||
RUN ls -ltr | ||
RUN pwd | ||
|
||
|
||
# =========================================================================================================== | ||
# 1. Bin stage | ||
# 2. Bin stage | ||
# =========================================================================================================== | ||
FROM alpine:3.18 | ||
|
||
|
@@ -61,13 +57,13 @@ RUN mkdir -p /app/config /app/logs /app/libs | |
# Copy the compiled output to new image | ||
COPY docker/server/bin /app | ||
COPY docker/server/config /app/config | ||
COPY --from=builder /server-build/conductor-community/community-server/build/libs/*boot*.jar /app/libs/conductor-server.jar | ||
COPY --from=builder /conductor/server/build/libs/*boot*.jar /app/libs/conductor-server.jar | ||
|
||
# Copy compiled UI assets to nginx www directory | ||
WORKDIR /usr/share/nginx/html | ||
RUN rm -rf ./* | ||
COPY --from=builder /conductor/ui/build . | ||
COPY --from=builder /conductor/docker/server/nginx/nginx.conf /etc/nginx/http.d/default.conf | ||
COPY --from=ui-builder /conductor/ui/build . | ||
COPY --from=ui-builder /conductor/docker/server/nginx/nginx.conf /etc/nginx/http.d/default.conf | ||
|
||
# Copy the files for the server into the app folders | ||
RUN chmod +x /app/startup.sh | ||
|
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 @@ | ||
# Database persistence type. | ||
conductor.db.type=postgres | ||
conductor.queue.type=postgres | ||
conductor.external-payload-storage.type=postgres | ||
|
||
# postgres | ||
spring.datasource.url=jdbc:postgresql://postgresdb:5432/postgres | ||
spring.datasource.username=conductor | ||
spring.datasource.password=conductor | ||
|
||
# Elastic search instance indexing is enabled. | ||
conductor.indexing.enabled=true | ||
conductor.elasticsearch.url=http://es:9200 | ||
conductor.elasticsearch.indexName=conductor | ||
conductor.elasticsearch.version=7 | ||
conductor.elasticsearch.clusterHealthColor=yellow | ||
|
||
# Additional modules for metrics collection exposed to Prometheus (optional) | ||
conductor.metrics-prometheus.enabled=true | ||
management.endpoints.web.exposure.include=prometheus | ||
|
||
# Load sample kitchen-sink workflow | ||
loadSample=true |
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,21 +1,23 @@ | ||
# Database persistence type. | ||
conductor.db.type=postgres | ||
conductor.queue.type=postgres | ||
conductor.external-payload-storage.type=postgres | ||
|
||
# postgres | ||
# Database connectivity | ||
spring.datasource.url=jdbc:postgresql://postgresdb:5432/postgres | ||
spring.datasource.username=conductor | ||
spring.datasource.password=conductor | ||
|
||
# Elastic search instance indexing is enabled. | ||
|
||
# Indexing Properties | ||
conductor.indexing.enabled=true | ||
conductor.elasticsearch.url=http://es:9200 | ||
conductor.elasticsearch.indexName=conductor | ||
conductor.elasticsearch.version=7 | ||
conductor.elasticsearch.clusterHealthColor=yellow | ||
conductor.indexing.type=postgres | ||
# Required to disable connecting to elasticsearch. | ||
conductor.elasticsearch.version=0 | ||
|
||
# Additional modules for metrics collection exposed to Prometheus (optional) | ||
conductor.metrics-prometheus.enabled=true | ||
management.endpoints.web.exposure.include=prometheus | ||
|
||
# Load sample kitchen-sink workflow | ||
loadSample=true | ||
loadSample=true |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# conductor:ui - Netflix Conductor UI | ||
# | ||
FROM node:20-alpine | ||
LABEL maintainer="Netflix OSS <[email protected]>" | ||
LABEL maintainer="Orkes OSS <[email protected]>" | ||
|
||
# Install the required packages for the node build | ||
# to run on alpine | ||
|
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