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

feat(FO-2205): add new images for r and jupyter #42

Merged
merged 43 commits into from
Oct 2, 2023

Conversation

peak-jiteshahuja
Copy link
Contributor

@peak-jiteshahuja peak-jiteshahuja commented Sep 12, 2023

Description

Description of what this PR does. What have you added or changed, and why? If it fixes a bug or resolves a feature request, be sure to link to that issue.

This PR aims to add the following new images:

  1. workspace-python-ds-pack-2.1.0-base-python-3.8.17
  2. workspace-python-ds-pack-2.1.0-base-python-3.9.18
  3. workspace-python-ds-pack-2.1.0-base-python-3.10.13
  4. workspace-python-ds-pack-2.1.0-base-python-3.11.5
  5. workspace-r-ds-pack-1.1.0-base-r-4.3.1

More details cab be found in the JIRA ticket.

Review Checks

Please check if the PR fulfills these requirements:

Put an x in the boxes that apply, Remove any lines that do not apply

  • 📝 The commit message is clear and descriptive
  • 🔐 The Security Considerations section in the PR description is complete - Please do not remove this
  • ✅ Tests for the changes have been added and run successfully including the new changes
  • 📄 Documentation has been added / updated (for bug fixes / features)

Dependencies

Add links to any pull requests or documentation related to this pull request.

N/A

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

  • Yes
  • No

Security Considerations

Are there any other security or data concerns to be aware of?

Please discuss the security implications/considerations relevant to the proposed change.
This may include...

  • security-relevant design decisions
  • concerns
  • important discussions
  • implementation-specific guidance and pitfalls
  • an outline of threats and risks and how they are being addressed.
  1. no critical/high severity snyk vulnerabilities should remain

Types of change

What kind of change does this Pull Request introduce?
Put an x in the boxes that apply

  • 🐛 Bugfix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Adding or updating configuration files, development scripts etc.
  • ♻️ Refactoring (no functional changes, no api changes)
  • 🧹 Chore (removing redunant files, fixing typos etc.)
  • 📄 Documentation Update
  • ❓ Other (if none of the other choices apply)

If "Other" please specify

YOUR TEXT HERE

Testing

Please include steps that the reviewer can follow in order to test the changes

Verify if the new global images are working fine.

Other information

N/A

@peak-jiteshahuja peak-jiteshahuja changed the title feat: added workspace/python/ds-pack/3.0.0-base-python-3.8.17 feat: add new images for r and jupyter Sep 14, 2023
@peak-jiteshahuja peak-jiteshahuja marked this pull request as ready for review September 14, 2023 09:35
workspace/README.md Outdated Show resolved Hide resolved
RUN curl -fsSL https://code-server.dev/install.sh \
| sh -s -- --version 4.16.1 \
&& pip install --no-cache-dir ./codeserver-proxy

Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't have Projector Proxy installed in this image?
Can we mention that somewhere if not already done.

Copy link
Contributor Author

@peak-jiteshahuja peak-jiteshahuja Sep 21, 2023

Choose a reason for hiding this comment

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

We've actually removed it from readme from this image. Do we want to explicitly mention that it isn't installed ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, I think we should

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Collaborator

@saurabh0402 saurabh0402 left a comment

Choose a reason for hiding this comment

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

Tried out workspace/r/ds-pack/1.1.0-base-r-4.3.1 and workspace/python/ds-pack/2.1.0-base-python-3.10.13. Looks fine.

Copy link
Contributor

@akshayjain04 akshayjain04 left a comment

Choose a reason for hiding this comment

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

Tried workspaces with all 4 python images (present on olympus dev). Working fine there.

@peak-jiteshahuja
Copy link
Contributor Author

Hey @peak-jiteshahuja, the vulnerabilities doesn't seem to have reduced. Am I missing something 🤔

EDIT: Okay got it, they are for old images. But there seems to be some high vulnerability in workspace/python/ds-pack/2.0.0-base-python-3.11.2 image. Can we check those if they can be resolved

Screenshot 2023-09-20 at 2 11 04 PM

Hey we aren't updating any existing images, so we wouldn't be fixing any issues with 2.0.0-base-python-3.11.2.

* feat: install vscode cli in 2.1.0-base-python-3.10.13

* fix: add copy statement to dockerfile

* feat: add scripts to manage tunnel

* feat: add vscode cli to all 2.1.x workspace python images

* feat: add scripts for tunneling

* fix: copy statement for dockerfile

* fix: setup script

* fix: set correct perms for vscode-tunnel folder

* feat: add node script for start command

* refactor: add usage to scripts

* feat: add tunneling scripts to other python images

* docs: add readme for tunneling

* refactor: log file path for tunneling

* refactor: remove redundant scripts

* feat: add error handling to setup script

* refactor: remove redundant params

* fix: add mkdir logs to dockerfile

* fix: ad -R to chmod

* feat: update script to handle device verification

* refactor: add newline to scripts

* fix: break loop when theres an expection

* feat: try using bash for tunnel creation

* feat: add scripts to other python versions

* docs: update readme

* refactor: remove unwanted code

* docs: update readme to add vscode-cli

* feat: try adding scripts to /usr/bin

* refactor: add tunneling readme to docs folder

* fix: add execute permissions to scripts

* fix: broken build

* docs: update readme

* feat: update dockerfile and readme for other python images

* refactor: tweak the print output function to limit output
@saurabh0402 saurabh0402 merged commit f6be385 into main Oct 2, 2023
1 check failed
@saurabh0402 saurabh0402 deleted the feat/fo-2205/update-workspace-images branch October 2, 2023 10:14
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.

3 participants