Skip to content

Commit

Permalink
fix rundeck
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Dec 2, 2023
1 parent ec614b8 commit 79d881f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
8 changes: 5 additions & 3 deletions apps/rundeck/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ W9_VERSION=4.17.3

W9_POWER_PASSWORD=1PrMxExC45LsCT

W9_HTTP_PORT_SET=4440
W9_HTTP_PORT_SET=9001
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####

W9_ID=rundeck
Expand All @@ -19,9 +19,11 @@ W9_URL_REPLACE=true
W9_NETWORK=websoft9

#### ----------------------------------------------------------------------------------------- ####
# rundesk environment: https://docs.rundeck.com/docs/administration/configuration/docker.html

RUNDECK_DATABASE_DRIVER=org.mariadb.jdbc.Driver
RUNDECK_DATABASE_USERNAME=$W9_ID
RUNDECK_DATABASE_PASSWORD=$W9_POWER_PASSWORD
RUNDECK_DATABASE_URL=jdbc:$W9_ID-mysql://mysql/rundeck?autoReconnect=true&useSSL=false
RUNDECK_GRAILS_URL=$W9_URL:4440
RUNDECK_DATABASE_URL=jdbc:mysql://$W9_ID-mysql/$W9_ID?autoReconnect=true&useSSL=false
# URL must have http or https
RUNDECK_GRAILS_URL=http://$W9_URL:$W9_HTTP_PORT_SET
12 changes: 10 additions & 2 deletions apps/rundeck/Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

It can running, but have below problem:

- Is there environment for Rundesk administrator password?
- Is there environment for Rundesk administrator username or password?
- Is there have runner for Rundesk opensource?
- When login sucesss, the URL redirect http://IP:9098/IP:9098/menu/home

官方文档看似给出了配置文件与环境变量之间的对应关系,但目前还没有搞明白

## FAQ

#### When login sucesss, the URL redirect http://IP:9098/IP:9098/menu/home?

RUNDECK_GRAILS_URL must have http or https:
```
RUNDECK_GRAILS_URL=http://IP
```
3 changes: 2 additions & 1 deletion apps/rundeck/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# image,docs: https://hub.docker.com/_/wordpress/
# docs: https://docs.rundeck.com/docs/administration/install/docker.html
# image: https://hub.docker.com/r/rundeck/rundeck

version: '3.8'

Expand Down

0 comments on commit 79d881f

Please sign in to comment.