Skip to content

leimao/Boost-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boost Docker

Introduction

The Docker and CMake examples for Boost C++ library.

Boost Docker Container

Set Boost Library Version

$ BOOST_VERSION=1.80.0

Build Docker Image

$ docker build -f docker/boost.Dockerfile --build-arg BOOST_VERSION=${BOOST_VERSION} --tag=boost:${BOOST_VERSION} .

Build Docker Image Cross Platform

$ sudo apt-get install -y binfmt-support qemu-user-static
$ docker buildx create --use --name cross-platform-build
$ docker buildx build -f docker/boost.Dockerfile --platform linux/amd64,linux/arm64 -t leimao/boost:${BOOST_VERSION} --push .

Pull Docker Container

$ docker pull leimao/boost:${BOOST_VERSION}
$ docker tag leimao/boost:${BOOST_VERSION} boost:${BOOST_VERSION}

Run Docker Container

$ docker run -it --rm -v $(pwd):/mnt boost:${BOOST_VERSION}

Boost CMake Examples

Inside the Boost Docker container, follow the README in the examples.