forked from chobbs/rundeck-ssl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4adb951
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
######################################################## |