first commit
This commit is contained in:
6
misc/images/app/app-docker/Dockerfile
Normal file
6
misc/images/app/app-docker/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
ARG PHP_PKG_VERSION="8.1.20-r0"
|
||||
ARG ADDITIONAL_PACKAGES="php81-pdo=${PHP_PKG_VERSION} \
|
||||
php81-pdo_pgsql=${PHP_PKG_VERSION} \
|
||||
php81-ldap=${PHP_PKG_VERSION}"
|
||||
|
||||
FROM reg.cadoles.com/cadoles/symfony:alpine-php-8.1-standalone
|
5
misc/images/app/app-kube/Dockerfile
Normal file
5
misc/images/app/app-kube/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
ARG PHP_PKG_VERSION="8.1.20-r0"
|
||||
ARG ADDITIONAL_PACKAGES="php81-pdo=${PHP_PKG_VERSION} \
|
||||
php81-pdo_pgsql=${PHP_PKG_VERSION}"
|
||||
|
||||
FROM reg.cadoles.com/cadoles/symfony:alpine-php-8.1-base
|
19
misc/images/hydra/clients.d/authtest.json
Normal file
19
misc/images/hydra/clients.d/authtest.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"client_id": "nuosso",
|
||||
"client_name": "NuoSSO",
|
||||
"client_secret": "changeme",
|
||||
"grant_types": [
|
||||
"authorization_code",
|
||||
"refresh_token"
|
||||
],
|
||||
"jwks": {},
|
||||
"metadata": {},
|
||||
"token_endpoint_auth_method": "client_secret_post",
|
||||
"post_logout_redirect_uris": ["http://127.0.0.1:8080"],
|
||||
"redirect_uris": ["http://127.0.0.1:8080/oauth2/callback"],
|
||||
"response_types": [
|
||||
"code"
|
||||
],
|
||||
"logo_uri": "http://127.0.0.1:8080/images/logo.png",
|
||||
"scope": "openid"
|
||||
}
|
22
misc/images/postgres/init-user-db.sh
Executable file
22
misc/images/postgres/init-user-db.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
function create_user_and_database() {
|
||||
local database=$1
|
||||
echo " Creating user and database '$database'"
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
|
||||
CREATE USER $database;
|
||||
CREATE DATABASE $database;
|
||||
GRANT ALL PRIVILEGES ON DATABASE $database TO $database;
|
||||
EOSQL
|
||||
}
|
||||
|
||||
if [ -n "$POSTGRES_MULTIPLE_DATABASES" ]; then
|
||||
echo "Multiple database creation requested: $POSTGRES_MULTIPLE_DATABASES"
|
||||
for db in $(echo $POSTGRES_MULTIPLE_DATABASES | tr ',' ' '); do
|
||||
create_user_and_database $db
|
||||
done
|
||||
echo "Multiple databases created"
|
||||
fi
|
19
misc/images/redis-sentinel/Dockerfile
Normal file
19
misc/images/redis-sentinel/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM redis:6-alpine
|
||||
|
||||
ENV SENTINEL_QUORUM 2
|
||||
ENV SENTINEL_DOWN_AFTER 1000
|
||||
ENV SENTINEL_FAILOVER 1000
|
||||
|
||||
RUN mkdir -p /redis
|
||||
|
||||
WORKDIR /redis
|
||||
|
||||
COPY sentinel.conf .
|
||||
COPY sentinel-entrypoint.sh /usr/local/bin/
|
||||
|
||||
RUN chown redis:redis /redis/* && \
|
||||
chmod +x /usr/local/bin/sentinel-entrypoint.sh
|
||||
|
||||
EXPOSE 26379
|
||||
|
||||
ENTRYPOINT ["sentinel-entrypoint.sh"]
|
7
misc/images/redis-sentinel/sentinel-entrypoint.sh
Normal file
7
misc/images/redis-sentinel/sentinel-entrypoint.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i "s/\$SENTINEL_QUORUM/$SENTINEL_QUORUM/g" /redis/sentinel.conf
|
||||
sed -i "s/\$SENTINEL_DOWN_AFTER/$SENTINEL_DOWN_AFTER/g" /redis/sentinel.conf
|
||||
sed -i "s/\$SENTINEL_FAILOVER/$SENTINEL_FAILOVER/g" /redis/sentinel.conf
|
||||
|
||||
redis-server /redis/sentinel.conf --sentinel
|
9
misc/images/redis-sentinel/sentinel.conf
Normal file
9
misc/images/redis-sentinel/sentinel.conf
Normal file
@ -0,0 +1,9 @@
|
||||
port 26379
|
||||
|
||||
dir /tmp
|
||||
|
||||
sentinel resolve-hostnames yes
|
||||
sentinel monitor redismaster redis-master 6379 $SENTINEL_QUORUM
|
||||
sentinel down-after-milliseconds redismaster $SENTINEL_DOWN_AFTER
|
||||
sentinel parallel-syncs redismaster 1
|
||||
sentinel failover-timeout redismaster $SENTINEL_FAILOVER
|
2
misc/images/redis/redis-master.conf
Normal file
2
misc/images/redis/redis-master.conf
Normal file
@ -0,0 +1,2 @@
|
||||
port 6379
|
||||
requirepass changeme
|
3
misc/images/redis/redis-slave.conf
Normal file
3
misc/images/redis/redis-slave.conf
Normal file
@ -0,0 +1,3 @@
|
||||
port 6380
|
||||
slaveof redis-master 6379
|
||||
masterauth changeme
|
4
misc/images/redis/sentinel.conf
Normal file
4
misc/images/redis/sentinel.conf
Normal file
@ -0,0 +1,4 @@
|
||||
port 26379
|
||||
sentinel monitor mymaster redis-master 6379 2
|
||||
sentinel down-after-milliseconds mymaster 5000
|
||||
sentinel failover-timeout mymaster 10000
|
Reference in New Issue
Block a user