Add EditorConfig and Codenvy Factory with a badge.

This commit is contained in:
Werner Beroux 2016-06-28 14:58:56 +00:00
parent d35a8cef17
commit 1a61d46207
4 changed files with 22 additions and 1 deletions

7
.codenvy.dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM codenvy/ubuntu_jdk8
# Install Ngrok
ADD https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip /ngrok.zip
RUN set -x \
&& unzip -o ngrok.zip -d /bin \
&& rm -f /ngrok.zip

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
# top-most EditorConfig file
root = true
[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{sh}]
indent_size = 4

View File

@ -1,3 +1,5 @@
[![Codenvy badge](http://beta.codenvy.com/factory/resources/codenvy-contribute.svg)](http://beta.codenvy.com/f?url=https://github.com/wernight/docker-ngrok 'Start development on Codenvy')
A [Docker][docker] image for [ngrok][ngrok] v2, introspected tunnels to localhost. A [Docker][docker] image for [ngrok][ngrok] v2, introspected tunnels to localhost.
It's based on the excellent work of [wizardapps/ngrok][wizardapps/ngrok] and [fnichol/ngrok][fnichol/ngrok]. It's based on the excellent work of [wizardapps/ngrok][wizardapps/ngrok] and [fnichol/ngrok][fnichol/ngrok].

View File

@ -26,7 +26,7 @@ elif [ -n "$NGROK_SUBDOMAIN" ] && [ -n "$NGROK_AUTH" ]; then
ARGS="$ARGS -subdomain=$NGROK_SUBDOMAIN " ARGS="$ARGS -subdomain=$NGROK_SUBDOMAIN "
elif [ -n "$NGROK_HOSTNAME" ] || [ -n "$NGROK_SUBDOMAIN" ]; then elif [ -n "$NGROK_HOSTNAME" ] || [ -n "$NGROK_SUBDOMAIN" ]; then
if [ -z "$NGROK_AUTH" ]; then if [ -z "$NGROK_AUTH" ]; then
echo "You must specify an authentication token after registering at https://ngrok.com to use custom domains." echo "You must specify an authentication token after registering at https://ngrok.com to use custom domains."
exit 1 exit 1
fi fi
fi fi