|
|
FROM ubuntu:xenial
|
|
|
# xenial = 16
|
|
|
|
|
|
# Note this image uses mawk
|
|
|
|
|
|
# Update and install required software
|
|
|
RUN apt-get update --fix-missing
|
|
|
RUN apt-get install -y git curl dnsutils ldnsutils wget nginx-light
|
|
|
|
|
|
WORKDIR /root
|
|
|
RUN mkdir -p /etc/nginx/pki/private
|
|
|
COPY ./test/test-config/nginx-ubuntu-no-ssl /etc/nginx/sites-enabled/default
|
|
|
|
|
|
# BATS (Bash Automated Testings)
|
|
|
RUN git clone --depth 1 https://github.com/bats-core/bats-core.git /bats-core --branch v1.2.1
|
|
|
RUN git clone --depth 1 https://github.com/bats-core/bats-support /bats-support
|
|
|
RUN git clone --depth 1 https://github.com/bats-core/bats-assert /bats-assert
|
|
|
RUN /bats-core/install.sh /usr/local
|
|
|
|
|
|
# Run eternal loop - for testing
|
|
|
CMD [ "tail", "-f", "/dev/null" ]
|