Pārlūkot izejas kodu

Added devcontainer

tags/v1.9.0
Robin Thoni 1 nedēļu atpakaļ
vecāks
revīzija
d77315ccfd
Parakstījis: Robin THONI <robin@rthoni.com> GPG atslēgas ID: 4E09DEF46B99E61E

+ 27
- 0
.devcontainer/devcontainer.json Parādīt failu

@@ -0,0 +1,27 @@
1
+// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
+// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
3
+{
4
+	"name": "Ubuntu",
5
+	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
+	"image": "mcr.microsoft.com/devcontainers/base:noble",
7
+	"features": {
8
+		"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
9
+        "ghcr.io/prulloac/devcontainer-features/latex:1": {
10
+			"packages": "pgf,moderncv,moderntimeline,emoji,luatexbase,fontspec"
11
+		},
12
+		"./features/local": {}
13
+	},
14
+
15
+	"mounts": [
16
+		"source=${localEnv:HOME}/.docker,target=/home/vscode/.docker,type=bind"
17
+	],
18
+
19
+	"customizations": {
20
+        "vscode": {
21
+			"settings": {
22
+			},
23
+            "extensions": [
24
+            ]
25
+        }
26
+    }
27
+}

+ 6
- 0
.devcontainer/features/local/devcontainer-feature.json Parādīt failu

@@ -0,0 +1,6 @@
1
+{
2
+  "id": "local",
3
+  "version": "0.0.1",
4
+  "name": "Local",
5
+  "description": "Local"
6
+}

+ 12
- 0
.devcontainer/features/local/install.sh Parādīt failu

@@ -0,0 +1,12 @@
1
+#!/usr/bin/env bash
2
+
3
+set -x
4
+set -e
5
+set -o pipefail
6
+
7
+apt-get update
8
+DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
9
+    luatex \
10
+    texlive-luatex \
11
+    fonts-noto-color-emoji \
12
+    ;

Notiek ielāde…
Atcelt
Saglabāt