Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Official Docker image Yarn+Nodejs #1577

Closed
ericrange opened this issue Oct 31, 2016 · 7 comments
Closed

[Question] Official Docker image Yarn+Nodejs #1577

ericrange opened this issue Oct 31, 2016 · 7 comments

Comments

@ericrange
Copy link

Hey,

is there an official supported docker image with yarn and nodejs preinstalled that i can use for CI?

@ericrange ericrange changed the title [Question] Official Docker Yarn+Nodejs [Question] Official Docker image Yarn+Nodejs Oct 31, 2016
@goenning
Copy link

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

...

@Daniel15
Copy link
Member

Daniel15 commented Nov 1, 2016

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 😄

@goenning
Copy link

goenning commented Nov 1, 2016

Oh, that's new to me. I thought that all Node.js packages came with NPM. 👍

@Daniel15
Copy link
Member

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

@OliverJAsh
Copy link

@Daniel15 Thanks for this, is it being kept up-to-date? I see there hasn't been a new tag in 2 months.

@Daniel15
Copy link
Member

Daniel15 commented Apr 15, 2017

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 😃

@OliverJAsh
Copy link

Oh wow, I had no idea! Thanks @Daniel15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants