forked from nextcloud/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DevContainer for GitHub Codespaces
Signed-off-by: GitHub <noreply@github.com>
Showing
3 changed files
with
41 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:3.9 as final | ||
|
||
USER root | ||
|
||
# Add dev tools needed for building | ||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get -y install --no-install-recommends \ | ||
curl gnupg2 git nano make graphviz imagemagick inkscape sass unzip wget php-cli npm latexmk texlive-latex-extra tex-gyre \ | ||
&& wget https://getcomposer.org/installer -qO /tmp/composer-setup.php \ | ||
&& php /tmp/composer-setup.php \ | ||
&& mv composer.phar /usr/local/bin/composer \ | ||
&& npm install svgexport -g \ | ||
&& rm -f /tmp/composer-setup.php \ | ||
&& rm -rf /var/lib/apt/lists/* |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. | ||
{ | ||
"name": "Nextcloud documentation DevContainer", | ||
"context": "..", | ||
"dockerFile": "Dockerfile", | ||
"containerUser": "root", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"tht13.rst-vscode", | ||
"tomoki1207.pdf" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "python3 -m pip install -r requirements.txt && python3 -m pip install sphinx-autobuild && cd build && composer install --ignore-platform-reqs" | ||
} |
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