[Git][NTPsec/ntpsec][master] Add libbsd packages to docker images

Matt Selsky gitlab at mg.gitlab.com
Mon Sep 21 21:37:50 UTC 2020



Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
467713b0 by Matt Selsky at 2020-09-21T16:27:42+00:00
Add libbsd packages to docker images

This way we use the distro versions of strlcat() and strlcpy() instead of compiling
our own.

Related to NTPsec/ntpsec#660

- - - - -


23 changed files:

- .dockerfiles/alpine
- .dockerfiles/alpine-edge
- .dockerfiles/alpine-pages
- .dockerfiles/alpine-seccomp
- .dockerfiles/centos-latest
- .dockerfiles/clang
- .dockerfiles/debian-oldstable
- .dockerfiles/debian-stable
- .dockerfiles/debian-stable-i386
- .dockerfiles/debian-stable-mdns
- .dockerfiles/debian-testing
- .dockerfiles/debian-unstable
- .dockerfiles/fedora-latest
- .dockerfiles/fedora-rawhide
- .dockerfiles/fedora-rawhide-gpsd
- .dockerfiles/gentoo
- .dockerfiles/gentoo-hardened
- .dockerfiles/opensuse-leap
- .dockerfiles/opensuse-tumbleweed
- .dockerfiles/python3-rc
- .dockerfiles/ubuntu-devel
- .dockerfiles/ubuntu-latest
- .dockerfiles/ubuntu-rolling


Changes:

=====================================
.dockerfiles/alpine
=====================================
@@ -1,4 +1,4 @@
 FROM alpine
 
 RUN apk update
-RUN apk add gcc bison musl-dev openssl-dev libcap-dev python3-dev
+RUN apk add gcc bison musl-dev openssl-dev libcap-dev python3-dev libbsd


=====================================
.dockerfiles/alpine-edge
=====================================
@@ -1,4 +1,4 @@
 FROM alpine:edge
 
 RUN apk update
-RUN apk add gcc bison musl-dev openssl-dev libcap-dev python3-dev
+RUN apk add gcc bison musl-dev openssl-dev libcap-dev python3-dev libbsd


=====================================
.dockerfiles/alpine-pages
=====================================
@@ -1,4 +1,4 @@
 FROM alpine
 
 RUN apk update
-RUN apk add gcc bison musl-dev openssl-dev libcap-dev python3-dev asciidoctor findutils gzip
+RUN apk add gcc bison musl-dev openssl-dev libcap-dev python3-dev libbsd asciidoctor findutils gzip


=====================================
.dockerfiles/alpine-seccomp
=====================================
@@ -1,4 +1,4 @@
 FROM alpine
 
 RUN apk update
-RUN apk add gcc bison musl-dev openssl-dev libcap-dev python3-dev libseccomp-dev
+RUN apk add gcc bison musl-dev openssl-dev libcap-dev python3-dev libbsd libseccomp-dev


=====================================
.dockerfiles/centos-latest
=====================================
@@ -1,4 +1,6 @@
 FROM centos:latest
 
-RUN dnf -y install bison gcc openssl-devel libcap-devel python3-devel
-RUN dnf -y --enablerepo=PowerTools install pps-tools-devel
+RUN dnf -y install dnf-plugins-core
+RUN dnf config-manager --set-enabled PowerTools
+RUN dnf -y install epel-release
+RUN dnf -y install bison gcc openssl-devel libcap-devel python3-devel pps-tools-devel libbsd-devel


=====================================
.dockerfiles/clang
=====================================
@@ -1,4 +1,4 @@
 FROM debian:testing-slim
 
 RUN apt-get update
-RUN apt-get install -y netbase bison libssl-dev libcap-dev pps-tools python-dev clang
+RUN apt-get install -y netbase bison libssl-dev libcap-dev pps-tools python-dev libbsd-dev clang


=====================================
.dockerfiles/debian-oldstable
=====================================
@@ -1,4 +1,4 @@
 FROM debian:oldstable-slim
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev libbsd-dev


=====================================
.dockerfiles/debian-stable
=====================================
@@ -1,4 +1,4 @@
 FROM debian:stable-slim
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev libbsd-dev


=====================================
.dockerfiles/debian-stable-i386
=====================================
@@ -1,4 +1,4 @@
 FROM i386/debian:stable-slim
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python-dev libbsd-dev


=====================================
.dockerfiles/debian-stable-mdns
=====================================
@@ -1,4 +1,4 @@
 FROM debian:stable-slim
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python-dev libavahi-compat-libdnssd-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python-dev libbsd-dev libavahi-compat-libdnssd-dev


=====================================
.dockerfiles/debian-testing
=====================================
@@ -1,4 +1,4 @@
 FROM debian:testing-slim
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev libbsd-dev


=====================================
.dockerfiles/debian-unstable
=====================================
@@ -1,4 +1,4 @@
 FROM debian:unstable-slim
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev libbsd-dev


=====================================
.dockerfiles/fedora-latest
=====================================
@@ -1,3 +1,3 @@
 FROM fedora:latest
 
-RUN dnf -y install bison gcc openssl-devel libcap-devel pps-tools-devel python3-devel
+RUN dnf -y install bison gcc openssl-devel libcap-devel pps-tools-devel python3-devel libbsd-devel


=====================================
.dockerfiles/fedora-rawhide
=====================================
@@ -1,3 +1,3 @@
 FROM registry.fedoraproject.org/fedora:rawhide
 
-RUN dnf -y install bison gcc openssl-devel libcap-devel pps-tools-devel python3-devel
+RUN dnf -y install bison gcc openssl-devel libcap-devel pps-tools-devel python3-devel libbsd-devel


=====================================
.dockerfiles/fedora-rawhide-gpsd
=====================================
@@ -1,3 +1,3 @@
 FROM registry.fedoraproject.org/fedora:rawhide
 
-RUN dnf -y install bison gcc openssl-devel libcap-devel pps-tools-devel python3-devel python3-gpsd
+RUN dnf -y install bison gcc openssl-devel libcap-devel pps-tools-devel python3-devel python3-gpsd libbsd-devel


=====================================
.dockerfiles/gentoo
=====================================
@@ -1,4 +1,4 @@
 FROM gentoo/stage3-amd64
 
 RUN emerge-webrsync
-RUN emerge -q y sys-libs/libcap sys-devel/bison net-misc/pps-tools
+RUN emerge -q y sys-libs/libcap sys-devel/bison net-misc/pps-tools dev-libs/libbsd


=====================================
.dockerfiles/gentoo-hardened
=====================================
@@ -1,4 +1,4 @@
 FROM gentoo/stage3-amd64-hardened
 
 RUN emerge-webrsync
-RUN emerge -q y sys-libs/libcap sys-devel/bison net-misc/pps-tools
+RUN emerge -q y sys-libs/libcap sys-devel/bison net-misc/pps-tools dev-libs/libbsd


=====================================
.dockerfiles/opensuse-leap
=====================================
@@ -1,3 +1,3 @@
 FROM opensuse/leap
 
-RUN zypper -n install bison gcc libopenssl-devel libcap-devel pps-tools-devel python3-devel python3-curses
+RUN zypper -n install bison gcc libopenssl-devel libcap-devel pps-tools-devel python3-devel python3-curses libbsd-devel


=====================================
.dockerfiles/opensuse-tumbleweed
=====================================
@@ -1,3 +1,3 @@
 FROM opensuse/tumbleweed
 
-RUN zypper -n install bison gcc libopenssl-devel libcap-devel pps-tools-devel python3-devel python3-curses
+RUN zypper -n install bison gcc libopenssl-devel libcap-devel pps-tools-devel python3-devel python3-curses libbsd-devel


=====================================
.dockerfiles/python3-rc
=====================================
@@ -1,4 +1,4 @@
 FROM python:rc
 
 RUN apt-get update -qq
-RUN apt-get install -y -qq bison libcap-dev pps-tools
+RUN apt-get install -y -qq bison libcap-dev pps-tools libbsd-dev


=====================================
.dockerfiles/ubuntu-devel
=====================================
@@ -1,4 +1,4 @@
 FROM ubuntu:devel
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev libbsd-dev


=====================================
.dockerfiles/ubuntu-latest
=====================================
@@ -1,4 +1,4 @@
 FROM ubuntu:latest
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev libbsd-dev


=====================================
.dockerfiles/ubuntu-rolling
=====================================
@@ -1,4 +1,4 @@
 FROM ubuntu:rolling
 
 RUN apt-get update
-RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev
+RUN apt-get install -y netbase bison gcc libssl-dev libcap-dev pps-tools python3-dev libbsd-dev



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/467713b08e27da942d95f1fea93765d49fa84179

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/467713b08e27da942d95f1fea93765d49fa84179
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20200921/752fc22d/attachment-0001.htm>


More information about the vc mailing list