add Dockerfile, update gitpod workspace config
parent
32df811bfa
commit
a56af1387e
@ -0,0 +1,9 @@
|
||||
FROM gitpod/workspace-mongodb
|
||||
RUN yarn global add pm2 && \
|
||||
wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/bin/minio
|
||||
chmod 755 /usr/bin/minio
|
||||
apt-get update && \
|
||||
apt-get install clang -y && \
|
||||
cargo install sonic-server && \
|
||||
echo '{"host":"127.0.0.1","port":"27017","name":"hydro","username":"","password":""}' >/home/gitpod/.hydro/config.json
|
||||
echo "MINIO_ACCESS_KEY=hydro\nMINIO_SECRET_KEY=hydrohydro" >/home/gitpod/.hydro/env
|
@ -1,8 +1,19 @@
|
||||
image: gitpod/workspace-mongodb
|
||||
image:
|
||||
file: .gitpod.Dockerfile
|
||||
tasks:
|
||||
- init: yarn && yarn build
|
||||
- init: |
|
||||
yarn
|
||||
npm i pm2 -g
|
||||
pm2 start mongod
|
||||
pm2 start "MINIO_ACCESS_KEY=hydro MINIO_SECRET_KEY=hydrohydro minio server /home/gitpod/file" --name minio
|
||||
systemctl start sonic-server
|
||||
yarn build
|
||||
yarn build:ui
|
||||
yarn debug
|
||||
vscode:
|
||||
extensions:
|
||||
- dbaeumer.vscode-eslint@2.1.3:1NRvj3UKNTNwmYjptmUmIw==
|
||||
- vscode-icons-team.vscode-icons@10.2.0:DrQUJPtFm0woSFiyitha8Q==
|
||||
- samuelcolvin.jinjahtml@0.12.0:lFI6zKplznEZPdWvFvRHwg==
|
||||
- tabnine.tabnine-vscode
|
||||
- gruntfuggly.todo-tree
|
||||
|
@ -0,0 +1,2 @@
|
||||
FROM ubuntu:latest
|
||||
RUN curl -sSL https://cdn.jsdelivr.net/gh/hydro-dev/Hydro@master/install/ubuntu-2004.sh | bash
|
Loading…
Reference in New Issue