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

Remove ./run_docker --pre-built? #3308

Closed
Tracked by #3340
ryanking13 opened this issue Dec 1, 2022 · 2 comments · Fixed by #3342
Closed
Tracked by #3340

Remove ./run_docker --pre-built? #3308

ryanking13 opened this issue Dec 1, 2022 · 2 comments · Fixed by #3342
Labels
bug Something isn't working

Comments

@ryanking13
Copy link
Member

The command ./run_docker --pre-built is mentioned in our docs 1 2, but actually, it is not working as expected.

The pyodide build artifacts inside the pre-built docker image are in /src/pyodide, but when we do ./run_docker --pre-built, the host file system is mounted to /src, overriding the file system inside the container. So ./run_docker --pre-built works almost just same as ./run_docker.

For now, I think the correct way to use the pre-built docker image is like this:

mkdir dist
docker pull pyodide/pyodide:0.20.0
docker run  --it -v $(pwd)/dist:/src/pyodide/build pyodide/pyodide:0.20.0 /bin/bash
$ cd /src/pyodide
$ # Do something inside the docker image...
$ make && exit
# built artifacts are saved to ./dist

So I would like to discuss two things:

  1. We have to either remove --pre-built flag, or fix it to work as expected.

  2. If we decide to remove --pre-built flag, should we still build pre-built docker image? or should we stop providing the image and tell users to usepyodide build instead?

Related issues:

WDYT?

@ryanking13 ryanking13 added the bug Something isn't working label Dec 1, 2022
@rth
Copy link
Member

rth commented Dec 1, 2022

I would be +1 to stop distributing the pre-built image altogether (the deployment CI was broken for the last few releases anyway) in favor of either out-of-tree build or using the pyodide-env image in CI with caching (we should maybe specifically mention how we use ccache).

@ryanking13
Copy link
Member Author

@hoodmane WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants