obmp-docker/dev-image/Dockerfile

37 lines
1.1 KiB
Docker
Raw Normal View History

2021-03-29 08:52:45 -07:00
# Development build container: openbmp/dev-image
#
# Copyright (c) 2021-2022 Cisco Systems, Inc. and others. All rights reserved.
# Copyright (c) 2021-2022 Tim Evens. All rights reserved.
2021-03-29 08:52:45 -07:00
#
# Container used to build the OpenBMP components
#
# Author: Tim Evens <tim@openbmp.org>
#
2022-02-10 21:02:19 -08:00
# BUILD: docker build --platform linux/amd64 -t openbmp/dev-image .
2021-03-29 08:52:45 -07:00
# docker tag openbmp/dev-image openbmp/dev-image:latest
FROM debian:bullseye-slim AS build
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /ws
# Install the various depends
RUN apt-get update
RUN apt-get install -y openjdk-17-jdk-headless maven
RUN mkdir -p /usr/share/man/man1/ \
&& apt-get -y install git gcc g++ libboost-dev cmake zlib1g-dev libssl-dev libsasl2-dev \
liblz4-dev libzstd-dev librdkafka-dev
# Build/install yaml-cpp
RUN cd /tmp && git clone https://github.com/jbeder/yaml-cpp.git \
&& cd yaml-cpp \
2022-02-10 21:02:19 -08:00
&& git checkout yaml-cpp-0.7.0 \
2021-03-29 08:52:45 -07:00
&& mkdir build && cd build \
2022-02-10 21:02:19 -08:00
&& cmake -DYAML_BUILD_SHARED_LIB=OFF .. \
2021-03-29 08:52:45 -07:00
&& make && make install \
&& cd /tmp
# Clean up
RUN rm -rf /tmp/* && apt-get clean