Skip to content

Instantly share code, notes, and snippets.

@alexiri
Created November 26, 2016 11:25
Show Gist options
  • Save alexiri/41462a341d6eddcc1807e593b8df68ce to your computer and use it in GitHub Desktop.
Save alexiri/41462a341d6eddcc1807e593b8df68ce to your computer and use it in GitHub Desktop.
Trying to build an Alpine-based docker container for ResinOS
~/resin/resin-electronjs (master) > rdt push resin -p -s .
* Building..
- Stopping and Removing any previous 'electronjs' container
- Building new 'electronjs' image
Step 1 : FROM resin/raspberrypi-alpine-node:slim
slim: Pulling from resin/raspberrypi-alpine-node
441134fbd8aa: Pull complete
2346c1376a21: Pull complete
5121a1b51c82: Pull complete
b5ebf5b85404: Pull complete
e33a8a7d39f8: Pull complete
0f38f7f784a2: Pull complete
db7bb6126046: Pull complete
df0c0a7d00d5: Pull complete
fbf784f4ebe5: Pull complete
7d387d9d372d: Pull complete
0e3f8107efb5: Pull complete
---> b0f6f140a352
Step 2 : RUN apt-get update && apt-get install -y wget curl && rm -rf /var/lib/apt/lists/*
---> Running in 224bc8b816d0
apt-get: not found
rdt push failed. Error: The command '/bin/sh -c apt-get update && apt-get install -y wget curl && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 127 Error: The command '/bin/sh -c apt-get update && apt-get install -y wget curl && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 127
at Stream.<anonymous> (/usr/local/lib/node_modules/resin-device-toolbox/node_modules/resin-sync/build/docker-utils.js:142:23)
at emitOne (events.js:96:13)
at Stream.emit (events.js:188:7)
at drain (/usr/local/lib/node_modules/resin-device-toolbox/node_modules/resin-sync/node_modules/JSONStream/node_modules/through/index.js:36:16)
at Stream.stream.queue.stream.push (/usr/local/lib/node_modules/resin-device-toolbox/node_modules/resin-sync/node_modules/JSONStream/node_modules/through/index.js:45:5)
at Parser.parser.onToken (/usr/local/lib/node_modules/resin-device-toolbox/node_modules/resin-sync/node_modules/JSONStream/index.js:123:18)
at Parser.proto.write (/usr/local/lib/node_modules/resin-device-toolbox/node_modules/resin-sync/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js:88:34)
at Stream.<anonymous> (/usr/local/lib/node_modules/resin-device-toolbox/node_modules/resin-sync/node_modules/JSONStream/index.js:23:12)
at Stream.stream.write (/usr/local/lib/node_modules/resin-device-toolbox/node_modules/resin-sync/node_modules/JSONStream/node_modules/through/index.js:26:11)
at IncomingMessage.ondata (_stream_readable.js:555:20)
at emitOne (events.js:96:13)
at IncomingMessage.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at IncomingMessage.Readable.push (_stream_readable.js:134:10)
at HTTPParser.parserOnBody (_http_common.js:123:22)
at Socket.socketOnData (_http_client.js:363:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:548:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment