Fix Gitpod prebuilt image
This commit is contained in:
parent
934f64115e
commit
949518355b
7
.gitpod.Dockerfile
vendored
Normal file
7
.gitpod.Dockerfile
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM gitpod/workspace-full:latest
|
||||||
|
|
||||||
|
RUN bash -c 'VERSION="18" \
|
||||||
|
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
|
||||||
|
&& nvm use $VERSION && nvm alias default $VERSION'
|
||||||
|
|
||||||
|
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
|
15
.gitpod.yml
15
.gitpod.yml
@ -1,3 +1,6 @@
|
|||||||
|
image:
|
||||||
|
file: .gitpod.Dockerfile
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- port: 3000
|
- port: 3000
|
||||||
name: Silverbullet
|
name: Silverbullet
|
||||||
@ -12,25 +15,17 @@ github:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
init: |
|
init: |
|
||||||
nvm install
|
|
||||||
nvm use
|
|
||||||
npm install
|
npm install
|
||||||
npm run clean-build
|
npm run clean-build
|
||||||
gp sync-done setup
|
gp sync-done setup
|
||||||
exit
|
|
||||||
- name: Run Silverbullet server
|
- name: Run Silverbullet server
|
||||||
init: |
|
init: |
|
||||||
gp sync-await setup
|
gp sync-await setup
|
||||||
nvm use
|
|
||||||
mkdir pages
|
mkdir pages
|
||||||
command: npm run server -- ./pages
|
command: npm run server -- ./pages
|
||||||
- name: Run ParcelJS
|
- name: Run ParcelJS
|
||||||
init: |
|
init: gp sync-await setup
|
||||||
gp sync-await setup
|
|
||||||
nvm use
|
|
||||||
command: npm run watch
|
command: npm run watch
|
||||||
- name: Build plugins
|
- name: Build plugins
|
||||||
init: |
|
init: gp sync-await setup
|
||||||
gp sync-await setup
|
|
||||||
nvm use
|
|
||||||
command: npm run plugs
|
command: npm run plugs
|
||||||
|
Loading…
Reference in New Issue
Block a user