Repository navigation
Description
https://code.visualstudio.com/docs/remote/containers
We add two new sections in the developer's guide:
https://47f8b984ef964a5aa34147393fbdc32e0dde88ad--sagemath-tobias.netlify.app/developer/portability_testing.html#using-our-pre-built-docker-images-published-on-ghcr-io
We also set up devcontainer configurations for the CoCalc and computop/sage Docker images, as well as downstream distribution packaging of Sage.
Tested devcontainer.json of
portability-ubuntu-jammy-standard: builds well; runs welldevelop-docker-computop: builds well; runs welldownstream-docker-cocalc: builds well; runs well (except machines with the issue Do not require AVX when building with SAGE_FAT_BINARY #32434)downstream-docker-computop: builds well; runs welldownstream-archlinux-latest: builds well; runs welldownstream-conda-forge-latest: builds well; runs well
Follow-ups:
- Installation guide: Document Sage installation on Windows via VS Code devcontainers #34363 Installation guide: Document installation on Windows via devcontainer
- Cookiecutter for Sage user projects with devcontainer #34286 Cookiecutter for Sage user projects with devcontainer
- .devcontainer/portability-ubuntu-jammy-standard fails in GitHub Codespaces #34403 GitHub Codespaces - may also be able to test it by starting a codespace at https:https://user-images.githubusercontent.com/5037600/216875765-6697bbf8-70f9-4acc-868e-9309db67be92.jpg/new?hide_repo_select=true&ref=public%2Fbuild%2Fdevcontainer&repo=302607352&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json
downstream-*for more distributions (generate withtoxfrom the info intox.ini, use_sagemath` package)develop-conda-forge-src-environment-dev(https://doc.sagemath.org/html/en/installation/conda.html#using-conda-to-provide-all-dependencies-for-the-sage-library-experimental, similar to our gitpod configuration)- Restore
portability-debian-buster-i386-standardand fix it - Restore
develop-docker-cocalc(was: builds well (after increasing disk image space on the Docker daemon); fails to run) - Restore -
portability-centos-7-devtoolset-gcc_11-standard(was: builds well; fails to run (exactly the same on WSL)) - Restore
downstream-docker-sagemath(after Update docker build #34242) - add github workflows that verify that sage is at least compiling in these containers. That should be relatively straightforward using https://github.com/devcontainers/ci
- improve
portability-Dockerfileas explained in comment:299
Depends on #33873
Depends on #34352
CC: @tobiasdiez @dimpase @williamstein @culler @saraedum @kwankyu
Component: user interface
Author: Tobias Diez, Matthias Koeppe, Kwankyu Lee
Branch/Commit: 4affef2
Reviewer: Kwankyu Lee, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33671
Activity
mkoeppe commentedon Apr 10, 2022
mkoeppe commentedon Apr 10, 2022
mkoeppe commentedon May 11, 2022
Dependencies: #29536
tobiasdiez commentedon May 14, 2022
Author: Tobias Diez
tobiasdiez commentedon May 14, 2022
Commit:
85a7100tobiasdiez commentedon May 14, 2022
Changed dependencies from #29536 to none
tobiasdiez commentedon May 14, 2022
Branch: public/build/devcontainer
tobiasdiez commentedon May 14, 2022
A basic devcontainer definition is now added for ubuntu systems.
New commits:
85a7100Add devcontainer for ubuntusagetrac-git commentedon May 14, 2022
Changed commit from
85a7100to11110aesagetrac-git commentedon May 14, 2022
Branch pushed to git repo; I updated commit sha1. New commits:
11110aeAdd bootstrapsagetrac-git commentedon May 14, 2022
Changed commit from
11110aetoc5295e3sagetrac-git commentedon May 14, 2022
Branch pushed to git repo; I updated commit sha1. New commits:
c5295e3enable-build-as-roottobiasdiez commentedon May 14, 2022
mkoeppe commentedon May 14, 2022
Thanks! That's a beginning. Why do you not use the full build (
-with-targets)?406 remaining items
kwankyu commentedon Aug 22, 2022
Replying to @tobiasdiez:
Would you comment on: #34403 comment:3 ?
mkoeppe commentedon Aug 22, 2022
Replying to @tobiasdiez:
I've set the scope of the ticket to be actionable. Work on codespaces is not actionable for me. You want to support them, you do the work on the follow-up ticket.
sagetrac-git commentedon Aug 22, 2022
Changed commit from
d5610b1to179406fsagetrac-git commentedon Aug 22, 2022
Branch pushed to git repo; I updated commit sha1. New commits:
179406fsrc/doc/en/developer/portability_testing.rst: Update references to devcontainer ...Commandmkoeppe commentedon Aug 22, 2022
Replying to @tobiasdiez:
It's there as preparation for the following improvement (which is waiting for #29536):
-with-system-packages-with-targetsThis creates a smaller version of the container image.
mkoeppe commentedon Aug 22, 2022
sagetrac-git commentedon Aug 22, 2022
Changed commit from
179406fto4affef2sagetrac-git commentedon Aug 22, 2022
Branch pushed to git repo; I updated commit sha1. New commits:
4affef2.devcontainer/onCreate.sh, portability-updateContent.sh: Rename from post_create.sh, portability-post_start.shmkoeppe commentedon Aug 22, 2022
Replying to @tobiasdiez:
Thanks for catching this. Done now.
kwankyu commentedon Aug 24, 2022
Simple renaming. Positive again.
vbraun commentedon Aug 30, 2022
Changed branch from public/build/devcontainer to
4affef2