mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
add Dockerfile, update gitpod workspace config
This commit is contained in:
1 parent
32df811bfa
commit
a56af1387e
4 files changed
+29
-2
No files matched your search
Vendored
+9
@@ -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
|
||||||
+13
-2
@@ -1,8 +1,19 @@
|
|||||||
image: gitpod/workspace-mongodb
|
image:
|
||||||
|
file: .gitpod.Dockerfile
|
||||||
tasks:
|
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:
|
vscode:
|
||||||
extensions:
|
extensions:
|
||||||
- dbaeumer.vscode-eslint@2.1.3:1NRvj3UKNTNwmYjptmUmIw==
|
- dbaeumer.vscode-eslint@2.1.3:1NRvj3UKNTNwmYjptmUmIw==
|
||||||
- vscode-icons-team.vscode-icons@10.2.0:DrQUJPtFm0woSFiyitha8Q==
|
- vscode-icons-team.vscode-icons@10.2.0:DrQUJPtFm0woSFiyitha8Q==
|
||||||
- samuelcolvin.jinjahtml@0.12.0:lFI6zKplznEZPdWvFvRHwg==
|
- 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
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Running Hydro Installer for centos 7"
|
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)
|
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_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)
|
MINIO_SECRET_KEY=$(cat /dev/urandom | head -n 10 | md5sum | head -c 20)
|
||||||
|
|||||||
Reference in new issue
Block a user