Skip to content

need help installing node #143

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

Closed
greaber opened this issue Apr 4, 2016 · 2 comments
Closed

need help installing node #143

greaber opened this issue Apr 4, 2016 · 2 comments

Comments

@greaber
Copy link

greaber commented Apr 4, 2016

Hi, I want to install node to use the Azure node api for archiving WAL. I thought I could just copy the apt commands in the Dockerfile like this:

RUN set -x \
    && apt-get update \
    && apt-get install -y --no-install-recommends ca-certificates wget \
    && wget -O /tmp/setup_5.x https://deb.nodesource.com/setup_5.x \
    && bash < /tmp/setup_5.x
    && apt-get install -y nodejs

but I am getting a bunch of errors from the apt commands, and it doesn't work. I find apt a confusing program that I hope one day docker can make obsolete. What am I doing wrong?

@Starefossen
Copy link

Looks like you might be missing a backslash \ at line 5:

RUN set -x \
    && apt-get update \
    && apt-get install -y --no-install-recommends ca-certificates wget \
    && wget -O /tmp/setup_5.x https://deb.nodesource.com/setup_5.x \
    && bash < /tmp/setup_5.x \
    && apt-get install -y nodejs

@greaber
Copy link
Author

greaber commented Apr 4, 2016

Oops, yes, you are right that I have that problem. It isn't the problem I was worried about, but I can't reproduce that problem now. It must be that either I had a bad Internet connection or one of the servers I needed to connect to was out. Sorry for the bother.

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

2 participants