Common Open Research Emulator
Find a file
2023-09-21 18:59:32 +01:00
.github github: fixed branch name 2023-04-18 12:21:36 -07:00
daemon bumped versions for release and updated changelog 2023-08-01 09:12:17 -07:00
dockerfiles updated to 9.0.3 2023-09-21 18:54:08 +01:00
docs docs: added github repo to documentation, fixed url paths for images in tutorials 2023-08-01 10:02:31 -07:00
man daemon: removing python tlv related code and tests related to it 2022-03-08 14:18:47 -08:00
netns daemon: removing python tlv related code and tests related to it 2022-03-08 14:18:47 -08:00
package updated and fixed formatting with proper version of python black 2023-06-13 21:49:50 -07:00
.editorconfig added net client to consolidate bridge and interface creation 2019-09-26 15:20:32 -07:00
.gitignore docs: initial changes to support using mkdocs material 2023-03-07 21:49:50 -08:00
ASSIGNMENT_OF_COPYRIGHT.pdf updated assignment of copyright file name to add to dist file 2017-12-18 09:28:41 -08:00
bootstrap.sh daemon: removing python tlv related code and tests related to it 2022-03-08 14:18:47 -08:00
CHANGELOG.md bumped versions for release and updated changelog 2023-08-01 09:12:17 -07:00
configure.ac bumped versions for release and updated changelog 2023-08-01 09:12:17 -07:00
Dockerfile updated to 9.0.3 merge 2023-09-21 18:59:32 +01:00
LICENSE updates to simplify tracking the copyright and an update to 2018, still room for improvement 2018-03-15 10:36:54 -07:00
Makefile.am install: updates to support building deb/rpm packages that contain python wheels and install core from a single file, updates to core to install scripts by way of python directly 2022-07-27 16:00:10 -07:00
mkdocs.yml docs: added github repo to documentation, fixed url paths for images in tutorials 2023-08-01 10:02:31 -07:00
README.md updated to 9.0.3 2023-09-21 18:54:08 +01:00
setup.sh install: updated poetry version to install in setup.sh to 1.2.1 2022-10-14 08:43:12 -07:00
tasks.py build: updated grpcio dependency versions to fix grpcio vulnerabilities 2023-07-07 08:57:45 -07:00

Index

  • CORE

  • Docker Setup

    • Precompiled container image
    • Build container image from source
      • Adding extra packages
  • Useful commands

  • License

CORE

CORE: Common Open Research Emulator

Copyright (c)2005-2022 the Boeing Company.

See the LICENSE file included in this distribution.

Docker Setup

Here you have 2 choices

Precompiled container image


# Start container
sudo docker run -itd --name core -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw --privileged --restart unless-stopped git.olympuslab.net/afonso/core-extra:latest

Build container image from source

# Clone the repo
git clone https://gitea.olympuslab.net/afonso/core-extra.git

# cd into the directory
cd core-extra

# build the docker image
sudo docker build -t core-extra .

# start container
sudo docker run -itd --name core -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:rw --privileged --restart unless-stopped core-extra

Adding extra packages

To add extra packages you must modify the Dockerfile and then compile the docker image. If you install it after starting the container it will, by docker nature, be reverted on the next boot of the container.

Useful commands

I have the following functions on my fish shell to help me better use core

THIS ONLY WORKS ON FISH, MODIFY FOR BASH OR ZSH


# RUN CORE GUI
function core
    xhost +local:root
    sudo docker exec -it core core-gui
end

# RUN BASH INSIDE THE CONTAINER
function core-bash
    sudo docker exec -it core /bin/bash
end


# LAUNCH NODE BASH ON THE HOST MACHINE
function launch-term --argument nodename
     sudo docker exec -it core xterm -bg black -fg white -fa 'DejaVu Sans Mono' -fs 16 -e vcmd -c /tmp/pycore.1/$nodename -- /bin/bash
end

#TO RUN ANY OTHER COMMAND
sudo docker exec -it core COMAND_GOES_HERE

LICENSE

Copyright (c) 2005-2018, the Boeing Company.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.