Skip to content

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

License

Notifications You must be signed in to change notification settings

Th3R3alDuk3/editor-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published