-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
py3: Docker images for python3-based Sage #28041
Comments
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to gitlab-ci |
comment:2
Still need to make the changes to the |
Changed keywords from gitlab-ci to gitlab-ci, days101 |
comment:4
I'm trying to get this working, but the build is stalling out at:
The problem is that This is because there are two copies of The problem in this case is that although the one in I wonder if this is a remnant from an earlier build stage that was cached, but not properly updated for some reason (I thought that different |
comment:5
The problem seems to start here:
When running |
comment:6
(CC Odile who was interested in having a working Python 3 Docker image) |
comment:7
Sorry for this. We had already figured the broken |
comment:8
Isn't the preservation of |
comment:9
I was just about to say: I think the preservation of |
comment:10
Specifically, one of the prereqs of |
comment:11
What the |
comment:12
Not sure, but I think just swapping |
comment:13
Replying to @saraedum:
No, this is just a pseudo-target in Sage's top-level Makefile. I have no idea why specifically it's named that. It's also used by the All
which is certainly worth doing. But maybe this needs to be detangled a bit... |
comment:14
The following files in
|
comment:15
Yes, most likely. One I just get the docker build working locally I will try adding all the other relevant updates. It would be nice for starters to get a Python 3 image on Docker Hub, even if I have to push it manually, then get future ones building automatically. |
comment:16
I think that once your Dockerfile goes through, you just need to add your branch to |
comment:17
For Odile's use I went ahead and pushed a prototype of this up to Dockerhub: sagemath/sagemath-dev-py3:alpha Unfortunately it still has a bug. The A workaround for now is to set the PREREQ_OPTIONS variable which is used by Sage's top-level Makefile when it runs configure. So you can set this when running the container like:
Next up, I think we should modify the Docker build to at least keep config.status so that this doesn't keep happening. |
comment:18
Apparently I was not able to successfully upload the Docker image to hub.docker.com because (AFAICT) of this issue. But I was able to upload it to our image registry on gitlab.com. So try:
You can also use this image as a base for another Docker image by doing something like:
That is, you would ensure This is not ideal and should be fixed, but it's a start anyways... |
Changed author from Samuel Lelièvre to Samuel Lelièvre, Julian Rüth |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:47
the docker images should be available on binder shortly: https://gitlab.com/sagemath/dev/trac/pipelines/81996545 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:50
I started a full |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:52
The Python 2 and Python 3 images seem to be functional. (At least they work in Binder.) |
Reviewer: David Roe |
comment:53
Looks good to me. Both Python 2 and Python 3 built fine. |
comment:54
Not sure if this comes from the changes here, but there's a |
comment:55
Ok. That's how it's supposed to work https://lists.gnu.org/archive/html/help-make/2016-03/msg00009.html. |
comment:56
moving milestone to 9.0 (after release of 8.9) |
Changed branch from u/saraedum/28041 to |
Docker images for python3-based Sage are useful in general,
and in particular for continuous integration or other testing
workflows for packages that depend on Sage.
The infrastructure introduced by #24655 automatically produces
Docker images for python2-based Sage. In order to extend it to
also produce python3-based ones,
we update the
micro_release
target formake
inMakefile
to not remove the
config
directorywe adapt
.gitlab-ci.yml
anddocker/Dockerfile
,duplicating all the docker targets for py3, creating
a
WITH_PYTHON
and aDOCKER_TAG_SUFFIX
environment variables, and using them in the shell
scripts
docker/*.sh
.To play with the generated Python 2/3 docker images, you can go to https://gitlab-hooks-flau3jeaza-ew.a.run.app/status/trac/branch/u%2Fsaraedum%2F28041
CC: @saraedum @zerline @roed314
Component: distribution
Keywords: gitlab-ci, days101
Author: Samuel Lelièvre, Julian Rüth
Branch/Commit:
ca24332
Reviewer: David Roe
Issue created by migration from https://trac.sagemath.org/ticket/28041
The text was updated successfully, but these errors were encountered: