Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

mugful/centos-davical

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

centos-davical

A DAViCal image built on top of CentOS 7.

Pull

Either pull from Quay.io:

docker pull quay.io/mugful/centos-davical:master

Or build your own:

git clone https://github.com/mugful/centos-davical
cd centos-davical
docker build --force-rm -t mugful/centos-davical:master .

Run

The centos-davical image is stateless, you won't need any volumes exported. However, DAViCal saves its state in a Postgres database, so you'll need to link the DAViCal container to a Postgres one.

The database and accounts need to be created before starting the DAViCal container. If you're running mugful's centos-postgres, you can create them like so:

# assuming the container name is 'postgres'
docker exec -t -i -u postgres postgres createuser davical_dba
docker exec -t -i -u postgres postgres createuser davical_app
docker exec -t -i -u postgres postgres createdb -O davical_dba davical
# use custom passwords :)
docker exec -t -i -u postgres postgres psql -c "ALTER USER davical_dba WITH PASSWORD 'dba_password';"
docker exec -t -i -u postgres postgres psql -c "ALTER USER davical_app WITH PASSWORD 'app_password';"

Also don't forget to allow password auth in pg_hba.conf of your Postgres, as its disabled by default in centos-postgres. See the readme of centos-postgres for more info.

At this point the responsibility for the rest of the DB initialization can be passed onto the DAViCal container. Just make sure to link it to the Postgres container and give it the DB passwords created earlier, and provide one more password for the DAViCal admin user which will be created (= web UI admin password, not DB admin password):

docker run \
    --name davical \
    --link postgres \
    -e DAVICAL_DB_PASSWORD='app_password' \
    -e DAVICAL_DBA_PASSWORD='dba_password' \
    -e DAVICAL_ADMIN_PASSWORD='admin_password' \
    -p 8080:80 \
    quay.io/mugful/centos-davical:master

If you want to ensure that DAViCal's configuration is regenerated each time the container starts (e.g. to adapt for a potentially changing IP address of the PostgreSQL container), provide also this environment variable:

    -e DAVICAL_RECREATE_CONFIG_ON_RESTART=true \

About

Davical container image based on CentOS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published