Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Added nodejs and npm for chrome extension #164

Merged
merged 10 commits into from
May 22, 2019
Merged

Added nodejs and npm for chrome extension #164

merged 10 commits into from
May 22, 2019

Conversation

teddy-codes
Copy link
Contributor

@teddy-codes teddy-codes commented May 22, 2019

This PR is to solve the issue when trying to develop for the chrome extension through sail.

Currently, when running sail run roberthmiller/sail, I am unable to use npm (getting the deps for the chrome extension). This PR is to fix that.

Edit:
Resolves #161

@teddy-codes
Copy link
Contributor Author

Note: This currently fails. I am working on a fix for this.

@teddy-codes
Copy link
Contributor Author

Ok, This is ready for review.

Copy link
Contributor

@nathanpotter nathanpotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing!

I added a few comments to adjust some things. Also, I think this can all be collapsed into one commit message since it's just an addition of node/npm.

We'll add a CONTRIBUTING.md soon to give better guidance on commit messages and how things should be formed.

.sail/Dockerfile Outdated
@@ -1,5 +1,6 @@
FROM codercom/ubuntu-dev-go:latest

RUN sudo apt-get update
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any apt-get update should be combined with an apt-get install in a single RUN operation.

See dockerfile best practices - RUN

.sail/Dockerfile Outdated

RUN installext peterjausovec.vscode-docker

RUN sudo apt-get install curl -y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl is already installed in the base image

.sail/Dockerfile Outdated

RUN sudo apt-get install curl -y

RUN sudo apt-get install software-properties-common -y && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use nvm for installing node, see instructions here.

@kylecarbs what do you think?

@teddy-codes
Copy link
Contributor Author

I will make some updates and you can squash and merge 😄

@teddy-codes
Copy link
Contributor Author

If it is decided to change this to NVM, can we do this in a later PR?

@nathanpotter
Copy link
Contributor

I'd rather just use NVM in this PR and change it later if needed, as I'm pretty sure that's how Kyle will want it installed. Also, that'll remove the need to install software-properties-common.

@teddy-codes
Copy link
Contributor Author

Ok, will update that after I am done submitting this other PR.

@teddy-codes
Copy link
Contributor Author

@nathanpotter This PR should be good to go.

Copy link
Contributor

@nathanpotter nathanpotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good after these two changes, thanks for taking on this issue

teddy-codes and others added 2 commits May 22, 2019 15:55
Co-Authored-By: Nathan Potter <[email protected]>
@teddy-codes
Copy link
Contributor Author

Good to go

Co-Authored-By: Nathan Potter <[email protected]>
@teddy-codes
Copy link
Contributor Author

👍

@nathanpotter nathanpotter merged commit eb6cb4f into coder:master May 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add node and npm to .sail/Dockerfile
2 participants