Skip to content

Introduce VSCode Remote Containers usage#513

Merged
3vilhamster merged 4 commits intomasterfrom
devcontainer
Jun 14, 2023
Merged

Introduce VSCode Remote Containers usage#513
3vilhamster merged 4 commits intomasterfrom
devcontainer

Conversation

@3vilhamster
Copy link
Contributor

@3vilhamster 3vilhamster commented Jun 9, 2023

Introduce docker-compose and .devcontainers so that developers can work in a dockerized environment with a proper node version.

Previously, local development required usage of nvm which does not provide proper isolation of npm and dependencies see #512

So now dockerized development should be the preferred way.

Due to a bug in nvm lock file is generated with a different npm version.
In packages.json we define node requirements:
"engines": { "node": "14.19.3", "npm": "6.14.17" },
so whenever you use nvm use 14.19.3 nvm points node to a proper version, while npm is actually 9+
This somehow bypasses the constraints.

I've used dockerized version of node to use the proper npm version and ran npm install to update the lock file.

In the next PR, I'll introduce .devcontainers which will allow all developers use dockerized node version with VSCode.

@CLAassistant
Copy link

CLAassistant commented Jun 9, 2023

CLA assistant check
All committers have signed the CLA.

@3vilhamster 3vilhamster changed the title Devcontainer Introduce VSCode Remote Containers usage Jun 9, 2023
@3vilhamster
Copy link
Contributor Author

I guess I'll need to add HowTo for local development and local execution with docker-compose.
I think it is worth adding it in a separate PR.

…d updated Dockerfile to ensure we do not modify lock file during building container
@3vilhamster 3vilhamster merged commit f6ffcd1 into master Jun 14, 2023
@3vilhamster 3vilhamster deleted the devcontainer branch June 14, 2023 08:02
gazi-yestemirova pushed a commit to gazi-yestemirova/cadence-web that referenced this pull request Jun 14, 2023
* Downgrading locks with a proper npm

* Introduce .devcontainer for dockerize development using VSCode

* make docker-compose up start local server by default

* updated contributing, readme guides with link to Remove containers and updated Dockerfile to ensure we do not modify lock file during building container
gazi-yestemirova added a commit that referenced this pull request Jun 15, 2023
* Show worflow activity details in a compact modal window

* Introduce VSCode Remote Containers usage (#513)

* Downgrading locks with a proper npm

* Introduce .devcontainer for dockerize development using VSCode

* make docker-compose up start local server by default

* updated contributing, readme guides with link to Remove containers and updated Dockerfile to ensure we do not modify lock file during building container

---------

Co-authored-by: Ilya Ozherelyev <iozherelyev@gmail.com>
@Assem-Uber Assem-Uber mentioned this pull request Jul 31, 2023
@Groxx
Copy link
Member

Groxx commented Jul 31, 2023

-   "lockfileVersion": 2,
+   "lockfileVersion": 1,

huh. yeah, dunno how that 2 happened with what should be npm v6: https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json#lockfileversion

thanks!

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 this pull request may close these issues.

4 participants