-
Notifications
You must be signed in to change notification settings - Fork 6
Added modified docker file with code-server inside, modified singleuser base docker image #53
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
Open
andriinovak
wants to merge
11
commits into
master
Choose a base branch
from
feat/singleuser-and-code-server
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9e33b4c
added modified docker file with code-server inside
AndriiNovakHoneycomb 52530c1
deleted python and jupyter hub versions
AndriiNovakHoneycomb 2cc9973
resolved comments, replaced curl with wget in docker file
AndriiNovakHoneycomb e765e6d
added database password as environment variable
AndriiNovakHoneycomb a2a0179
added git repo and root git repo user managing
AndriiNovakHoneycomb 5857467
add changes related to docker file with ide feature
AndriiNovakHoneycomb 0b7e70f
reverted changes in original Dockerfile
AndriiNovakHoneycomb fa29643
removed extra empty line
AndriiNovakHoneycomb 7c035de
added empty lines in the end of several files
AndriiNovakHoneycomb 1f2470b
changed git actions flow in order to build docker image for ide with …
AndriiNovakHoneycomb 516aa22
resolved comments
AndriiNovakHoneycomb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| .env | ||
| .env | ||
| .idea |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| """ | ||
| Return config on servers to start for codeserver | ||
| See https://jupyter-server-proxy.readthedocs.io/en/latest/server-process.html | ||
| for more information. | ||
| """ | ||
| import os | ||
| import shutil | ||
| import subprocess | ||
|
|
||
| def setup_codeserver(): | ||
| # Make sure codeserver is in $PATH | ||
| def _codeserver_command(port): | ||
| full_path = shutil.which('code-server') | ||
| if not full_path: | ||
| raise FileNotFoundError('Can not find code-server in $PATH') | ||
| working_dir = os.getenv("CODE_WORKINGDIR", None) | ||
| if working_dir is None: | ||
| working_dir = os.getenv("JUPYTER_SERVER_ROOT", ".") | ||
|
|
||
| dj_user = os.getenv("DJ_USER", None) | ||
| dj_user_email = os.getenv("DJ_USER_EMAIL", None) | ||
|
|
||
| # # Run Git commands if user information is provided | ||
| if dj_user is not None and dj_user_email is not None: | ||
andriinovak marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| try: | ||
| subprocess.run(['git', 'config', '--global', 'user.name', dj_user], check=True) | ||
| subprocess.run(['git', 'config', '--global', 'user.email', dj_user_email], check=True) | ||
| except subprocess.CalledProcessError as e: | ||
| print(f"Error setting Git user: {e}") | ||
|
|
||
| return [full_path, f'--port={port}', "--auth", "none", working_dir] | ||
|
|
||
| return { | ||
| 'command': _codeserver_command, | ||
| 'timeout': 20, | ||
| 'launcher_entry': { | ||
| 'title': 'VS Code IDE', | ||
| 'icon_path': os.path.join(os.path.dirname(os.path.abspath(__file__)), | ||
| 'icons', 'vscode.svg') | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.