-
Notifications
You must be signed in to change notification settings - Fork 38
Description
I want to use vscodeoffline on Windows 10 where I cannot use docker-compose but pipenv.
I think this is an important issue, because I guess that not a few organizations prohibit using docker on Windows.
How do you think about it?
The followings are what I expect and a rough roadmap to the goal.
Excpected behavior
- Running
pipenv run vscsyncruns vscsync as an alternative todocker-compose up vscsyncand - Running
pipenv run vscgalleryruns vscgallery as an alternative todocker-compose up vscgallery.
Roadmap
-
find an alternative library for Windows to
gunicorn, which is a WSGI HTTP Server for UNIX; -
update
.gitignorein order to ignorePipfile.lock; -
add Pipfile and
.envas follows:[[source]] url = "https://pypi.org/simple" verify_ssl = true name = "pypi" [packages] logzero = "*" requests = "*" pytimeparse = "*" falcon = "*" {HERE IS A LIBRARY FOUND IN 1st STEP} = "*" watchdog = "*" [dev-packages] [requires] python_version = "3.7" [scripts] vscsync = "sh -c '{HERE IS A COMMAND LIKE IN ./vscodeoffline/vscsync/Dockerfile}'" vscgallery = "sh -c '{HERE IS A COMMAND LIKE IN ./vscodeoffline/vscgallery/Dockerfile}'"and
ARTIFACTS="${PWD}/artifacts/" SYNCARGS="--sync" BIND="0.0.0:4430" TIMEOUT=180 THREADS=4
-
modify some hard-coded paths in ./vscoffline/server.py and ./vscoffline/vsc.py. For example,
vscodeoffline/vscoffline/vsc.py
Lines 16 to 20 in 39d80f3
ARTIFACTS = '/artifacts/' ARTIFACTS_INSTALLERS = '/artifacts/installers' ARTIFACTS_EXTENSIONS = '/artifacts/extensions' ARTIFACT_RECOMMENDATION = '/artifacts/recommendations.json' ARTIFACT_MALICIOUS = '/artifacts/malicious.json' vscodeoffline/vscoffline/server.py
Line 411 in 39d80f3
observer.schedule(ArtifactChangedHandler(vscgallery), '/artifacts/', recursive=False) vscodeoffline/vscoffline/server.py
Line 422 in 39d80f3
application.add_static_route('/artifacts/', '/artifacts/') vscodeoffline/vscoffline/server.py
Line 350 in 39d80f3
with open('/opt/vscoffline/vscgallery/content/index.html', 'r') as f: vscodeoffline/vscoffline/server.py
Line 367 in 39d80f3
with open('/opt/vscoffline/vscgallery/content/browse.html', 'r') as f: -
test the above changes.