Skip to content

Singularity container for quickly building/running Veins simulations

License

Notifications You must be signed in to change notification settings

veins/singularity-veins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

singularity-veins

Scripts for building a Singularity container for quickly building and running Veins simulations anywhere.

Requirements

Contents

  • Debian Buster
  • Veins 5.0
  • OMNeT++ 5.6
  • SUMO 1.4.0

Building

PATH=$PATH:/usr/sbin singularity build --fakeroot singularity-veins.sif singularity-veins.def

Help

singularity run-help singularity-veins.sif

Building/running simulations

mkdir -p work/src
cd work/src
git clone --branch veins-5.0 https://github.com/sommer/veins veins
cd ../../
sudo singularity run -H work:/work -C singularity-veins.sif --chdir src/veins -- ./configure
sudo singularity run -H work:/work -C singularity-veins.sif --chdir src/veins -- make -j$(nproc)
sudo singularity run -H work:/work -C --net --network none singularity-veins.sif --chdir src/veins/examples/veins --launchd -- ./run -u Cmdenv
head work/src/veins/examples/veins/results/General-\#0.sca

Alternatively the following commands can be used:

mkdir -p work/src
cd work/src
git clone --branch veins-5.0 https://github.com/sommer/veins veins
cd ../..
sudo ./singularity-veins.sh src/veins/ -- ./configure
sudo ./singularity-veins.sh src/veins/ -- make -j$(nproc)
sudo ./singularity-veins.sh src/veins/examples/veins -- ./run -u Cmdenv
head work/src/veins/examples/veins/results/General-\#0.sca

License

Veins is composed of many parts. See the version control log for a full list of contributors and modifications. Each part is protected by its own, individual copyright(s), but can be redistributed and/or modified under an open source license. License terms are available at the top of each file. Parts that do not explicitly include license text shall be assumed to be governed by the "GNU General Public License" as published by the Free Software Foundation -- either version 2 of the License, or (at your option) any later version (SPDX-License-Identifier: GPL-2.0-or-later). Parts that are not source code and do not include license text shall be assumed to allow the Creative Commons "Attribution-ShareAlike 4.0 International License" as an additional option (SPDX-License-Identifier: GPL-2.0-or-later OR CC-BY-SA-4.0). Full license texts are available with the source distribution.

Releases

No releases published

Packages

No packages published

Languages