From 3b22c7038f4f58a82a0985db97665be8c2a870d4 Mon Sep 17 00:00:00 2001 From: Afonso Franco Date: Wed, 28 Sep 2022 20:10:49 +0100 Subject: [PATCH] Update 'README.md' --- README.md | 43 +++++++++++++++++++------------------------ 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 8dbe4e56..1382dc94 100644 --- a/README.md +++ b/README.md @@ -6,33 +6,28 @@ Copyright (c)2005-2022 the Boeing Company. See the LICENSE file included in this distribution. -## About +#DOCKER SETUP -The Common Open Research Emulator (CORE) is a tool for emulating -networks on one or more machines. You can connect these emulated -networks to live networks. CORE consists of a GUI for drawing -topologies of lightweight virtual machines, and Python modules for -scripting network emulation. - -## Quick Start - -The following should get you up and running on Ubuntu 18+ and CentOS 7+ -from a clean install, it will prompt you for sudo password. This would -install CORE into a python3 virtual environment and install -[OSPF MDR](https://github.com/USNavalResearchLaboratory/ospf-mdr) from source. -For more detailed installation see [here](https://coreemu.github.io/core/install.html). ```shell -git clone https://github.com/coreemu/core.git -cd core -# install dependencies to run installation task -./setup.sh -# run the following or open a new terminal -source ~/.bashrc -# Ubuntu -inv install -# CentOS -inv install -p /usr +git clone https://gitea.olympuslab.net/afonso/core-extra.git + +cd core-extra + +# build image +sudo docker build -t core . + +# start container +sudo docker run -itd --name core -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw --privileged --restart unless-stopped core + +# enable xhost access to the root user +xhost +local:root +# launch core-gui +sudo docker exec -it core core-gui + + +#TO RUN ANY OTHER COMMAND +sudo docker exec -it core COMAND_GOES_HERE ``` ## Documentation & Support