Compare commits

...

3 Commits

Author SHA1 Message Date
3wc 7c03834602 chore: publish 0.4.0+4.3.2 release
continuous-integration/drone/push Build is passing Details
2024-03-18 11:57:37 -03:00
3wc 81de69d8cb Further improvements to shared local users 2024-03-18 11:57:00 -03:00
3wc cfe7947f94 Allow shared local users 2024-03-18 11:35:26 -03:00
5 changed files with 27 additions and 5 deletions

View File

@ -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"

View File

@ -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

View File

@ -0,0 +1,7 @@
---
version: "3.8"
volumes:
users:
external: true
name: ${LOCAL_USERS_VOLUME}

View File

@ -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

View File

@ -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
}