Commit Graph

9 Commits

Author SHA1 Message Date
Marc Abramowitz 30b69116e0 Allow configuring run_docker ports using env vars
This allows changing various `run_docker` settings using env vars. The
primary one that I wanted was the ability to easily set the system port
used so that I could run two pyodide containers.

Before when running a second instance of `./run_docker`:

```
$ ./run_docker
docker: Error response from daemon: driver failed programming external connectivity on endpoint quirky_banach (45f5dd12606ac5d732a311ef3f3c378e359bbbd406a1c65915a300ec413eaf25): Bind for 0.0.0.0:8000 failed: port is already allocated.
```

With this PR:

```
$ PYODIDE_SYSTEM_PORT=8001 ./run_docker
root@29308e720856:/src#
```

I also broke the `docker run` command on to multiple lines (which I find
more readable; hopefully others agree) and added an `exec` to the
command, so the shell process on the host doesn't have to hang around
waiting for the container to exit.
2019-03-21 07:49:50 -07:00
Madhur Tandon 4abae985ea Add Documentation + Minor Changes 2018-12-11 13:26:51 +05:30
Madhur Tandon 0a72c4efd8 Expose Port 8000 for easy testing
Add ``serve`` module as a command line subcommand which enables us to start a server within the docker environment.
This is helpful in testing the ``pyodide`` builds running within the docker environment using external browser
programs of the same machine.
2018-12-11 12:55:24 +05:30
Roman Yurchak 79ba41b484 Update the iodide/pyodide-env:0.3.1 image 2018-11-15 13:24:27 +01:00
Roman Yurchak aa14302f6b Increment iodide/pyodide-env image to 0.3.0 also in run_docker 2018-10-16 17:24:45 +02:00
Michael Droettboom da7b5803a6 Rename image pyodide -> pyodide-env 2018-10-09 12:38:51 -04:00
Michael Droettboom 05f60214f6 Fix typo 2018-10-09 10:27:58 -04:00
Michael Droettboom 7ae58324bc Address comments in the PR 2018-10-09 10:22:25 -04:00
Michael Droettboom 4562841b61 Provide a Docker image for building 2018-10-08 15:33:33 -04:00