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

Codespaces devcontainer #7039

Closed
wants to merge 3 commits into from

Conversation

sivanaikk
Copy link

@sivanaikk sivanaikk commented Feb 9, 2023

Notes for Reviewers

This PR fixes #5904

Signed commits

  • Yes, I signed my commits.

@welcome
Copy link

welcome bot commented Feb 9, 2023

Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, you can find updates in the #github-notifications channel in the community Slack.
Be sure to double-check that you have signed your commits. Here are instructions for making signing an implicit activity while peforming a commit.

@leecalcote
Copy link
Member

Thanks for this, @sivanaikk 👍

@leecalcote leecalcote requested review from a team, leecalcote, sunkuranganath and acald-creator and removed request for a team, leecalcote, sunkuranganath and acald-creator February 15, 2023 00:03
@acald-creator acald-creator force-pushed the codespaces-devcontainer branch from bc7767c to 02a5bc9 Compare February 15, 2023 15:19
@acald-creator
Copy link
Contributor

Reviewing, as I was researching this to see if we could use devcontainers to ease contributor onboarding the projects.

@rav121
Copy link

rav121 commented Feb 15, 2023

There is UI integration test that is failing, us of syntax error in indexui_spec.js.
However, I don't think this changes are related to the tests run.

@leecalcote
Copy link
Member

Syncing with master to re-run with passing indexui_spec.js.

ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
RUN go install golang.org/dl/go1.19.1@latest \
&& go1.19.1 download

This comment was marked as outdated.

Copy link
Member

@leecalcote leecalcote Feb 16, 2023

Choose a reason for hiding this comment

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

Thanks for giving this a review, @Azanul

Copy link
Member

Choose a reason for hiding this comment

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

Good feedback for @sivanaikk’s consideration.

Copy link
Member

Choose a reason for hiding this comment

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

@sivanaikk what do you think?

Copy link
Author

Choose a reason for hiding this comment

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

Previously we were using go1.19.1 in Makefile. Have to update Dockerfile

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that there is some sagnificant difference between go1.19.1 and go1.19
https://github.com/devcontainers/templates/tree/main/src/go

Signed-off-by: Kethavath Siva Naik <60335740+sivanaikk@users.noreply.github.com>
Signed-off-by: Kethavath Siva Naik <60335740+sivanaikk@users.noreply.github.com>
@acald-creator acald-creator force-pushed the codespaces-devcontainer branch from 448f4f8 to a7ff87d Compare February 16, 2023 18:34
@Chadha93
Copy link
Member

@sivanaikk Let's discuss this on the Meshery Dev call. Please add this as an agenda item in the meeting minutes if you would. :)

@sivanaikk
Copy link
Author

@sivanaikk Let's discuss this on the Meshery Dev call. Please add this as an agenda item in the meeting minutes if you would. :)

Just added it to the Meeting agenda. Thank you 🙌

ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
RUN go install golang.org/dl/go1.19.1@latest \
&& go1.19.1 download
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that there is some sagnificant difference between go1.19.1 and go1.19
https://github.com/devcontainers/templates/tree/main/src/go

&& . /etc/os-release \
&& if [ "${VERSION_CODENAME}" = "bullseye" ]; then apt-get -y install --no-install-recommends python-is-python3; fi \
# Clean up
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /root/.gnupg /tmp/library-scripts
Copy link
Contributor

Choose a reason for hiding this comment

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

-q argument could be used

# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>""
Copy link
Contributor

Choose a reason for hiding this comment

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

new line

# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>""
Copy link
Contributor

Choose a reason for hiding this comment

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

new line

# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>""
Copy link
Contributor

Choose a reason for hiding this comment

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

new line

# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>""
Copy link
Contributor

Choose a reason for hiding this comment

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

new line

@Chadha93
Copy link
Member

@sivanaikk Let's discuss this on the Meshery Dev call. Please add this as an agenda item in the meeting minutes if you would. :)

@stale
Copy link

stale bot commented Apr 24, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the issue/stale Issue has not had any activity for an extended period of time label Apr 24, 2023
@Azanul

This comment was marked as outdated.

@stale stale bot removed the issue/stale Issue has not had any activity for an extended period of time label Apr 24, 2023
@Azanul

This comment was marked as outdated.

@Azanul Azanul closed this May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] Configure Meshery for Codespaces
7 participants