Skip to content
Dockerfile to build the dart sdk.
Branch: master
Clone or download
Latest commit dcb5c36 May 23, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Added orchestration of jobs May 23, 2018
output Added zip with binaries from CircleCI Artifacts May 23, 2018
test Added dart 2 example May 20, 2018
.dockerignore
.gitignore Added dart_version as --build-arg argument May 5, 2018
Dockerfile
README.MD Added zip with binaries from CircleCI Artifacts May 23, 2018

README.MD

How to run

Simply build the docker image:

docker build .

By default it will build version 2.0.0-dev.55.0.

To build another version, pass it as an argument:

docker build --build-arg dart_version=VERSION .

It is recommended to set Docker to have 3 GB of memory, otherwise g++ will fail to compile.

How to retrieve the built dart sdk

You can find a zip with the binaries in this repository, under the 'output' folder.

You can find a Docker image with the binaries inside, here.

If you build the image yourself, the created image will contain a zip file with the dart binaries. The zip file will be at the root (/) folder of the image.

To copy, create a container from the image and run cp:

docker images
docker create IMAGE_ID
docker cp CONTAINER_ID:/dart-sdk.zip .

Then unzip the archive and copy to your raspberry:

unzip dart-sdk.zip
scp -r dart-sdk user@raspberry.zero.ip:/path/remote/folder 

How to test the sdk

In the test folder of this repo you can find some very simple dart file.

Remember to run pub get before run them with dart.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.