This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.devcontainer: Generalize to other distros
- Loading branch information
Matthias Koeppe
committed
May 14, 2022
1 parent
8d7f7ab
commit 96bb5ad
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
ARG VARIANT="jammy" | ||
FROM ghcr.io/sagemath/sage/sage-docker-ubuntu-${VARIANT}-standard-with-system-packages:dev | ||
|
||
# Install additional packages needed for devcontainer support in VS code | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends gpgconf openssh-client | ||
ARG SYSTEM_FACTOR="ubuntu-jammy" | ||
ARG PACKAGE_FACTOR="standard" | ||
ARG DOCKER_TARGET="with-system-packages" | ||
FROM ghcr.io/sagemath/sage/sage-docker-${SYSTEM_FACTOR}-${PACKAGE_FACTOR}-${DOCKER_TARGET}:dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. | ||
{ | ||
"name": "Ubuntu", | ||
"name": "Ubuntu jammy", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
// Update 'VARIANT' to pick an Ubuntu version: hirsute, focal, bionic, xenial, trusty, etc. | ||
"args": { "VARIANT": "jammy" } | ||
// See tox.ini for definitions | ||
"args": { "SYSTEM_FACTOR": "ubuntu-jammy", | ||
"PACKAGE_FACTOR": "standard", | ||
"DOCKER_TARGET": "with-system-packages", | ||
"DOCKER_TAG": "dev" | ||
} | ||
}, | ||
// Run commands after the container is created: | ||
"postCreateCommand": "export PATH=$(pwd)/build/bin:$PATH && SYSTEM=$(sage-guess-package-system) && eval $(sage-print-system-package-command $SYSTEM install --yes $(sage-get-system-packages $SYSTEM _develop))", | ||
// Run commands after the container is started. | ||
"postStartCommand": "./bootstrap && ./configure --enable-build-as-root && make build" | ||
} |