mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix sonic installation
This commit is contained in:
1 parent
1518f31f60
commit
7412697cb8
2 files changed
+7
-7
No files matched your search
Vendored
+6
-6
@@ -1,9 +1,9 @@
|
|||||||
FROM gitpod/workspace-mongodb
|
FROM gitpod/workspace-mongodb
|
||||||
RUN yarn global add pm2 && \
|
RUN npm i pm2 -g && \
|
||||||
wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/bin/minio && \
|
sudo wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/bin/minio && \
|
||||||
chmod 755 /usr/bin/minio && \
|
sudo chmod 755 /usr/bin/minio && \
|
||||||
apt-get update && \
|
sudo apt-get update && \
|
||||||
apt-get install clang -y && \
|
sudo apt-get install clang -y && \
|
||||||
cargo install sonic-server && \
|
cargo install sonic-server --version 1.3.0 && \
|
||||||
echo '{"host":"127.0.0.1","port":"27017","name":"hydro","username":"","password":""}' >/home/gitpod/.hydro/config.json && \
|
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
|
echo "MINIO_ACCESS_KEY=hydro\nMINIO_SECRET_KEY=hydrohydro" >/home/gitpod/.hydro/env
|
||||||
+1
-1
@@ -3,9 +3,9 @@ image:
|
|||||||
tasks:
|
tasks:
|
||||||
- init: |
|
- init: |
|
||||||
yarn
|
yarn
|
||||||
npm i pm2 -g
|
|
||||||
pm2 start mongod
|
pm2 start mongod
|
||||||
pm2 start "MINIO_ACCESS_KEY=hydro MINIO_SECRET_KEY=hydrohydro minio server /home/gitpod/file" --name minio
|
pm2 start "MINIO_ACCESS_KEY=hydro MINIO_SECRET_KEY=hydrohydro minio server /home/gitpod/file" --name minio
|
||||||
|
pm2 start "/workspace/.cargo/bin/sonic -c /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/sonic-server-1.3.0/config.cfg" --name sonic
|
||||||
systemctl start sonic-server
|
systemctl start sonic-server
|
||||||
yarn build
|
yarn build
|
||||||
yarn build:ui
|
yarn build:ui
|
||||||
|
|||||||
Reference in new issue
Block a user