Skip to content

Commit b2a6a3f

Browse files
author
Kristoffer Andersen
committed
updated docker container to use node, fixed node js check in build script
1 parent 22a361d commit b2a6a3f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ RUN export GCC_DIR="$HOME/gcc-arm-none-eabi-4_8-2014q1" && \
44
export GCC_ARCHIVE="$HOME/gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2" && \
55
export GCC_URL="https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update/+download/gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2" && \
66
wget $GCC_URL -O $GCC_ARCHIVE; tar xfvj $GCC_ARCHIVE -C $HOME
7+
RUN apt-get update -qq && apt-get install -y curl && \
8+
curl -sL https://deb.nodesource.com/setup_7.x | bash - && \
9+
apt-get install -y nodejs
710
ENV ARDUINO_URL "https://github.com/getopenmono/arduino_comp.git"
811
ENV MONOPROG_RELEASE 0.9.3
912
ENV MONOPROG_MAC_URL "https://github.com/getopenmono/arduino_comp/releases/download/1.6.1/monoprog0.9.3.tar.bz2"

include_edu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ ! -d $MONO_DIR ]; then
1010
exit 1
1111
fi
1212

13-
if [ ! hash node 2> /dev/null ]; then
13+
if ! hash node 2> /dev/null; then
1414
echo "Node.js does not seem to be installed!"
1515
exit 1
1616
fi

0 commit comments

Comments
 (0)