-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated docker setup * Separated console and worker. Now console only * Works with cws 2.3 now * Worker-only waits for console to startup before running configure.sh * Updated worker-ls to default connect to console-db-es-ls-kibana setup * Updated README.md
- Loading branch information
1 parent
4ce5ef0
commit 7cf28a1
Showing
17 changed files
with
305 additions
and
120 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 |
---|---|---|
|
@@ -31,4 +31,5 @@ install/logging/logstash-*.zip | |
|
||
# JaCoCo Reports | ||
/target | ||
/jacoco-reports | ||
/jacoco-reports | ||
/test-screenshots |
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,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
# -------- | ||
# build.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
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ hostname=cws-console | |
|
||
# This is the type of installation you are performing | ||
# (1 = Console and Worker, 2 = Console Only, 3 = Worker Only) | ||
install_type=1 | ||
install_type=2 | ||
|
||
database_type=mariadb | ||
|
||
|
@@ -101,20 +101,22 @@ cws_enable_cloud_autoscaling=n | |
# Specifies (comma separated) email addresses that will be used to receive | ||
# email alerts of major system errors, which include database connection failures, | ||
# messaging service (JMS) failures, and authentication server connection failures. | ||
cws_notification_emails=[AdminEmailAddresses(comma separated)] | ||
cws_notification_emails=[email protected] | ||
|
||
# This allows CWS to use a user provided Elasticsearch service. | ||
# If you wish to use an unsecured Elasticsearch host, you may do so | ||
# by specifying elasticsearch_use_auth=n below. | ||
elasticsearch_protocol=http | ||
elasticsearch_use_auth=n | ||
elasticsearch_host=http://es | ||
elasticsearch_host=es | ||
elasticsearch_port=9200 | ||
|
||
# This allows CWS to use a user provided Logstash service, thus CWS will not install | ||
# nor start its own. | ||
user_provided_logstash=n | ||
|
||
history_level=full | ||
history_days_to_live=1 | ||
|
||
# Specifies the number of hours that a CWS security token is valid for. After this | ||
# amount of time it will expire, and the User will be required to authenticate | ||
|
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
103 changes: 103 additions & 0 deletions
103
install/docker/console-db-es-ls-kibana/worker-config.properties
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,103 @@ | ||
# --------------------------------------------------------------------------- | ||
# This is an example properties file that can be used when configuring CWS | ||
# for the first time. | ||
# | ||
# To use: | ||
# | ||
# 1) Fill in the correct values where you see [YourXXX] below, for example | ||
# [YourHostname]. | ||
# The hard-coded values are suggested to be used, but can be changed if | ||
# desired. | ||
# | ||
# 2) Run CWS configuration program with this properties file: | ||
# ./configure.sh config.properties | ||
# | ||
# --------------------------------------------------------------------------- | ||
|
||
cws_ldap_url_default=ldaps://ldap.localhost:636 | ||
ldap_identity_plugin_class=org.camunda.bpm.identity.impl.ldap.plugin.LdapIdentityProviderPlugin | ||
ldap_security_filter_class=jpl.cws.core.web.CwsLdapSecurityFilter | ||
camunda_security_filter_class=jpl.cws.core.web.CwsCamundaSecurityFilter | ||
auto_accept_config=y | ||
startup_autoregister_process_defs=false | ||
|
||
# This is the hostname of the machine you are installing CWS (could be a Worker, | ||
# a Console, or both) on. The name (or less preferably IP address) you use here | ||
# should be accessible by all other components inthe CWS installation. | ||
hostname=worker1 | ||
|
||
# This is the type of installation you are performing | ||
# (1 = Console and Worker, 2 = Console Only, 3 = Worker Only) | ||
install_type=3 | ||
|
||
database_type=mariadb | ||
|
||
# This is the hostname where the database is installed. | ||
# This hostname must be accessible by all Workers and Console | ||
database_host=db | ||
|
||
database_port=3306 | ||
|
||
# The name of the database schema. | ||
database_name=cws | ||
|
||
# The name of the user that can access, and has CRUD permission to the database | ||
database_username=root | ||
|
||
# The password for the database user. | ||
database_password=test | ||
|
||
# The LDAP username for the user that will be the CWS Administrator. | ||
# This User will have the initial permissions in CWS, and will have the ability | ||
# to add users and modify permissions. | ||
admin_user=cws | ||
|
||
# The first and last name, and email address of the CWS Administrator. | ||
# These fields are only required if using CAMUNDA security | ||
admin_firstname=CWS | ||
admin_lastname=CWS | ||
admin_email=[email protected] | ||
|
||
cws_web_port=39080 | ||
cws_ssl_port=39443 | ||
cws_ajp_port=39009 | ||
cws_shutdown_port=39005 | ||
|
||
# The host that the CWS platform containing the console is installed on. | ||
# This configuration option only needs to be specified if installing CWS on a | ||
# non-console host. | ||
cws_console_host=cws-console | ||
cws_console_ssl_port=38443 | ||
|
||
# The host that will contain the CWS message broker. Currently this will always | ||
# be the same as the Console host. If you are installing a Console, enter the | ||
# same hostname as the "hostname" option. If you are installing a Worker, then | ||
# enter the hostname of the console. | ||
amq_host=cws-console | ||
amq_port=31616 | ||
|
||
cws_jmx_port=31096 | ||
identity_plugin_type=CAMUNDA | ||
cws_ldap_url=ldaps://ldap.localhost:636 | ||
notify_users_email=y | ||
email_subject=[CWS] You have been assigned a task (CWS_TASK_NAME) | ||
email_body=fn:CWS_USER_FIRSTNAME<br/>ln:CWS_USER_LASTNAME,<br/>tn:(CWS_TASK_NAME), em:CWS_USER_EMAIL | ||
|
||
# This allows CWS to use a user provided Logstash service, thus CWS will not install | ||
# nor start its own. | ||
user_provided_logstash=n | ||
|
||
history_level=full | ||
|
||
# Specifies (comma separated) email addresses that will be used to receive | ||
# email alerts of major system errors, which include database connection failures, | ||
# messaging service (JMS) failures, and authentication server connection failures. | ||
cws_notification_emails=[email protected] | ||
|
||
# This allows CWS to use a user provided Elasticsearch service. | ||
# If you wish to use an unsecured Elasticsearch host, you may do so | ||
# by specifying elasticsearch_use_auth=n below. | ||
elasticsearch_protocol=http | ||
elasticsearch_use_auth=n | ||
elasticsearch_host=es | ||
elasticsearch_port=9200 |
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,28 +1,23 @@ | ||
FROM oraclelinux:8 | ||
#FROM arm64v8/oraclelinux:8 # Use this image for Mac M1/M2 arm64 | ||
|
||
RUN yum update -y && \ | ||
yum install -y mariadb-server java-1.8.0-openjdk java-1.8.0-openjdk-devel rsync which && \ | ||
yum install -y mysql java-1.8.0-openjdk java-1.8.0-openjdk-devel rsync which && \ | ||
yum clean all | ||
|
||
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0 | ||
|
||
ENV TZ=America/Los_Angeles | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN useradd -ms /bin/bash cws_user && usermod -aG wheel cws_user | ||
|
||
WORKDIR /home/cws_user | ||
|
||
ADD cws_server.tar.gz . | ||
ADD startup.sh . | ||
ADD wait_for_mariadb.sh . | ||
ADD wait_for_db_es_console.sh . | ||
|
||
# For time check | ||
ADD getTime.java . | ||
ADD joda-time-2.1.jar . | ||
|
||
RUN chown -R cws_user:cws_user cws | ||
|
||
USER cws_user | ||
|
||
ENTRYPOINT [ "./wait_for_mariadb.sh" ] | ||
ENTRYPOINT [ "./wait_for_db_es_console.sh" ] |
Oops, something went wrong.