mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
workspace: remove dev dockerfile
This commit is contained in:
1 parent
cd3f05d4d1
commit
55266888d4
4 files changed
+11
-16
No files matched your search
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
FROM gitpod/workspace-mongodb
|
||||
RUN npm i pm2 -g && \
|
||||
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 && \
|
||||
mkdir /data/file -p
|
||||
chmod 777 /data/file
|
||||
+8
-5
@@ -1,14 +1,17 @@
|
||||
image:
|
||||
file: .gitpod.Dockerfile
|
||||
image: gitpod/workspace-mongodb
|
||||
tasks:
|
||||
- command: mongod --dbpath /home/gitpod/db
|
||||
- init: |
|
||||
mkdir -p /home/gitpod/.hydro
|
||||
echo '{"host":"127.0.0.1","port":"27017","name":"hydro","username":"","password":""}' >/home/gitpod/.hydro/config.json && \
|
||||
yarn
|
||||
pm2 start mongod
|
||||
yarn build:ui
|
||||
yarn build:ui:production
|
||||
npx hydrooj cli system set server.port 2333
|
||||
npx hydrooj cli user create root@hydro.local root rootroot 2
|
||||
npx hydrooj cli user setSuperAdmin 2
|
||||
yarn debug
|
||||
command: yarn debug
|
||||
env:
|
||||
DEFAULT_STORE_PATH: /home/gitpod/file
|
||||
vscode:
|
||||
extensions:
|
||||
- dbaeumer.vscode-eslint
|
||||
|
||||
@@ -628,7 +628,7 @@ export interface Service {
|
||||
db: typeof import('./service/db'),
|
||||
monitor: typeof import('./service/monitor'),
|
||||
server: typeof import('./service/server'),
|
||||
storage: typeof import('./service/storage'),
|
||||
storage: typeof import('./service/storage').default,
|
||||
}
|
||||
|
||||
export interface GeoIP {
|
||||
|
||||
@@ -5,7 +5,8 @@ import * as bus from 'hydrooj/src/service/bus';
|
||||
import { Logger } from './logger';
|
||||
import { NestKeys } from './typeutils';
|
||||
|
||||
const defaultPath = process.env.CI ? '/tmp/file' : '/data/file/hydro';
|
||||
const defaultPath = process.env.CI ? '/tmp/file'
|
||||
: process.env.DEFAULT_STORE_PATH || '/data/file/hydro';
|
||||
const FileSetting = Schema.intersect([
|
||||
Schema.object({
|
||||
type: Schema.union([
|
||||
|
||||
Reference in new issue
Block a user