devcontainer.json:

- Tidied a bit up
- added Redis as deamon
- added local mount in user home directory
- moved postCreateCommand in extra file

setup.sh:
- created to tidy up the one liner
- added libassimp-dev
- added f3d
This commit is contained in:
Grecco-O committed 2026-09-25 12:45:06 +00:00
1 parent 869dcf7556
commit 0f2fb0bd82
2 files changed
+26 -2

No files matched your search

+6 -2
View File
@@ -8,8 +8,12 @@
"ghcr.io/rails/devcontainer/features/activestorage": {},
"ghcr.io/itsmechlark/features/redis-server:1": {}
},
"postCreateCommand": "sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install libpq-dev libmariadb-dev libarchive13 -y && export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 && corepack enable && bundle install && yarn install",
"postStartCommand": "bash ./bin/dev",
"initializeCommand": "mkdir -p ${localEnv:HOME}/manyfold-data",
"mounts": [
"source=${localEnv:HOME}/manyfold-data,target=/libraries,type=bind,consistency=cached"
],
"postCreateCommand": "bash .devcontainer/setup.sh",
"postStartCommand": "redis-server --daemonize yes && bash ./bin/dev",
"customizations": {
"vscode": {
"extensions": [
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
# Install System packages
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y \
libpq-dev \
libmariadb-dev \
libarchive13 \
libassimp-dev \
f3d
# JS toolchain
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
corepack enable
# Ruby / JS dependencies
bundle install
yarn install