pull/92/head
undefined 4 years ago
commit 765188d321

10
.gitpod.Dockerfile vendored

@ -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

@ -1,6 +1,11 @@
#!/bin/bash
echo "Running Hydro Installer for centos 7"
echo "CENTOS IS NOT RECOMMENDED TO USE."
echo "PLEASE USE UBUNTU INSTEAD."
echo "THIS SCRIPT MAY NOT WORK PROPERLY."
echo "Will continue installation in 10 secs, press Ctrl-C to exit"
sleep 10
db_password=$(cat /dev/urandom | head -n 10 | md5sum | head -c 20)
MINIO_ACCESS_KEY=$(cat /dev/urandom | head -n 10 | md5sum | head -c 20)
MINIO_SECRET_KEY=$(cat /dev/urandom | head -n 10 | md5sum | head -c 20)

Loading…
Cancel
Save