Add sync.sh script

This downloads and installs dependencies necessary to run or develop.

Add docker-compose.yml for initial use
This commit is contained in:
Michael Wolf
2026-01-11 15:51:42 -06:00
parent de70be996e
commit 1da81089cd
4 changed files with 93 additions and 17 deletions

View File

@@ -5,10 +5,8 @@
set -eu
node_shim_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export node_shim_DIR
source "$node_shim_DIR"/../versions
# shellcheck source=node.common
source "$node_shim_DIR"/node.common
exec "$nodejs_binary_dir/node" "$@"

View File

@@ -2,23 +2,19 @@
# shellcheck shell=bash
node_common_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
project_root="$node_common_DIR/../.."
# FIXME this shouldn't be hardcoded here of course
nodejs_binary_dir="$node_common_DIR/../binaries/node-v22.15.1-linux-x64/bin"
# shellcheck source=../versions
source "$node_common_DIR"/../versions
nodejs_binary_dir="$project_root/$nodejs_bin_dir"
# This might be too restrictive. Or not restrictive enough.
PATH="$nodejs_binary_dir":/bin:/usr/bin
project_root="$node_common_DIR/../.."
node_dist_dir="$project_root/$nodejs_dist_dir"
node_dir="$project_root/$nodejs_binary_dir"
export NPM_CONFIG_PREFIX="$node_dir/npm"
export NPM_CONFIG_CACHE="$node_dir/cache"
export NPM_CONFIG_TMP="$node_dir/tmp"
export NODE_PATH="$node_dir/node_modules"
# echo $NPM_CONFIG_PREFIX
# echo $NPM_CONFIG_CACHE
# echo $NPM_CONFIG_TMP
# echo $NODE_PATH
export NPM_CONFIG_PREFIX="$node_dist_dir/npm"
export NPM_CONFIG_CACHE="$node_dist_dir/cache"
export NPM_CONFIG_TMP="$node_dist_dir/tmp"
export NODE_PATH="$node_dist_dir/node_modules"