unikernels/SOURCE/CONTAINER/DNS/start.sh
Gaetan Longree 4411d5800e First commit
2018-05-11 15:51:48 +02:00

11 lines
375 B
Bash

#!/bin/bash
# Building binary from C++ code (statically linking libraries)
docker run --rm -it -v "${PWD}":/usr/src/build -w /usr/src/build cetic/compiler g++ -std=c++11 -static -o runnableService *.cpp
# Building the container (expecting the Dockerfile to be present)
docker build -t cetic/dns .
# Launching the service in a Docker container
docker run --rm -d cetic/dns