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

Update Dockerfile to include Node.js installation for improved Developer Experience (DX) #327

Closed
ThomasSanson opened this issue May 6, 2023 · 0 comments · Fixed by #352

Comments

@ThomasSanson
Copy link
Sponsor Contributor

Summary

To enhance the Developer Experience (DX) for our project that utilizes Gitpod, I have prepared an update to the Dockerfile that includes the installation of Node.js. This will streamline the development process by making the necessary tools readily available for developers working on the project.

Background

Currently, our project uses Gitpod as its development environment. However, Node.js is not automatically installed, which means that developers need to manually install it every time they start a new workspace. This can be time-consuming and frustrating, leading to a less-than-optimal Developer Experience (DX).

Solution

I have prepared an update to the Dockerfile that includes the installation of Node.js, ensuring that Node.js is automatically installed and available to all developers as soon as they start their Gitpod workspace.

Please find the snippet to be added to the Dockerfile below:

RUN sudo apt-get update \
&&  curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - \
    && sudo apt-get install -y nodejs \
    && sudo npm install -g npm@latest

*Note: The example above installs Node.js v20.x and npm v9.6.6 for now. Please modify the versions according to the project's requirements.

Benefits

  1. Improved Developer Experience (DX): Developers will no longer need to manually install Node.js every time they start a new workspace, saving time and reducing frustration.
  2. Consistency: By having Node.js pre-installed, we ensure that all developers are using the same version and environment, reducing potential inconsistencies and bugs.
  3. Faster Onboarding: New team members will be able to start working on the project more quickly, as they won't need to spend time setting up their development environment.

Next Steps

I will submit a pull request with the updated Dockerfile to include the installation of Node.js. Once the changes have been reviewed and merged, developers can enjoy an improved DX when working on the project.

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

Successfully merging a pull request may close this issue.

1 participant