Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge #33671
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 17, 2022
2 parents 8231674 + bad3c16 commit 5097583
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 48 deletions.
16 changes: 0 additions & 16 deletions .devcontainer/develop-docker-cocalc/devcontainer.json

This file was deleted.

6 changes: 4 additions & 2 deletions .devcontainer/downstream-archlinux-latest/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"name": "archlinux:latest downstream Sage",
"image": "archlinux:latest",
// Run commands after the container is created.
"postCreateCommand": "EXTRA_SYSTEM_PACKAGES='sagemath sagemath-doc' EXTRA_SAGE_PACKAGES='notebook pip' .devcontainer/post_create.sh",
// Create an empty bashrc to avoid the error "No such file or directory" when opening a terminal.
"postCreateCommand": "EXTRA_SYSTEM_PACKAGES='sagemath sagemath-doc' EXTRA_SAGE_PACKAGES='notebook pip' .devcontainer/post_create.sh && touch ~/.bashrc",
// Run commands after the container is started.
"postStartCommand": "make configure && ln -sf /usr venv",
// There's no SAGE_LOCAL, so remove the symlink 'prefix'.
"postStartCommand": "rm -f prefix && ln -sf /usr venv",
"extensions": [
"ms-python.python"
]
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion .devcontainer/post_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export PATH=$(pwd)/build/bin:$PATH
SYSTEM=$(sage-guess-package-system)
eval $(sage-print-system-package-command $SYSTEM "$@" update)
eval $(sage-print-system-package-command $SYSTEM --yes "$@" --spkg install _prereq python3 git $EXTRA_SAGE_PACKAGES)
eval $(sage-print-system-package-command $SYSTEM --yes "$@" --spkg install _bootstrap _prereq python3 git $EXTRA_SAGE_PACKAGES)
if [ -n "$EXTRA_SYSTEM_PACKAGES" ]; then
eval $(sage-print-system-package-command $SYSTEM --yes "$@" install $EXTRA_SYSTEM_PACKAGES)
fi
30 changes: 24 additions & 6 deletions src/doc/en/developer/portability_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1252,30 +1252,48 @@ work without change) or to adapt them to your needs.
hence the prefix ``downstream-...``; the suffix ``latest`` indicates
the most recent version of Arch Linux as available on Docker Hub.)

When the message "Done. Press any key to close the terminal." appears in the terminal
named "Configuring", Sage is ready for use. To use Sage in a terminal, `open a new
terminal in VS Code <https://code.visualstudio.com/docs/terminal/basics>`_, type ``sage``
and hit :kbd:`Enter`. (Do not use ``./sage``; this will not work because the source tree is
not configured.)

- `downstream-conda-forge-latest/devcontainer.json
<https://github.com/sagemath/sage/tree/develop/.devcontainer/downstream-conda-forge-latest/devcontainer.json>`_
similarly configures a container with an installation of conda-forge and its SageMath package.

When the message "Done. Press any key to close the terminal." appears in the terminal
named "Configuring", Sage is ready for use. To use Sage in a terminal, `open a new
terminal in VS Code <https://code.visualstudio.com/docs/terminal/basics>`_, type ``sage``
and hit :kbd:`Enter`. (Do not use ``./sage``; this will not work because the source tree is
not configured.)

- `downstream-docker-cocalc/devcontainer.json
<https://github.com/sagemath/sage/tree/develop/.devcontainer/downstream-docker-cocalc/devcontainer.json>`_
configures a container with `the CoCalc Docker image <https://doc.cocalc.com/docker-image.html>`_.

When the message "Done. Press any key to close the terminal." appears in the terminal
named "Configuring", Sage is ready for use. To use Sage in a terminal, `open a new
terminal in VS Code <https://code.visualstudio.com/docs/terminal/basics>`_, type ``sage``
and hit :kbd:`Enter`. (Do not use ``./sage``; this will not work because the source tree is
not configured.)

- `downstream-docker-computop/devcontainer.json
<https://github.com/sagemath/sage/tree/develop/.devcontainer/develop-docker-computop/devcontainer.json>`_
configures a container with the `Docker image from the 3-manifolds
project <https://hub.docker.com/r/computop/sage/>`_, providing
SnapPy, Regina, PHCPack, etc.

When the message "Done. Press any key to close the terminal." appears in the terminal
named "Configuring", Sage is ready for use. To use Sage in a terminal, `open a new
terminal in VS Code <https://code.visualstudio.com/docs/terminal/basics>`_, type ``sage``
and hit :kbd:`Enter`. (Do not use ``./sage``; this will not work because the source tree is
not configured.)

Files named ``$SAGE_ROOT/.devcontainer/develop-.../devcontainer.json`` configure
containers from a public Docker image that provides SageMath and then updates the
installation of SageMath in this container by building from the current source tree.

- `develop-docker-cocalc/devcontainer.json
<https://github.com/sagemath/sage/tree/develop/.devcontainer/develop-docker-cocalc/devcontainer.json>`_
configures a container with `the CoCalc Docker image <https://doc.cocalc.com/docker-image.html>`_.
It then updates the installation of SageMath in this container by building from
the current source tree.

- `develop-docker-computop/devcontainer.json
<https://github.com/sagemath/sage/tree/develop/.devcontainer/develop-docker-computop/devcontainer.json>`_
configures a container with the `Docker image from the 3-manifolds
Expand Down

0 comments on commit 5097583

Please sign in to comment.