Adds Autotest.

This commit is contained in:
Werner Beroux 2020-07-29 20:37:52 +02:00
parent 8336201409
commit c32a1512f2
3 changed files with 9 additions and 1 deletions

View File

@ -22,7 +22,6 @@ RUN set -x \
&& rm -f /ngrok.zip \
# Create non-root user.
&& adduser -h /home/ngrok -D -u 6737 ngrok
RUN ngrok --version
# Add config script.
COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/
@ -31,6 +30,9 @@ COPY entrypoint.sh /
USER ngrok
ENV USER=ngrok
# Basic sanity check.
RUN ngrok --version
EXPOSE 4040
CMD ["/entrypoint.sh"]

View File

@ -15,6 +15,9 @@ RUN set -x \
COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/
COPY entrypoint.sh /
# Basic sanity check.
RUN su ngrok -c 'ngrok --version'
RUN [ "cross-build-end" ]
USER ngrok

3
docker-compose.test.yml Normal file
View File

@ -0,0 +1,3 @@
sut:
build: .
command: sh -c '(ngrok http 8080 &) && sleep 5 && curl --connect-timeout 5 --silent --show-error --fail http://localhost:4040'