Skip to content

Instantly share code, notes, and snippets.

@andrewn
Last active February 14, 2017 23:01
Show Gist options
  • Save andrewn/21cc51e38fa111cb5bcb2e8090fe8e62 to your computer and use it in GitHub Desktop.
Save andrewn/21cc51e38fa111cb5bcb2e8090fe8e62 to your computer and use it in GitHub Desktop.
$ rdt push --source .
(node:16932) 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
---> Using cache
---> d2547fcb1495
Step 3 : WORKDIR /usr/src/app
---> Using cache
---> 6e0b2054e974
Step 4 : COPY package.json package.json
---> Using cache
---> 9c3791352685
Step 5 : RUN git clone git://git.drogon.net/wiringPi /usr/src/wiringPi && cp /usr/src/wiringPi/wiringPi/*.h /usr/local/include/
---> Running in 6c8b98723bad
Cloning into '/usr/src/wiringPi'...
---> 028c276c4c3c
Removing intermediate container 6c8b98723bad
Step 6 : RUN npm install
---> Running in 5625fc51962a
> [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
install-pigpio.sh: line 50: sudo: not found
[email protected] preinstall: `sh install-pigpio.sh`
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
-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
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
node -v v5.12.0
node-gyp -v v3.3.1
[email protected] install: `node-gyp rebuild`
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
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: Leaving directory '/usr/src/app/node_modules/raspi-gpio/build'
make: *** [addon.target.mk:117: Release/obj.target/addon.node] Error 1
ERR! stack 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)
at emitTwo (events.js:100:13)
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
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-gpio
v5.12.0
v3.3.1
[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
/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:115: Release/obj.target/addon.node] Error 1
make: Leaving directory '/usr/src/app/node_modules/raspi-pwm/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)
gyp ERR! stack at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
Linux 4.1.21
"/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
v3.3.1
WARN install:[email protected] [email protected] install: `node-gyp rebuild`
WARN install:[email protected] Exit status 1
> [email protected] install /usr/src/app/node_modules/serialport
> node-pre-gyp install --fallback-to-build
ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v47-linux-arm.tar.gz
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
sudo: not found
WARN install:[email protected] [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.
npm WARN [email protected] license should be a valid SPDX license expression
---> 64e6ba305d2e
Removing intermediate container 5625fc51962a
Step 7 : COPY . .
---> cf1f84990c36
Removing intermediate container 75a3ca10d0c0
Step 8 : CMD node wait
---> Running in 60d58144df5a
---> b01bad103b41
Removing intermediate container 60d58144df5a
Successfully built b01bad103b41
- Cleaning up previous image of 'resin-johnny-five-example'
- 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