https://github.com/wuhan005/elaina
🔮 Container-based remote code runner. / 基于容器的远程代码运行器
https://github.com/wuhan005/elaina
container docker go kubernetes runner
Last synced: about 2 months ago
JSON representation
🔮 Container-based remote code runner. / 基于容器的远程代码运行器
- Host: GitHub
- URL: https://github.com/wuhan005/elaina
- Owner: wuhan005
- License: mit
- Created: 2021-02-08T12:14:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-29T16:21:30.000Z (11 months ago)
- Last Synced: 2024-12-10T10:50:28.293Z (10 months ago)
- Topics: container, docker, go, kubernetes, runner
- Language: Go
- Homepage: https://elaina.n3ko.co/r/xZt74s0FKc
- Size: 6.18 MB
- Stars: 46
- Watchers: 4
- Forks: 6
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elaina  [](https://goreportcard.com/report/github.com/wuhan005/Elaina)  
![]()
Container-based remote code runner.[简体中文](https://github.com/wuhan005/Elaina/blob/master/README_zh.md)
## Start
### Step 1: Install dependencies
* [Docker](https://docs.docker.com/get-docker/) (v20.10.0 or higher)
* [Postgres](https://www.postgresql.org/download/) (v13.1 or higher)### Step 2: Pull internal docker images
Use `docker pull` command to pull the images from DockerHub before you start running the Elaina. This operation only
needs to be performed once.```bash
docker pull glot/php:latest
docker pull glot/python:latest
docker pull glot/golang:latest
docker pull glot/javascript:latest
docker pull glot/c:latest
```### Step 3: Build and start the Elaina server
#### Build Elaina
```bash
git clone git@github.com:wuhan005/Elaina.git# Build frontend
cd frontend/ && yarn install && yarn build# Build backend
go build .
```#### Set environment variables.
```bash
export APP_PASSWORD=
export RUNTIME_MODE=docker
export POSTGRES_DSN=postgres://postgres:@127.0.0.1:5432/elaina
```#### Run the Elaina server.
```bash
./Elaina
```### Step 4: Have fun!
Visit `http://:8080/` to login to the manager panel.
## License
MIT License