Deno: Docker image

Created on 30 May 2018  路  11Comments  路  Source: denoland/deno

Building this on Mac was not very straightforward. I can work on a Dockerfile is that's inline with project goals

This is being worked on here: https://github.com/ry/deno/pull/63

Most helpful comment

I made a small playground with some examples that allows you to run scripts with deno using Docker.

It uses the deno-docker container created by @maxmcd.

All 11 comments

Yes please!

The compile instructions works like a charm for me on Mac except the lack of pkg-config. Afterbrew install pkg-config the compile success.

Yeah. Would like to try it on the windows too

I made a small playground with some examples that allows you to run scripts with deno using Docker.

It uses the deno-docker container created by @maxmcd.

Yes please, that's good starting point for beginner like me who wants to get involved in the project.

Published a _small_ npm package/wrapper for this at srcode-org/deno-run.

It will expose a deno command which when run will create a docker container from deno-docker, mount the cwd to the container and execute the given command (like you would normally run node).

Just make sure you have Docker installed first.

We decided not to use docker.

Hi @ry, could explain in short why you decided to not use docker?

Thanks and regards
Marcel

@mknet Yes, sorry for not doing it above. We want to support reproducible builds on major platforms: linux, windows, and mac. This necessitates a more sophisticated way of managing build dependencies than a Dockerfile - we use Chrome's build system gn for this. Although it wouldn't be much work to add a Dockerfile, it would be something we have to maintain in parallel to our normal build - which is unnecessary overhead at this stage. Our travis CI setup is relatively complicated, and would add Docker if it replaced that complication... but I don't think anyone has gotten it working in a way that satisfies our requirements. In particular, clean builds of Deno take on the order of 1 hour - we have a hard requirement on supporting fast incremental builds thru caching of some sort.

Thanks, @ry

I also have Docker files here https://github.com/hayd/deno-docker (hayd/deno).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ry picture ry  路  37Comments

ry picture ry  路  48Comments

zekth picture zekth  路  38Comments

ry picture ry  路  57Comments

FredericLatour picture FredericLatour  路  42Comments