Skip to content

Commit

Permalink
Add ngrok download
Browse files Browse the repository at this point in the history
  • Loading branch information
GHOSCHT committed Apr 28, 2021
1 parent 59534d1 commit 89b9019
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ ADD ./bin /usr/local/bin
RUN chmod a+x /usr/local/bin/*

# Ngrok tunneling
RUN apk --no-cache add curl
RUN apk --no-cache add jq
RUN apk --no-cache add curl jq unzip
RUN curl -o ngrok-compressed.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
RUN unzip ngrok-compressed.zip
RUN chmod +x /ngrok
COPY start.sh /
COPY mailing/* /mailing/
RUN yarn --cwd /mailing
Expand Down
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
./etc/openvpn/ngrok authtoken $AUTHTOKEN
./etc/openvpn/ngrok tcp 1194 > /dev/null &
./ngrok authtoken $AUTHTOKEN
./ngrok tcp 1194 > /dev/null &
sleep 3
export NGROK_URL="$(curl http://localhost:4040/api/tunnels | jq ".tunnels[0].public_url")"
echo --------------------
Expand Down

0 comments on commit 89b9019

Please sign in to comment.