Hey,
is there an official supported docker image with yarn and nodejs preinstalled that i can use for CI?
Not official, but I found this one https://hub.docker.com/r/kkarczmarczyk/node-yarn/
Anyway, it's pretty easy to setup one if you need a specific node version.
FROM node:6.9.1
RUN npm install -g yarn
...
Note that installing Yarn through npm (as @goenning suggested above) requires you to have npm installed. If you use a minimal Docker container as a base, you may only have Node.js installed, not npm (particularly if you're using Debian or Ubuntu, as npm is packaged separately to Node.js). In those cases, the Debian repo should work 馃槃
Oh, that's new to me. I thought that all Node.js packages came with NPM. 馃憤
Now available as yarnpkg/node-yarn
in the Docker Hub: https://hub.docker.com/r/yarnpkg/node-yarn/
C:\src\yarn> docker run -it --rm yarnpkg/node-yarn:latest /bin/bash
root@13ead647da12:/# yarn --version
0.20.3
@Daniel15 Thanks for this, is it being kept up-to-date? I see there hasn't been a new tag in 2 months.
I discontinued it as Node.js now include Yarn in their official images. Thanks for the reminder @OliverJAsh, I added a comment to the Docker Hub explaining this 馃槂
Oh wow, I had no idea! Thanks @Daniel15
Most helpful comment
I discontinued it as Node.js now include Yarn in their official images. Thanks for the reminder @OliverJAsh, I added a comment to the Docker Hub explaining this 馃槂