Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update conductor server version and JDK #37

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build_on_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Zulu JDK 11
- name: Set up Zulu JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'
- name: Build
run: ./gradlew clean build
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Zulu JDK 11
- name: Set up Zulu JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'
- name: Build
run: ./run_tests.sh
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Zulu JDK 11
- name: Set up Zulu JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'
- name: Build
run: |
export VERSION=${{github.ref_name}}
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ext {
springBootVersion = '2.7.6'

versions = [
revConductor : '3.13.8',
revConductor : '3.14.0',
revTestContainer : '1.17.2',
revGuava : '32.0.0-jre',
revLog4j : '2.17.1',
Expand Down Expand Up @@ -135,8 +135,8 @@ subprojects {


compileJava {
sourceCompatibility = 11
targetCompatibility = 11
sourceCompatibility = 17
targetCompatibility = 17
}

spotless {
Expand Down
5 changes: 3 additions & 2 deletions docker/DockerfileServer
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER Orkes Inc <[email protected]>

RUN apk add nginx

RUN apk add openjdk11
RUN apk add openjdk17

RUN apk add coreutils
RUN apk add curl
Expand All @@ -13,9 +13,10 @@ RUN apk add curl
RUN mkdir -p /app/config /app/logs /app/libs /app/info

# Add UI
# 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 tmp/ui/conductor/ui/build .
COPY docker/tmp/ui/conductor/ui/build .
COPY docker/config/nginx.conf /etc/nginx/http.d/default.conf

# Startup script(s)
Expand Down
5 changes: 3 additions & 2 deletions docker/DockerfileStandalone
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ MAINTAINER Orkes Inc <[email protected]>
# Install software required to run conductor stack
RUN apk add nginx
RUN apk add coreutils
RUN apk add openjdk11
RUN apk add openjdk17
RUN apk add redis
RUN apk add postgresql14

# Make app folders
RUN mkdir -p /app/config /app/logs /app/libs /app/info

# Add UI
# 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 tmp/ui/conductor/ui/build .
COPY docker/tmp/ui/conductor/ui/build .
COPY docker/config/nginx.conf /etc/nginx/http.d/default.conf


Expand Down
53 changes: 53 additions & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
version: '2.3'

services:
postgresql:
image: postgres:11.15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- "7432:5432"
networks:
- internal

r1:
image: redis:alpine
restart: on-failure
command: "redis-server --save 60 1 --appendonly yes --loglevel warning"
healthcheck:
test: [ "CMD", "redis-cli","ping" ]
ports:
- "7379:6379"
networks:
- internal

server-1:
container_name: conductor
build:
context: ../
dockerfile: docker/DockerfileServer
environment:
- spring.datasource.url=jdbc:postgresql://postgresql:5432/postgres
- conductor.redis-lock.serverAddress=redis://r1:6379
- conductor.redis.hosts=r1:6379:us-east-1c
- conductor.queue.type=redis_standalone
- conductor.db.type=redis_standalone
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
depends_on:
r1:
condition: service_healthy
links:
- r1
- postgresql
ports:
- "9090:8080"
- "6000:5000"
networks:
- internal

networks:
internal:
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionSha256Sum=b586e04868a22fd817c8971330fec37e298f3242eb85c374181b12d637f80302
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mkdir -p tmp/ui/conductor/ui/build
docker rm -f conductor_test_container
docker build -f docker/DockerfileStandalone . -t conductor_test_container
docker run -dit --name conductor_test_container -p 8899:8080 -t conductor_test_container
docker run -dit --name conductor_test_container -p 8899:8080 -p 4535:5000 -t conductor_test_container
while ! curl -s http://localhost:8899/api/metadata/workflow -o /dev/null
do
echo "$(date) - still trying"
Expand Down
Loading