This project implements conversion of IANA tzdata into iCalendar VTIMEZONE objects
C Perl Makefile Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
orchestration
.gitignore
.travis.yml
ChangeLog
Dockerfile
LICENSE
Makefile
README.md
README.vzic
awstats.conf
build.sh
deploy_rsa.enc
generate-htaccess-alias.sh
generate-zoneinfo-global.sh
generate-zoneinfo.sh
htaccess.tzurl
httpd.conf
index.html
sync.sh
test-vzic.c
upload-global.sh
upload.sh
vzic-dump.c
vzic-dump.h
vzic-dump.pl
vzic-merge.pl
vzic-output.c
vzic-output.h
vzic-parse.c
vzic-parse.h
vzic-test.pl
vzic.c
vzic.h

README.md

tzurl - zoneinfo in VTIMEZONE format

This project is a fork of the vzic project, which implements conversion of Olson tzdata into iCalendar VTIMEZONE objects.

The original vzic readme is available here. Ultimately the conversion code is largely unchanged. This project adds the capability to serve the VTIMEZONE objects from an Apache web server.

Build

Docker

docker build --tag tzurl .

Running in Docker

A Docker image has been created from this project and can be run as follows:

docker run --rm -it -p 80:80 benfortuna/tzurl

HAProxy

A docker-compose configuration is provided that will run Apache HTTPD behind an HAProxy load balancer. This allows for scaling multiple Apache instances, etc. Examples follow.

$ docker-compose build && docker-compose up # run a single httpd instance behind haproxy

$ docker-compose scale tzurl=2 && docker-compose up # run two httpd instance load-balanced

Syslog

RSyslog is supported in HAProxy. Examples below.

$ docker-compose run -d -e RSYSLOG_DESTINATION=<syslog_host:port> haproxy && docker-compose up

$ docker-compose scale tzurl=2 && docker-compose run --service-ports -d -e RSYSLOG_DESTINATION=<syslog_host:port> haproxy

AWStats