Skip to content

Commit

Permalink
Merge pull request rundeck#29 from rundeck/oraclexe-setup
Browse files Browse the repository at this point in the history
Add Oracle XE exhibit
  • Loading branch information
gschueler authored May 25, 2022
2 parents df0f12c + 5670061 commit f394aad
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ as well as a reference and starting place for your own deployments.

### External Database Config
* [mysql](./mysql)
* [oraclexe](./oraclexe)
* [postgres](./postgres)
* [sqlserver](./sqlserver)

Expand Down
3 changes: 3 additions & 0 deletions oraclexe/.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=
25 changes: 25 additions & 0 deletions oraclexe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Oracle XE Exhibit
==============

# How to Use

## Download Oracle JDBC Driver

[Download the Oracle JDBC driver "ojdbc8.jar"](https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html) and place in `lib/` .

```
VERS=21.5.0.0
curl https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc8/$VERS/ojdbc8-$VERS.jar -o lib/ojdbc8-$VERS.jar
```

## Start

```
docker-compose up -d
```

## Stop

```
docker-compose down -v
```
35 changes: 35 additions & 0 deletions oraclexe/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: '3'

services:
rundeck:
image: ${RUNDECK_IMAGE:-rundeck/rundeck:SNAPSHOT}
links:
- oracle
environment:
RUNDECK_GRAILS_URL: http://localhost:4440
RUNDECK_DATABASE_DRIVER: oracle.jdbc.OracleDriver
RUNDECK_DATABASE_DIALECT: org.rundeck.hibernate.RundeckOracleDialect
RUNDECK_DATABASE_USERNAME: system
RUNDECK_DATABASE_PASSWORD: mypassword123
RUNDECK_DATABASE_URL: jdbc:oracle:thin:@oracle:1521:XE
RUNDECK_DATABASE_VALIDATIONQUERY: SELECT 1 FROM DUAL
volumes:
- ./lib:/home/rundeck/server/lib
- ${RUNDECK_LICENSE_FILE:-/dev/null}:/home/rundeck/etc/rundeckpro-license.key
ports:
- 4440:4440
depends_on:
- oracle
oracle:
image: container-registry.oracle.com/database/express:21.3.0-xe
environment:
ORACLE_PWD: mypassword123
expose:
- 1521
ports:
- 1521:1521
volumes:
- dbdata:/opt/oracle/oradata

volumes:
dbdata:
4 changes: 4 additions & 0 deletions oraclexe/lib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

0 comments on commit f394aad

Please sign in to comment.