ce696bad8b
- added memcached container (currently develop branch needed) - put all zammad services in one kubernetes pod to be able to use empty dir volume for tmp - switched to kubernetes deployments - switched to ReadWriteOnce kubernetes volume claims - added init container to elasticsearch & zammad kubernetes deployments - added IMAGE_REPO var for docker compose to .env file - run nginx from zammad container (preparation for stateless updates) - removed docker-compose-build.yml - use private docker repos in compose & kubernetes - change compose volume names
20 lines
583 B
Bash
20 lines
583 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ "$1" = 'zammad-nfs' ]; then
|
|
echo "creating nfs dir"
|
|
|
|
test -d ${NFS_DIR}/data || mkdir -p ${NFS_DIR}/data
|
|
test -d ${NFS_DIR}/uploads || mkdir -p ${NFS_DIR}/uploads
|
|
chmod -R 777 ${NFS_DIR}
|
|
|
|
echo "create nfs exports"
|
|
echo "# NFS Export for Zammad" > /etc/exports
|
|
echo "${NFS_DIR} *(rw,sync,no_subtree_check,fsid=0,no_root_squash)" >> /etc/exports
|
|
echo "${NFS_DIR}/data *(rw,sync,no_subtree_check,no_root_squash)" >> /etc/exports
|
|
echo "${NFS_DIR}/uploads *(rw,sync,no_subtree_check,no_root_squash)" >> /etc/exports
|
|
|
|
exec runsvdir /etc/sv
|
|
fi
|