Created
October 8, 2021 00:33
-
-
Save flavio-fernandes/4fa3d9894de4488e0d55da4a2d7fa7ad to your computer and use it in GitHub Desktop.
Building ovsdb-mon binary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fedora:33 as intermediate | |
USER root | |
ARG schema=wanted.schema | |
COPY $schema /tmp/wanted.schema | |
RUN INSTALL_PKGS="go git" && \ | |
dnf install --best --refresh -y --setopt=tsflags=nodocs $INSTALL_PKGS && \ | |
cd / && git clone --depth 1 https://github.com/amorenoz/ovsdb-mon | |
RUN cd /ovsdb-mon && GOPATH=~/go STATIC=1 SCHEMA=/tmp/wanted.schema make | |
FROM scratch | |
COPY --from=intermediate /ovsdb-mon/bin/ovsdb-mon /ovsdb-mon | |
COPY --from=intermediate /tmp/wanted.schema /the.schema | |
CMD ["/ovsdb-mon"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment