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