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

Add mysql8 exhibit #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions mysql8/.env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Set pro options if applicable
# RUNDECK_IMAGE=rundeckpro/enterprise:SNAPSHOT
# RUNDECK_LICENSE_FILE=
21 changes: 21 additions & 0 deletions mysql8/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MySQL Exhibit
=============

Demonstrates configuring Rundeck to use MySQL as an external database.

# How to

## Startup
Start the docker compose

```
docker-compose up
```

## Teardown

tear down and remove volumes

```
docker-compose down -v
```
29 changes: 29 additions & 0 deletions mysql8/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
services:
rundeck:
image: rundeck/rundeck:SNAPSHOT
links:
- mysql
environment:
RUNDECK_DATABASE_DRIVER: org.mariadb.jdbc.Driver
RUNDECK_DATABASE_USERNAME: rundeck
RUNDECK_DATABASE_PASSWORD: rundeck
RUNDECK_DATABASE_URL: jdbc:mysql://mysql/rundeck?autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
RUNDECK_GRAILS_URL: http://localhost:4440
volumes:
- ${RUNDECK_LICENSE_FILE:-/dev/null}:/home/rundeck/etc/rundeckpro-license.key
ports:
- 4440:4440
mysql:
image: mysql:8
expose:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=rundeck
- MYSQL_USER=rundeck
- MYSQL_PASSWORD=rundeck
volumes:
- dbdata:/var/lib/mysql

volumes:
dbdata: