https://github.com/clarin-eric/virtual_alpine-haproxy
HAproxy TLS terminating load-balancer and HTTP proxy
https://github.com/clarin-eric/virtual_alpine-haproxy
Last synced: 5 months ago
JSON representation
HAproxy TLS terminating load-balancer and HTTP proxy
- Host: GitHub
- URL: https://github.com/clarin-eric/virtual_alpine-haproxy
- Owner: clarin-eric
- Created: 2015-10-01T12:59:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-02T16:38:28.000Z (over 10 years ago)
- Last Synced: 2025-09-10T03:14:44.784Z (9 months ago)
- Language: Shell
- Size: 125 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
This virtualized service provides a HAProxy HTTP frontend for the https://github.com/clarin-eric/virtual_centre_registry[CLARIN Centre Registry]. The dependencies and other resources are under link:resources/[`resources/`].
== Requirements
* https://packer.io[Packer].
* https://www.docker.com/[Docker].
=== Suggested requirements
* The `readlink` command-line utility, offered by http://www.gnu.org/software/coreutils/coreutils.html[GNU coreutils].
* https://www.sudo.ws/[`sudo`].
== To build
* Follow this https://github.com/sanmai-NL/guide_on_submodules[brief guide on submodules] to learn how to manage dependency submodules, if you do not know it already. Complete https://github.com/sanmai-NL/recursive_packer_build/blob/master/Project_dependencies_as_Git_submodules.adoc#getting-started-with-a-git-repository-that-has-submodules[the recursive clone] or submodule initialization of this repository.
* Complete a https://github.com/sanmai-NL/recursive_packer_build#to-use[recursive Packer build].
== To configure
[source,Sh]
----
docker create \
--entrypoint='/bin/sh' \
--link='centre_registry-latest.release.staging:centre_registry' \
--name='centre_registry_haproxy_frontend-latest' \
--publish='443:443' \
--tty='true' \
--volume='/dev/log:/dev/log' \
--volume='/root/certstore/:/root/certstore/:ro' \
--volume="$(readlink -f 'resources/etc/haproxy/'):/etc/haproxy/" \
'docker.clarin.eu/alpine-haproxy:latest' \
-c "haproxy -f '/etc/haproxy/haproxy.cfg'"
----
== To run
[source,Sh]
----
docker start 'centre_registry_haproxy_frontend-latest'
----