test
This commit is contained in:
parent
79d83d003e
commit
a1620c84da
@ -3,6 +3,9 @@ FROM resin/raspberrypi-buildpack-deps
|
||||
# Enable systemd, as Resin requires this
|
||||
ENV INITSYSTEM on
|
||||
|
||||
# Another approach to blowing away the cache
|
||||
RUN date >/var/tmp/image_build.log
|
||||
|
||||
# Version number of gateway software.
|
||||
# (Incrementing this simply forces Docker to flush its cache
|
||||
# and thus forces a full rebuild. Not used outside of Dockerfile.)
|
||||
|
11
run.sh
11
run.sh
@ -1,8 +1,5 @@
|
||||
#! /bin/bash
|
||||
|
||||
echo "**** exiting ***"
|
||||
exit 1
|
||||
|
||||
# Ensure that we've got the required env vars
|
||||
|
||||
echo "*******************"
|
||||
@ -11,37 +8,32 @@ echo "*******************"
|
||||
|
||||
if [[ $GW_REGION == "" ]]; then
|
||||
echo "ERROR: GW_REGION required"
|
||||
while true; do sleep 10; done
|
||||
exit 1
|
||||
fi
|
||||
echo GW_REGION: $GW_REGION
|
||||
|
||||
if [[ $GW_DESCRIPTION == "" ]]; then
|
||||
echo "ERROR: GW_DESCRIPTION required"
|
||||
while true; do sleep 10; done # don't exit in resin
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $GW_CONTACT_EMAIL == "" ]]; then
|
||||
echo "ERROR: GW_CONTACT_EMAIL required"
|
||||
while true; do sleep 10; done # don't exit in resin
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $GW_REF_LATITUDE == "" ]]; then
|
||||
echo "ERROR: GW_REF_LATITUDE required"
|
||||
while true; do sleep 10; done # don't exit in resin
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $GW_REF_LONGITUDE == "" ]]; then
|
||||
echo "ERROR: GW_REF_LONGITUDE required"
|
||||
while true; do sleep 10; done # don't exit in resin
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $GW_REF_ALTITUDE == "" ]]; then
|
||||
echo "ERROR: GW_REF_ALTITUDE required"
|
||||
while true; do sleep 10; done # don't exit in resin
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -57,7 +49,6 @@ else
|
||||
echo "******************"
|
||||
echo "ERROR: GW_REGION not found"
|
||||
echo "******************"
|
||||
while true; do sleep 10; done # don't exit in resin
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user