Installation — Installing the BPAK python library

See Building and installing section for details on installing bpak.

The following docker definition can be built from bpak root or by replacing the COPY row with commands to clone the bpak repository.

# build image from bpak root folder
from python:slim

RUN apt-get update -y

RUN apt-get install -y gcc
RUN apt-get install -y pkgconf
RUN apt-get install -y autoconf-archive
RUN apt-get install -y libtool
RUN apt-get install -y make

COPY . .

RUN autoreconf -fi
RUN ./configure --enable-python-library --disable-dependency-tracking
RUN make
RUN make install
RUN ldconfig

After building and installing you are able to import the bpak python module to your python script:

import bpak