Skip to content

Commit

Permalink
Merge pull request #193 from TouK/staging
Browse files Browse the repository at this point in the history
Nu 1.17.0
  • Loading branch information
raphaelsolarski authored Sep 13, 2024
2 parents 5481b08 + 5f13693 commit e3395d5
Show file tree
Hide file tree
Showing 43 changed files with 54 additions and 1,453 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NUSSKNACKER_VERSION=1.16.3
NUSSKNACKER_VERSION=1.17.0
30 changes: 24 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,28 @@ services:

### Quickstart setup container
quickstart-setup:
build:
context: quickstart-setup/
dockerfile: Dockerfile
image: touk/nussknacker-example-scenarios-library:latest
depends_on:
nginx:
condition: service_healthy
designer:
condition: service_healthy
kafka:
condition: service_healthy
schema-registry:
condition: service_healthy
environment:
NU_DESIGNER_ADDRESS: "nginx:8080"
NU_REQUEST_RESPONSE_OPEN_API_SERVICE_ADDRESS: "nginx:8181"
KAFKA_ADDRESS: "kafka:9092"
SCHEMA_REGISTRY_ADDRESS: "schema-registry:8081"
volumes:
- nussknacker_designer_shared_configuration:/opt/nussknacker/conf/
deploy:
resources:
limits:
memory: 128M
memory: 256M
cpus: '0.5'

### Nussknacker-related services

Expand Down Expand Up @@ -46,7 +58,8 @@ services:
image: touk/nussknacker:${NUSSKNACKER_VERSION:?NUSSKNACKER_VERSION must be defined}_scala-2.12
restart: unless-stopped
environment:
CONFIG_FILE: "/opt/nussknacker/conf/application.conf,/opt/nussknacker/conf/application-customizations.conf"
EXAMPLE_SCENARIOS_LIBRARY_SERVICE_NAME: quickstart-setup
CONFIG_FILE: "/opt/nussknacker/conf/application.conf,/opt/nussknacker/conf/additional-configuration.conf,/opt/nussknacker/conf/application-customizations.conf"
DB_URL: "jdbc:postgresql://postgres:5432/nu-db"
DB_DRIVER: "org.postgresql.Driver"
DB_USER: "nu"
Expand All @@ -71,13 +84,14 @@ services:
condition: service_healthy
flink-taskmanager:
condition: service_started
expose:
expose:
- 8181
healthcheck:
test: [ "CMD-SHELL", "curl localhost:8080/api/app/healthCheck" ]
interval: 10s
retries: 10
volumes:
- nussknacker_designer_shared_configuration:/opt/nussknacker/conf
- ./designer/application-customizations.conf:/opt/nussknacker/conf/application-customizations.conf
volumes_from:
- flink-jobmanager
Expand Down Expand Up @@ -216,6 +230,7 @@ services:
context: ./flink/
args:
FLINK_VERSION: "1.18.1-scala_2.12-java11"
no_cache: true
restart: unless-stopped
command: jobmanager
environment:
Expand All @@ -232,6 +247,7 @@ services:
context: ./flink/
args:
FLINK_VERSION: "1.18.1-scala_2.12-java11"
no_cache: true
restart: unless-stopped
command: taskmanager
environment:
Expand Down Expand Up @@ -265,5 +281,7 @@ services:
volumes:
nussknacker_designer_data:
name: nussknacker_designer_data
nussknacker_designer_shared_configuration:
name: nussknacker_designer_shared_configuration
nussknacker_flink_data:
name: nussknacker_flink_data
10 changes: 9 additions & 1 deletion flink/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
ARG FLINK_VERSION=undefined-flink-version
ARG FLINK_VERSION="FLINK_VERSION_IS_UNDEFINED"

FROM curlimages/curl:8.9.1 AS lib_provider

# Adding custom libraries ('add other libraries' section):
# https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/standalone/docker/#further-customization
WORKDIR /libs
RUN curl -k --output /libs/postgresql-42.6.0.jar https://repo1.maven.org/maven2/org/postgresql/postgresql/42.6.0/postgresql-42.6.0.jar

FROM flink:${FLINK_VERSION}

USER root
RUN echo '#!/bin/sh' > /ex-docker-entrypoint.sh && \
echo 'export FLINK_PROPERTIES=$(cat /opt/flink/conf/flink-properties.yml) && /docker-entrypoint.sh "$@"' >> /ex-docker-entrypoint.sh && \
chmod +x /ex-docker-entrypoint.sh
COPY --from=lib_provider /libs/ /opt/flink/lib/

USER flink
COPY flink-properties.yml /opt/flink/conf/
Expand Down
18 changes: 0 additions & 18 deletions quickstart-setup/Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions quickstart-setup/data/http/generate-requests/loan.sh

This file was deleted.

2 changes: 0 additions & 2 deletions quickstart-setup/data/http/slugs.txt

This file was deleted.

7 changes: 0 additions & 7 deletions quickstart-setup/data/http/static-requests/loan.txt

This file was deleted.

11 changes: 0 additions & 11 deletions quickstart-setup/data/kafka/generate-messages/transactions.sh

This file was deleted.

3 changes: 0 additions & 3 deletions quickstart-setup/data/kafka/static-messages/transactions.txt

This file was deleted.

2 changes: 0 additions & 2 deletions quickstart-setup/data/kafka/topics.txt

This file was deleted.

14 changes: 0 additions & 14 deletions quickstart-setup/entrypoint.sh

This file was deleted.

58 changes: 0 additions & 58 deletions quickstart-setup/scripts/auto-executed/001-setup-schemas.sh

This file was deleted.

30 changes: 0 additions & 30 deletions quickstart-setup/scripts/auto-executed/002-setup-topics.sh

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e3395d5

Please sign in to comment.