Th3R3alDuk3 / editor-docker

online editor that runs docker on the server side (multiple compilers)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

editor-docker

This is an online editor that runs docker on the server side (multiple compilers).

editor-docker

I am using some well-known frameworks in this project.

Because of its popularity and prevalence, docker is suitable for our purposes.
You can adapt any compiler or programming language as you wish.

installation

Install node.js, docker and download all dependencies.

npm install
npm start

own image (optional)

Install docker and customize the configuration file docker/Dockerfile.

FROM <name>
RUN apt update && \
    apt install -y application1 application2 ...

docker build -t <name> - < docker/Dockerfile

Verify the installed applications.

docker run <application1> -h
docker run <application2> -h
...

Upload your tagged image to the registry docker hub.

docker login -u <username>

docker tag <name> <username>/<name>
docker push <username>/<name>

insert own image (optional)

Replaces the default image "th3r3alduk3/editor-docker:latest" in app.js.

docker.createImage({fromImage: "th3r3alduk3/editor-docker:latest"}).then(() => {
    ...
}).catch(error => {
    console.log("please start docker daemon");
});

About

online editor that runs docker on the server side (multiple compilers)

License:MIT License


Languages

Language:JavaScript 71.0%Language:HTML 15.1%Language:CSS 13.1%Language:Dockerfile 0.8%