From 8f483705ee4dbf92d7c61600159014f86b415e97 Mon Sep 17 00:00:00 2001 From: Jim Van Fleet Date: Mon, 17 Oct 2016 17:05:56 -0400 Subject: [PATCH] socat available in haproxy cfg --- haproxy/Dockerfile | 2 ++ tests/haproxy.bats | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/haproxy/Dockerfile b/haproxy/Dockerfile index ab58561..e33097a 100644 --- a/haproxy/Dockerfile +++ b/haproxy/Dockerfile @@ -10,4 +10,6 @@ LABEL ImageType="haproxy" LABEL ImageName=$imagename LABEL ImageOS=centos7 LABEL Version=$version + +RUN apt-get update && apt-get install -y socat copy conf/haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg diff --git a/tests/haproxy.bats b/tests/haproxy.bats index 1ad8ab0..5374922 100644 --- a/tests/haproxy.bats +++ b/tests/haproxy.bats @@ -5,5 +5,5 @@ load ../common # These tests assume the pipeline will start and stop the container. @test "socat process exists" { - docker run -i haproxy which socat + docker exec -i haproxy which socat } \ No newline at end of file