commit c249c222873b09fb60b8ae9cc1dd0bd92ef8469d Author: amaury Date: Fri Jun 7 09:36:13 2024 +0200 init diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c2055a5 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +// Add you DevContainer configuration in this file +// See: https://containers.dev/ for the "official" DevContainer specifications +{ + "name": "latex-default", //Add the name your DevContainer Here, + "image": "pandoc/latex:latest-ubuntu", //Add the name of your Docker image here. See: https://hub.docker.com for available containers + "containerEnv": { //Add your build arguments here + "DEBIAN_FRONTEND": "noninteractive" + }, + "runArgs": [], //Add you docker run arguments here + "updateContentCommand": ".devcontainer/install-tools.sh", //Path to the installation script run inside the DevContainer + // "customizations": { + // //Add your customizations here + // }, + // "forwardPorts": [], //Add your port forwarding from inside/oustide here + "workspaceMount": "source=/home/amaury/Documents/stage/ConsistenceFaibleByzantine/,target=/workspaces/containers,type=bind", //Add your local mounting inside the DevContainer here + "workspaceFolder": "/workspaces/containers", //Add your workspace folder here + "customizations": { + "vscode": { + "extensions": [ + "james-yu.latex-workshop", + "eamodio.gitlens", + "jenselme.grammalecte", + ], + "settings": { + "grammalecte.allowedExtension": ".md,.rst,.adoc,.asciidoc,.creole,.t2t,.tex", + } + } + }, + "features": { + "ghcr.io/devcontainers/features/git:1": {}, + } +} \ No newline at end of file diff --git a/.devcontainer/install-tools.sh b/.devcontainer/install-tools.sh new file mode 100755 index 0000000..798680a --- /dev/null +++ b/.devcontainer/install-tools.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Update package lists +apt update + +# Install Git +# apt install -y git +tlmgr install preprint + +# installation de grammalecte +apt install python3 unzip -y +mkdir /root/.grammalecte +cd /root/.grammalecte +wget https://grammalecte.net/zip/Grammalecte-fr-v2.1.1.zip +unzip Grammalecte-fr-v2.1.1.zip \ No newline at end of file