Skip to content

Commit

Permalink
fix post-create failures
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Oct 24, 2024
1 parent d2d271e commit 2999285
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
#!/usr/bin/env bash
set -e

echo -e "{
\"data-root\": \"/var/lib/docker2\"
}" >/etc/docker/daemon.json
/usr/local/share/docker-init.sh

corepack enable
corepack use yarn@^4.5.1
corepack use yarn
yarn set version 4.5.1

echo 'Ensuring Cypress executable is installed'
{ yarn dlx cypress verify; } || { yarn dlx [email protected] install; }

echo 'Ensure correct vscode extensions are installed.'
cat .devcontainer/devcontainer.json |
jq -c '.customizations.vscode.extensions[]' |
xargs -L 1 code-server --install-extension
cat .devcontainer/devcontainer.json |
jq -c '.customizations.vscode.extensions[]' |
xargs -L 1 code --install-extension

git config --global --add safe.directory /workspaces/playnite-web

0 comments on commit 2999285

Please sign in to comment.