generated from coop-cloud/example
feat: experimental local users
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4520d4520f
commit
5d41f7539a
@ -16,6 +16,9 @@ COMPOSE_FILE="compose.yml"
|
||||
# MSSQL driver
|
||||
MSSQL_ENABLED="1"
|
||||
|
||||
# Comment out if you are using keycloak or oidc
|
||||
COMPOSE_FILE="$COMPOSE_FILE:compose.local-users.yml"
|
||||
|
||||
# OpenID Connect (SSO)
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.oidc.yml"
|
||||
#OIDC_ENABLED=1
|
||||
|
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
||||
export CUSTOM_ENTRYPOINT_VERSION=v15
|
||||
export CUSTOM_ENTRYPOINT_VERSION=v16
|
||||
export OIDC_CONF_VERSION=v1
|
||||
export PAM_EXEC_OAUTH2_YAML_VERSION=v1
|
||||
export PAM_SCRIPT_AUTH_VERSION=v7
|
||||
|
@ -6,7 +6,7 @@ services:
|
||||
volumes:
|
||||
- users:/opt/users
|
||||
environment:
|
||||
- LINK_USERS=/opt/users/
|
||||
- COPY_USERS=1
|
||||
|
||||
volumes:
|
||||
users:
|
||||
|
@ -21,6 +21,23 @@ file_env() {
|
||||
unset "$fileVar"
|
||||
}
|
||||
|
||||
{{ if eq (env "COPY_USERS") "1" }}
|
||||
cp /opt/users/passwd /etc/passwd || true
|
||||
cp /opt/users/shadow /etc/shadow || true
|
||||
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
|
||||
sleep 60
|
||||
done
|
||||
}
|
||||
|
||||
copy_users &
|
||||
{{ end }}
|
||||
|
||||
file_env "PASSWORD"
|
||||
|
||||
{{ if eq (env "OIDC_ENABLED") "1" }}
|
||||
|
Loading…
Reference in New Issue
Block a user