Skip to content

Instantly share code, notes, and snippets.

View Antonasg's full-sized avatar

Anton Schmidt Gregersen Antonasg

View GitHub Profile
@Antonasg
Antonasg / docker.md
Created October 3, 2016 21:00 — forked from loganwright/docker.md
Docker

Dockerfile

FROM ibmcom/swift-ubuntu:latest

# Install Vapor Toolbox
RUN curl -sL toolbox.vapor.sh | bash

# Set work dir to /vapor
WORKDIR /vapor
function transmitCommand(identifier,command) {
console.log('In transmit command');
console.log('identifier: ' + numHex(identifier));
console.log('command: ' + command);
var txAddress = parseInt("0xE8E8F0"+numHex(identifier)+"E2", 16);
tx = radio.openPipe('tx', txAddress,{autoAck:true});
tx.on('ready', function () {
console.log("Radio is ready:");