Skip to content

Commit

Permalink
Add support to rundeck service
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Oct 23, 2023
1 parent d3e5288 commit 44b1089
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ dependencies {
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.0'
// ADempiere Core
implementation "${baseGroupId}:base:${baseVersion}"
implementation "${baseGroupId}:adempiere-grpc-utils:1.0.6"
implementation "${baseGroupId}:adempiere-business-processors:1.0.9"
implementation "${baseGroupId}:adempiere-grpc-utils:1.1.2"
implementation "${baseGroupId}:adempiere-business-processors:1.1.0"
// Others
compileOnly 'org.apache.tomcat:annotations-api:6.0.53'
}
13 changes: 12 additions & 1 deletion docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,15 @@ ADEMPIERE_NETWORK="adempiere-processor.adempiere_network"
ENVOY_NAME="adempiere-processor.grpc.proxy"
ENVOY_IMAGE_NAME="envoyproxy/envoy:v1.27.0"
ENVOY_VOLUME="volume_envoy"
ENVOY_PORT=5555
ENVOY_PORT=5555

DKRON_IMAGE="dkron/dkron"
DKRON_HOST="adempiere-processor.dkron"
DKRON_PORT=8080
DKRON_VOLUME="adempiere-processor.volume_dkron"

RUNDECK_IMAGE="rundeck/rundeck:4.12.0"
RUNDECK_HOST="adempiere-processor.rundeck"
RUNDECK_PORT=4440
RUNDECK_REALM_SETTING="./rundeck/realm.properties"
RUNDECK_USER_POLICIES="./rundeck/user.aclpolicy"
31 changes: 31 additions & 0 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,35 @@ services:
networks:
- shared_network

dkron-scheduler:
image: ${DKRON_IMAGE}
container_name: ${DKRON_HOST}
restart: ${GENERIC_RESTART}
ports:
- ${DKRON_PORT}:8080
command:
- "agent"
- "--bootstrap-expect=1"
- "--node-name=node1"
- "--server"
- "--ui=false"
volumes:
- volume_dkron:/dkron.data
networks:
- shared_network

rundeck-scheduler:
container_name: ${RUNDECK_HOST}
image: ${RUNDECK_IMAGE}
restart: ${GENERIC_RESTART}
ports:
- ${RUNDECK_PORT}:4440
volumes:
- ${RUNDECK_REALM_SETTING}:/home/rundeck/server/config/realm.properties
- ${RUNDECK_USER_POLICIES}:/home/rundeck/etc/user.aclpolicy
networks:
- shared_network

grpc.proxy:
image: ${ENVOY_IMAGE_NAME}
container_name: ${ENVOY_NAME}
Expand All @@ -61,3 +90,5 @@ networks:
volumes:
volume_postgres:
name: ${POSTGRES_VOLUME}
volume_dkron:
name: ${DKRON_VOLUME}
25 changes: 25 additions & 0 deletions docker-compose/rundeck/user.aclpolicy
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
description: Basic Access
context:
application: 'rundeck'
by:
group: 'user'
for:
project:
- equals:
name: 'sell-in-sell-out'
allow: [read]
---
description: Project Access
context:
project: 'sell-in-sell-out'
by:
group: 'user'
for:
job:
- allow: [read,run,runAs,kill,killAs] # allow create/read/write/delete/run/kill of all jobs
node:
- allow: [read,run]
adhoc:
- allow: 'read'
resource:
- allow: 'read'

0 comments on commit 44b1089

Please sign in to comment.