diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 00000000..dadae251 --- /dev/null +++ b/.gitpod.Dockerfile @@ -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 \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index 7bb5f650..c62dd11c 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..f1930c5b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM ubuntu:latest +RUN curl -sSL https://cdn.jsdelivr.net/gh/hydro-dev/Hydro@master/install/ubuntu-2004.sh | bash diff --git a/install/centos-7.sh b/install/centos-7.sh index d2f5eae6..0b241273 100644 --- a/install/centos-7.sh +++ b/install/centos-7.sh @@ -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)