Merge branch 'master' of https://github.com/hydro-dev/Hydro
commit
765188d321
@ -0,0 +1,10 @@
|
||||
FROM gitpod/workspace-mongodb
|
||||
RUN npm i pm2 -g && \
|
||||
sudo wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/bin/minio && \
|
||||
sudo chmod 755 /usr/bin/minio && \
|
||||
sudo apt-get update && \
|
||||
sudo apt-get install clang -y && \
|
||||
cargo install sonic-server --version 1.3.0 && \
|
||||
mkdir -p /home/gitpod/.hydro && \
|
||||
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,20 @@
|
||||
image: gitpod/workspace-mongodb
|
||||
image:
|
||||
file: .gitpod.Dockerfile
|
||||
tasks:
|
||||
- init: yarn && yarn build
|
||||
- init: |
|
||||
yarn
|
||||
pm2 start mongod
|
||||
pm2 start "MINIO_ACCESS_KEY=hydro MINIO_SECRET_KEY=hydrohydro minio server /home/gitpod/file" --name minio
|
||||
pm2 start "/home/gitpod/.cargo/bin/sonic -c /home/gitpod/.cargo/registry/src/github.com-1ecc6299db9ec823/sonic-server-1.3.0/config.cfg" --name sonic
|
||||
yarn build
|
||||
yarn build:ui
|
||||
npx hydrooj cli user create root@hydro.local root rootroot
|
||||
npx hydrooj cli user setSuperAdmin 2
|
||||
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