Skip to content

Commit

Permalink
ci(devcontainer): use official debian base image
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga authored Oct 3, 2024
1 parent e0a7569 commit a3c0df0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "jellyfin-vue Codespace (with support for Tauri and Docker development)",
"image": "node:20-slim",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"ghcr.io/devcontainers/features/rust:1": {
"profile": "default"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"installDockerComposeSwitch": false
},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"forwardPorts": [3000],
Expand All @@ -19,11 +18,7 @@
}
},
"postCreateCommand": {
"npm": "npm ci --no-audit",
"no-yarn": "unset YARN_VERSION && rm -rf /opt/yarn*",
"use-bash": "rm -rf /bin/sh && ln -s /bin/bash /bin/sh",
"git-config": "git config --global core.editor 'code --wait'",
"postunpack": ".devcontainer/postunpack.sh"
"postunpack": ".devcontainer/postunpack.sh && npm ci --no-audit"
},
"postAttachCommand": "cat .vscode/extensions.json | jq -r .recommendations[] | xargs -n 1 code --install-extension",
"hostRequirements": { "cpus": 4, "memory": "8gb" }
Expand Down
7 changes: 5 additions & 2 deletions .devcontainer/postunpack.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

## Install Tauri dependencies
## Setup Node.js repository
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo bash

## Install dependencies
apt update
apt install -y --no-install-recommends $(cat packaging/tauri/apt_packages)
apt install -y --no-install-recommends $(cat packaging/tauri/apt_packages) nodejs
rm -rf /var/lib/apt/lists /var/cache/apt/archives

0 comments on commit a3c0df0

Please sign in to comment.