yozoon / ViennaTools-Docker

Pre-Configured Docker Image for Creating Applications using ViennaTools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pre-Configured Docker Image for Creating Applications using ViennaTools

Requirements

This project requires a working installation of Docker (and docker compose), which can be obtained from docker.com.

Building the Image

You can find the instructions here.

Usage

The fastest way to get started is by using a pre-built image. This can be accomplished by running the following command:

docker run -v "$PWD"/project/:/mnt/project -v "$PWD"/output/:/mnt/output yozoon/viennatools:latest

This starts the docker container and mounts the project and output folder to the container. Then the CMake project in the project folder is configured and compiled using the output folder as a build directory. Finally the run.sh script is called. All outputs that are generated in the build directory (i.e. the output folder) will persist even after the container shuts down again.

A simple example project is provided in the project directory, which can be used as a starting point for developing your own applications using ViennaTools. Just make sure that the executable(s) you defined within the project's CMakeLists file are also called in the run.sh shell script.

Even though the executable(s) are generated in the output directory, they most likely won't work on your host machine, since they require libraries from within the Docker container. Thus, if you want to run an executable, make sure that it is called in the run.sh script!

About

Pre-Configured Docker Image for Creating Applications using ViennaTools

License:MIT License


Languages

Language:Dockerfile 37.7%Language:C++ 34.8%Language:Shell 19.1%Language:CMake 8.4%