mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-09 18:06:22 +00:00
Adding Dockerfiles for supporting services.
Updating keycloak container to be able to add SSL cert
This commit is contained in:
parent
3cd36724c9
commit
59bd22567e
5 changed files with 41 additions and 5 deletions
19
develop/keycloak/Dockerfile
Normal file
19
develop/keycloak/Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM jboss/keycloak
|
||||
|
||||
USER root
|
||||
|
||||
# Install sudo and utils to configure jboss user
|
||||
RUN microdnf update -y && \
|
||||
microdnf install -y sudo shadow-utils passwd && \
|
||||
microdnf clean all
|
||||
|
||||
# 'Fix' jboss user, add to sudoers
|
||||
RUN usermod --password jboss jboss && \
|
||||
usermod -aG wheel jboss && \
|
||||
sed -i 's/# includedir/includedir/' /etc/sudoers && \
|
||||
echo "jboss ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/jboss
|
||||
|
||||
ADD ./add-to-truststore.sh /opt/jboss/startup-scripts/add-to-truststore.sh
|
||||
RUN chmod +x /opt/jboss/startup-scripts/add-to-truststore.sh
|
||||
|
||||
USER jboss
|
10
develop/keycloak/add-to-truststore.sh
Normal file
10
develop/keycloak/add-to-truststore.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
CACERTS=$(readlink -e $(dirname $(readlink -e $(which keytool)))"/../lib/security/cacerts")
|
||||
|
||||
sudo keytool \
|
||||
-import -trustcacerts \
|
||||
-alias "dev.local.crt" -file /tmp/dev.local.crt \
|
||||
-keystore ${CACERTS} \
|
||||
-storepass changeit \
|
||||
-noprompt
|
3
develop/proxy/Dockerfile
Normal file
3
develop/proxy/Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM nginx
|
||||
|
||||
ADD ./develop/proxy/proxy_ssl.conf /etc/nginx/conf.d/proxy_ssl.conf
|
|
@ -6,6 +6,11 @@
|
|||
# volumes:
|
||||
# - "<your-certs>/dev.local.crt:/tmp/dev.local.crt"
|
||||
# - "<your-certs>/dev.local.key:/tmp/dev.local.key"
|
||||
#
|
||||
# keycloak:
|
||||
# volumes:
|
||||
# - "<your-certs>/dev.local.crt:/tmp/dev.local.crt"
|
||||
#
|
||||
# steamidp:
|
||||
# environment:
|
||||
# Steam__ApplicationKey: <your-app-key>
|
||||
|
@ -19,10 +24,9 @@ volumes:
|
|||
|
||||
services:
|
||||
proxy:
|
||||
image: nginx
|
||||
image: neothor/proxy:develop
|
||||
build: ./develop/proxy
|
||||
container_name: proxy
|
||||
volumes:
|
||||
- "./proxy_ssl.conf:/etc/nginx/conf.d/proxy_ssl.conf"
|
||||
ports:
|
||||
- 443:443
|
||||
links:
|
||||
|
@ -40,7 +44,8 @@ services:
|
|||
POSTGRES_PASSWORD: password
|
||||
|
||||
keycloak:
|
||||
image: jboss/keycloak
|
||||
image: neothor/keycloak:develop
|
||||
build: ./develop/keycloak
|
||||
container_name: keycloak
|
||||
environment:
|
||||
DB_VENDOR: POSTGRES
|
||||
|
@ -56,7 +61,6 @@ services:
|
|||
- postgres
|
||||
extra_hosts:
|
||||
- "dev.local:host-gateway"
|
||||
|
||||
|
||||
steamidp:
|
||||
image: neothor/steam-openid-connect-provider:develop
|
||||
|
|
Loading…
Reference in a new issue