Skip to content

Instantly share code, notes, and snippets.

@andrewn
Last active February 14, 2017 23:01
Show Gist options
  • Save andrewn/1b38d7bc31164206b00cf73d1309b966 to your computer and use it in GitHub Desktop.
Save andrewn/1b38d7bc31164206b00cf73d1309b966 to your computer and use it in GitHub Desktop.
andrew at andrewn-mbp in ~/Projects/resinos/johnny-five-example on alpine▲
$ rdt push --source .
(node:22168) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
Reporting discovered devices
? select a device resin.local (192.168.178.45)
* Building..
- Stopping and Removing any previous 'resin-johnny-five-example' container
- Building new 'resin-johnny-five-example' image
Step 1 : FROM resin/raspberrypi2-alpine-node:5-edge
---> d174973cdbb3
Step 2 : RUN apk add --no-cache wiringpi
---> Running in 120fcb0a9131
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/armhf/APKINDEX.tar.gz
(1/1) Installing wiringpi (2.32-r0)
Executing busybox-1.26.1-r3.trigger
OK: 381 MiB in 154 packages
---> 1ddf648413e2
Removing intermediate container 120fcb0a9131
Step 3 : WORKDIR /usr/src/app
---> Running in dda3c32b4f65
---> 25ea9c6c489b
Removing intermediate container dda3c32b4f65
Step 4 : COPY package.json package.json
---> 455307b51a15
Removing intermediate container d4a824aa4d4b
Step 5 : RUN git clone git://git.drogon.net/wiringPi /usr/src/wiringPi && cp /usr/src/wiringPi/wiringPi/*.h /usr/local/include/
---> Running in 2301f508db26
Cloning into '/usr/src/wiringPi'...
---> 5c147ded2286
Removing intermediate container 2301f508db26
Step 6 : RUN npm install
---> Running in fcdcf45bd5d0
> [email protected] preinstall /usr/src/app/node_modules/.staging/raspi-soft-pwm-2ea8175e
> sh install-pigpio.sh
\nDownloading pigpio...\n
Cloning into 'pigpio'...
\nBuilding pigpio. You may be asked for your root password.\n
gcc -O3 -Wall -pthread -fpic -c -o pigpio.o pigpio.c
pigpio.c: In function 'fileApprove':
pigpio.c:12682:15: warning: 'mperm' may be used uninitialized in this function [-Wmaybe-uninitialized]
switch (toupper(mperm))
^~~~~~~~~~~~~~
gcc -O3 -Wall -pthread -fpic -c -o command.o command.c
gcc -shared -o libpigpio.so pigpio.o command.o
strip --strip-unneeded libpigpio.so
size libpigpio.so
text data bss dec hex filename
239545 5340 596552 841437 cd6dd libpigpio.so
gcc -O3 -Wall -pthread -fpic -c -o pigpiod_if.o pigpiod_if.c
gcc -shared -o libpigpiod_if.so pigpiod_if.o command.o
strip --strip-unneeded libpigpiod_if.so
size libpigpiod_if.so
text data bss dec hex filename
63061 4308 49268 116637 1c79d libpigpiod_if.so
gcc -O3 -Wall -pthread -fpic -c -o pigpiod_if2.o pigpiod_if2.c
gcc -shared -o libpigpiod_if2.so pigpiod_if2.o command.o
strip --strip-unneeded libpigpiod_if2.so
size libpigpiod_if2.so
text data bss dec hex filename
76888 4312 2008 83208 14508 libpigpiod_if2.so
gcc -O3 -Wall -pthread -c -o x_pigpio.o x_pigpio.c
gcc -o x_pigpio x_pigpio.o -L. -lpigpio -pthread -lrt
gcc -O3 -Wall -pthread -c -o x_pigpiod_if.o x_pigpiod_if.c
gcc -o x_pigpiod_if x_pigpiod_if.o -L. -lpigpiod_if -pthread -lrt
gcc -O3 -Wall -pthread -c -o x_pigpiod_if2.o x_pigpiod_if2.c
gcc -o x_pigpiod_if2 x_pigpiod_if2.o -L. -lpigpiod_if2 -pthread -lrt
gcc -O3 -Wall -pthread -c -o pig2vcd.o pig2vcd.c
gcc -o pig2vcd pig2vcd.o
strip pig2vcd
gcc -O3 -Wall -pthread -c -o pigpiod.o pigpiod.c
gcc -o pigpiod pigpiod.o -L. -lpigpio -pthread -lrt
strip pigpiod
gcc -O3 -Wall -pthread -c -o pigs.o pigs.c
gcc -o pigs pigs.o command.o
strip pigs
Could not install pigpio\n
[email protected] preinstall: `sh install-pigpio.sh`
npm WARN install:[email protected] Exit status 1
> [email protected] install /usr/src/app/node_modules/i2c-bus
> node-gyp rebuild
make: Entering directory '/usr/src/app/node_modules/i2c-bus/build'
CXX(target) Release/obj.target/i2c/src/i2c.o
SOLINK_MODULE(target) Release/obj.target/i2c.node
COPY Release/i2c.node
make: Leaving directory '/usr/src/app/node_modules/i2c-bus/build'
> [email protected] install /usr/src/app/node_modules/raspi
> node-gyp rebuild
make: Entering directory '/usr/src/app/node_modules/raspi/build'
CXX(target) Release/obj.target/addon/src-native/addon.o
CXX(target) Release/obj.target/addon/src-native/init.o
SOLINK_MODULE(target) Release/obj.target/addon.node
/usr/lib/gcc/armv6-alpine-linux-muslgnueabihf/6.3.0/../../../../armv6-alpine-linux-muslgnueabihf/bin/ld: cannot find -lwiringPi
collect2: error: ld returned 1 exit status
make: *** [addon.target.mk:114: Release/obj.target/addon.node] Error 1
make: Leaving directory '/usr/src/app/node_modules/raspi/build'
Error: `make` failed with exit code: 2
at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
Linux 4.1.21
ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/src/app/node_modules/raspi
gyp ERR! node -v v5.12.0
gyp ERR! node-gyp -v v3.3.1
ERR! not ok
[email protected] install: `node-gyp rebuild`
install:[email protected] Exit status 1
> [email protected] install /usr/src/app/node_modules/raspi-gpio
> node-gyp rebuild
make: Entering directory '/usr/src/app/node_modules/raspi-gpio/build'
CXX(target) Release/obj.target/addon/src-native/addon.o
CXX(target) Release/obj.target/addon/src-native/init.o
CXX(target) Release/obj.target/addon/src-native/listener.o
CXX(target) Release/obj.target/addon/src-native/write.o
CXX(target) Release/obj.target/addon/src-native/read.o
SOLINK_MODULE(target) Release/obj.target/addon.node
/gcc/armv6-alpine-linux-muslgnueabihf/6.3.0/../../../../armv6-alpine-linux-muslgnueabihf/bin/ld: cannot find -lwiringPi
make: Leaving directory '/usr/src/app/node_modules/raspi-gpio/build'
collect2: error: ld returned 1 exit status
make: *** [addon.target.mk:117: Release/obj.target/addon.node] Error 1
ERR! stack Error: `make` failed with exit code: 2
at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
Linux 4.1.21
command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
cwd /usr/src/app/node_modules/raspi-gpio
gyp ERR! node -v v5.12.0
node-gyp -v v3.3.1
not ok
WARN install:[email protected] [email protected] install: `node-gyp rebuild`
Exit status 1
> [email protected] install /usr/src/app/node_modules/raspi-pwm
> node-gyp rebuild
make: Entering directory '/usr/src/app/node_modules/raspi-pwm/build'
CXX(target) Release/obj.target/addon/src-native/addon.o
CXX(target) Release/obj.target/addon/src-native/init.o
CXX(target) Release/obj.target/addon/src-native/write.o
SOLINK_MODULE(target) Release/obj.target/addon.node
cannot find -lwiringPi
collect2: error: ld returned 1 exit status
make: Leaving directory '/usr/src/app/node_modules/raspi-pwm/build'
make: *** [addon.target.mk:115: Release/obj.target/addon.node] Error 1
build error
Error: `make` failed with exit code: 2
stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
stack at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
Linux 4.1.21
ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
/usr/src/app/node_modules/raspi-pwm
v5.12.0
node-gyp -v v3.3.1
ERR! not ok
[email protected] install: `node-gyp rebuild`
Exit status 1
> [email protected] install /usr/src/app/node_modules/serialport
> node-pre-gyp install --fallback-to-build
Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v47-l
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v47 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/usr/src/app/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
CXX(target) Release/obj.target/serialport/src/serialport_poller.o
SOLINK_MODULE(target) Release/obj.target/serialport.node
COPY Release/serialport.node
make: Leaving directory '/usr/src/app/node_modules/serialport/build'
> [email protected] postinstall /usr/src/app/node_modules/raspi-i2c
> echo "Enabling I2C at boot time, you may be asked for your password" && sudo env "PATH=$PATH" script/enable_i2c.js
Enabling I2C at boot time, you may be asked for your password
sh: sudo: not found
[email protected] postinstall: `echo "Enabling I2C at boot time, you may be asked for your password" && sudo env "PATH=$PATH" script/enable_i2c.js`
spawn ENOENT
> [email protected] postinstall /usr/src/app/node_modules/raspi-serial
> echo "Disabling serial port login at boot time, you may be asked for your password" && sudo env "PATH=$PATH" script/enable_serial.js
Disabling serial port login at boot time, you may be asked for your password
sh: sudo: not found
[email protected] postinstall: `echo "Disabling serial port login at boot time, you may be asked for your password" && sudo env "PATH=$PATH" script/enable_serial.js`
npm WARN install:[email protected] spawn ENOENT
[email protected] /usr/src/app
+-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | | +-- [email protected]
| | | | | | `-- [email protected]
| | | | | | `-- [email protected]
| | | | | +-- [email protected]
| | | | | | `-- [email protected]
| | | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | | +-- [email protected]
| | | | | | +-- [email protected]
| | | | | | +-- [email protected]
| | | | | | | `-- [email protected]
| | | | | | +-- [email protected]
| | | | | | | `-- [email protected]
| | | | | | `-- [email protected]
| | | | | +-- [email protected]
| | | | | | +-- [email protected]
| | | | | | +-- [email protected]
| | | | | | | `-- [email protected]
| | | | | | +-- [email protected]
| | | | | | `-- [email protected]
| | | | | `-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | | +-- [email protected]
| | | | | | +-- [email protected]
| | | | | | `-- [email protected]
| | | | | `-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | | `-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected] extraneous
`-- [email protected] extraneous
[email protected] No description
[email protected] No repository field.
[email protected] license should be a valid SPDX license expression
---> b5a429f43039
Removing intermediate container fcdcf45bd5d0
Step 7 : COPY . .
---> 4e75c2f71e6b
Removing intermediate container 316c5498b8c3
Step 8 : CMD node wait
---> Running in 467cd0d7b197
---> 30b52542f34f
Removing intermediate container 467cd0d7b197
Successfully built 30b52542f34f
- Creating 'resin-johnny-five-example' container
- Starting 'resin-johnny-five-example' container
rdt push completed successfully!
* Streaming application logs..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment