|
|
FROM alpine:latest
|
|
|
|
|
|
# Note this image uses busybox awk instead of gawk
|
|
|
|
|
|
RUN apk --no-cache add supervisor openssl git curl bind-tools drill wget nginx bash
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
# Create nginx directories in standard places
|
|
|
RUN mkdir /run/nginx
|
|
|
RUN mkdir /etc/nginx/pki
|
|
|
RUN mkdir /etc/nginx/pki/private
|
|
|
|
|
|
# BATS (Bash Automated Testings)
|
|
|
RUN git clone https://github.com/bats-core/bats-core.git /bats-core --branch v1.2.1
|
|
|
RUN git clone https://github.com/bats-core/bats-support /bats-support
|
|
|
RUN git clone https://github.com/bats-core/bats-assert /bats-assert
|
|
|
RUN /bats-core/install.sh /usr/local
|
|
|
|
|
|
# Use supervisord to run nginx in the background
|
|
|
COPY ./test/test-config/alpine-supervisord.conf /etc/supervisord.conf
|
|
|
CMD tail -f /dev/null
|