Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
f1b2d3bf
Commit
f1b2d3bf
authored
Mar 21, 2019
by
Michael Droettboom
Committed by
GitHub
Mar 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #355 from msabramo/run_docker-configurable
Allow configuring run_docker ports using env vars
parents
b3d48aa5
30b69116
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
run_docker
run_docker
+11
-3
No files found.
run_docker
View file @
f1b2d3bf
#!/bin/sh
DOCKER_PORT
=
8000
SYSTEM_PORT
=
8000
docker run
-p
$SYSTEM_PORT
:
$DOCKER_PORT
--rm
-v
$PWD
:/src
--user
root
-e
NB_UID
=
$UID
-e
NB_GID
=
$GID
-it
iodide/pyodide-env:0.3.1 /bin/bash
PYODIDE_DOCKER_PORT
=
${
PYODIDE_DOCKER_PORT
:-
"8000"
}
PYODIDE_SYSTEM_PORT
=
${
PYODIDE_SYSTEM_PORT
:-
"8000"
}
PYODIDE_DOCKER_IMAGE
=
${
PYODIDE_DOCKER_IMAGE
:-
"iodide/pyodide-env:0.3.1"
}
exec
docker run
\
-p
$PYODIDE_SYSTEM_PORT
:
$PYODIDE_DOCKER_PORT
\
-it
--rm
\
-v
$PWD
:/src
\
--user
root
-e
NB_UID
=
$UID
-e
NB_GID
=
$GID
\
${
PYODIDE_DOCKER_IMAGE
}
\
/bin/bash
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment