Adds Autotest.
This commit is contained in:
parent
8336201409
commit
c32a1512f2
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
Loading…
Reference in New Issue