Skip to content

alphaKAI/poe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poe: online [ruby] environment

sandbox (C):

  • seccomp: to restrict syscallls
  • cgroup (memory, pids): to limit resources
  • overlayfs

backend (Rust):

  • Iron: webapp framework

frontend (TypeScript):

  • Angular 2

Installation

仮想マシン上で実行することを強くお勧めします

% git clone -b ⚙ https://github.com/rhenium/poe.git && cd poe

% cd sandbox
% vi config.h config_seccomp.h
% make && sudo make install  # => sandbox/runner
% cd ..

% cd backend
% cargo build --release # => target/release/poe
% cd ..

% cd frontend
% npm i
% rake deploy # => frontend/target/
% cd ..

% nvim config.json

% pushd /path/to/data
% mkdir -p env/base
% sudo pacstrap -cd env/base filesystem bash openssl coreutils shadow libxml2
% sudo arch-chroot env/base useradd -m unaypoe -u 27627 # home directory is needed
% popd

% rake 'ruby[2.3.0]' # will add to config.json
% rake 'php[7.0.0]'

% ./backend/target/release/poe config.json
% # setup reverse proxy: /api/ => backend, * => frontend

License

MIT License

About

online ruby shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 30.7%
  • Rust 28.4%
  • TypeScript 21.7%
  • Ruby 11.7%
  • CSS 4.9%
  • Makefile 0.9%
  • Other 1.7%