Public | Automated Build

Last pushed: 7 days ago
Short Description
The mipsel cross complier for npm packages for running on a Tessel 2
Full Description

t2-compiler


The server component can be found at t2-auto-compiler

Publishing

Is done automatically from master at with docker hub.

Building Packages

Use vagrant or docker

Vagrant

Install vagrant

vagrant up
./compile-vagrant.sh serialport@2.0.5

Look in the 'out' directory

Docker

If you want to use docker you can run;

# puts the output in the `./out` directory (wont overwrite existing files)
./compile-docker.sh serialport@4.0.0

To update to the latest t2-compiler from docker hub.

docker pull tessel/t2-compiler

Developing the compiler

To build your local Dockerfile

# build the local directory and name it
docker build ./ -t t2-compiler:dev

# verify the localally built images
docker images
# REPOSITORY           TAG                 IMAGE ID            CREATED              SIZE
# t2-compiler:dev      latest              75f126974601        About a minute ago   1.281 GB

# Run the local image you've built
docker run --rm -v `pwd`/out:/out t2-compiler:dev serialport@4.0.0 /out

To get an interactive shell run

# from docker hub
docker run -it --rm --entrypoint bash tessel/t2-compiler
# from local dev image
docker run -it --rm --entrypoint bash t2-compiler:dev

Master is automatically built and pushed by the docker-hub service with our tessel account. It's the equivalent of;

docker build -t tessel/t2-compiler ./
docker push tessel/t2-compiler
Docker Pull Command
Owner
tessel
Source Repository

Comments (0)