generated from coop-cloud/example
Compare commits
3 Commits
5d41f7539a
...
7c03834602
Author | SHA1 | Date |
---|---|---|
3wc | 7c03834602 | |
3wc | 81de69d8cb | |
3wc | cfe7947f94 |
|
@ -18,6 +18,9 @@ MSSQL_ENABLED="1"
|
|||
|
||||
# Comment out if you are using keycloak or oidc
|
||||
COMPOSE_FILE="$COMPOSE_FILE:compose.local-users.yml"
|
||||
# Share the local user database with other instances
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.local-users-shared.yml"
|
||||
#LOCAL_USERS_VOLUME=rstudio_example_com_users
|
||||
|
||||
# OpenID Connect (SSO)
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.oidc.yml"
|
||||
|
|
2
abra.sh
2
abra.sh
|
@ -1,4 +1,4 @@
|
|||
export CUSTOM_ENTRYPOINT_VERSION=v16
|
||||
export CUSTOM_ENTRYPOINT_VERSION=v17
|
||||
export OIDC_CONF_VERSION=v1
|
||||
export PAM_EXEC_OAUTH2_YAML_VERSION=v1
|
||||
export PAM_SCRIPT_AUTH_VERSION=v7
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
volumes:
|
||||
users:
|
||||
external: true
|
||||
name: ${LOCAL_USERS_VOLUME}
|
|
@ -29,7 +29,7 @@ services:
|
|||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.3.0+4.3.2"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.4.0+4.3.2"
|
||||
entrypoint: /docker-entrypoint.sh
|
||||
command: /init
|
||||
|
||||
|
|
|
@ -28,9 +28,21 @@ cp /opt/users/group /etc/group || true
|
|||
|
||||
copy_users() {
|
||||
while true; do
|
||||
cp /etc/passwd /opt/users/passwd
|
||||
cp /etc/shadow /opt/users/shadow
|
||||
cp /etc/group /opt/users/group
|
||||
if [ /etc/passwd -nt /opt/users/passwd ]; then
|
||||
cp -uv /etc/passwd /opt/users/passwd
|
||||
else
|
||||
cp -uv /opt/users/passwd /etc/passwd
|
||||
fi
|
||||
if [ /etc/shadow -nt /opt/users/shadow ]; then
|
||||
cp -uv /etc/shadow /opt/users/shadow
|
||||
else
|
||||
cp -uv /opt/users/shadow /etc/shadow
|
||||
fi
|
||||
if [ /etc/group -nt /opt/users/group ]; then
|
||||
cp -uv /etc/group /opt/users/group
|
||||
else
|
||||
cp -uv /opt/users/group /etc/group
|
||||
fi
|
||||
sleep 60
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue