workspace: remove dev dockerfile

pull/422/head
undefined 2 years ago
parent cd3f05d4d1
commit 55266888d4

@ -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

@ -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([

Loading…
Cancel
Save