summaryrefslogtreecommitdiffstats
path: root/aai-common-docker/aai-haproxy-image/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorDmitry Puzikov <dmitry.puzikov@tieto.com>2019-08-15 13:45:56 +0200
committerDmitry Puzikov <dmitry.puzikov@tieto.com>2019-08-15 13:45:56 +0200
commit649585b88b758d5c3e702446385ffe733ceea824 (patch)
tree70c4de510446414ee72e8c6a2e59f9f5b6f0bc7c /aai-common-docker/aai-haproxy-image/src/main/docker/Dockerfile
parentfff2d1af7b401d6334c4b09868597dcc6c054e2b (diff)
Created maven modules for aai-common docker images.
aai-common and aai-haproxy docker images can be build with maven. Change-Id: Iffbc2f4984316e3acc35558bdde0dbea76388ada Issue-ID: INT-1023 Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'aai-common-docker/aai-haproxy-image/src/main/docker/Dockerfile')
-rw-r--r--aai-common-docker/aai-haproxy-image/src/main/docker/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/aai-common-docker/aai-haproxy-image/src/main/docker/Dockerfile b/aai-common-docker/aai-haproxy-image/src/main/docker/Dockerfile
new file mode 100644
index 00000000..7bf9b20a
--- /dev/null
+++ b/aai-common-docker/aai-haproxy-image/src/main/docker/Dockerfile
@@ -0,0 +1,25 @@
+FROM haproxy:1.7-alpine
+
+# Set up your corporate proxy if there is
+ENV HTTP_PROXY ""
+ENV HTTPS_PROXY ""
+ENV http_proxy ""
+ENV https_proxy ""
+
+RUN apk add --no-cache \
+ ca-certificates \
+ curl \
+ openssl
+
+RUN mkdir -p /etc/ssl/certs/ && mkdir -p /etc/ssl/private
+
+COPY aai.pem /etc/ssl/private/aai.pem
+COPY docker-entrypoint.sh /docker-entrypoint.sh
+COPY resolvers.conf /usr/local/etc/haproxy/resolvers.conf
+COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
+
+RUN chmod +x /docker-entrypoint.sh
+
+ENTRYPOINT [ "/docker-entrypoint.sh" ]
+CMD [ "haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg", "-f", "/usr/local/etc/haproxy/resolvers.conf" ]
+EXPOSE 8443