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