mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 17:46:39 -04:00
update codespaces config
This commit is contained in:
@ -1,9 +1,4 @@
|
||||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/ubuntu/.devcontainer/base.Dockerfile
|
||||
|
||||
# [Choice] Ubuntu version (use hirsuite or bionic on local arm64/Apple Silicon): hirsute, focal, bionic
|
||||
ARG VARIANT="hirsute"
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
|
||||
|
||||
# [Optional] Uncomment this section to install additional OS packages.
|
||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
||||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/blob/v0.205.2/containers/javascript-node/.devcontainer/base.Dockerfile
|
||||
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 16, 14, 12, 16-bullseye, 14-bullseye, 12-bullseye, 16-buster, 14-buster, 12-buster
|
||||
ARG VARIANT=16-bullseye
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
|
||||
|
@ -5,28 +5,25 @@
|
||||
"runArgs": ["--init"],
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
// Update 'VARIANT' to pick an Ubuntu version: hirsute, focal, bionic
|
||||
// Use hirsute or bionic on local arm64/Apple Silicon.
|
||||
"args": { "VARIANT": "hirsute" }
|
||||
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
|
||||
// Append -bullseye or -buster to pin to an OS version.
|
||||
// Use -bullseye variants on local arm64/Apple Silicon.
|
||||
"args": { "VARIANT": "16-bullseye" }
|
||||
},
|
||||
"features": {
|
||||
"git": "os-provided",
|
||||
"github-cli": "latest",
|
||||
"node": "16"
|
||||
"git": "os-provided"
|
||||
},
|
||||
|
||||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "vscode",
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
"postStartCommand": "yarn install --frozen-lockfile && git update-index --assume-unchanged data/manifest.json",
|
||||
"postStartCommand": "yarn install --frozen-lockfile && git update-index --assume-unchanged data/manifest.json && git config pull.rebase true",
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
"forwardPorts": [1337],
|
||||
|
||||
"portsAttributes": {
|
||||
"1337": {
|
||||
"label": "Webpack"
|
||||
"label": "Webpack",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user