From 7412697cb8869f9c70de967c5bea13a94594c53f Mon Sep 17 00:00:00 2001 From: masnn Date: Fri, 9 Apr 2021 15:30:29 +0000 Subject: [PATCH] fix sonic installation --- .gitpod.Dockerfile | 12 ++++++------ .gitpod.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 7857d4c67..7f48ef92b 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -1,9 +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 && \ +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 && \ 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 diff --git a/.gitpod.yml b/.gitpod.yml index c62dd11c9..d3f97cba9 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,9 +3,9 @@ image: tasks: - 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 + 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 yarn build yarn build:ui