Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chobbs committed Oct 4, 2021
0 parents commit 4adb951
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG IMAGE

FROM ${IMAGE}

USER rundeck

COPY --chown=rundeck:root lib docker-lib
RUN chmod +x docker-lib/generate-ssl.sh
RUN ./docker-lib/generate-ssl.sh
13 changes: 13 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3"
services:
rundeck:
build:
context: .
args:
IMAGE: ${RUNDECK_IMAGE:-rundeck/rundeck:3.3.0}
container_name: rundeck-ssl
command: "-Dserver.https.port=4443 -Drundeck.ssl.config=/home/rundeck/server/config/ssl.properties"
ports:
- 4443:4443
environment:
RUNDECK_GRAILS_URL: https://test:4443
13 changes: 13 additions & 0 deletions lib/generate-ssl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

## Adding ssl support ##################################
keytool -keystore etc/keystore \
-alias rundeckssl \
-genkey -keyalg RSA \
-keypass adminadmin \
-storepass adminadmin \
-dname "C=test, S=stgo, OU= rundeck, L=stgo, O=cst, CN=rundeck"

cp etc/keystore etc/truststore

########################################################

0 comments on commit 4adb951

Please sign in to comment.