docker-keepalived icon indicating copy to clipboard operation
docker-keepalived copied to clipboard

Keepalived 2.2.7

Open rdagerfall opened this issue 3 years ago • 5 comments

Hi!

Will the docker image be updated for the newest version keepalived 2.2.7?

https://github.com/acassen/keepalived/tags

Best regards, Robin

rdagerfall avatar Jun 22 '22 08:06 rdagerfall

I'm interested too

cdalvaro avatar Oct 31 '22 10:10 cdalvaro

I found this issue too, I'm rebuilding the images with latest Alpine and Keepalived, you can find it at https://hub.docker.com/r/lettore/keepalived/tags tag is x.xx-y.yy.y where x is Alpine version and y Keepalived version. Here 2.2.7 version docker pull lettore/keepalived:3.16-2.2.7

lettore avatar Nov 03 '22 13:11 lettore

我也发现了这个问题,我正在用最新的 Alpine 和 Keepalived 重建图像,你可以在https://hub.docker.com/r/lettore/keepalived/tags找到它标签是 x.xx-y.yy。 y 其中 x 是 Alpine 版本和 y Keepalived 版本。 这里2.2.7版本docker pull lettore/keepalived:3.16-2.2.7

Hello, can you provide the dockerfile project of your image?

renslk avatar Nov 07 '22 12:11 renslk

FROM alpine:3.16

LABEL MAINTAINER="Ettore Lorenzi <[email protected]>"

COPY image-base /container
RUN /container/build.sh

ENV LANG="en_US.UTF-8" \
    LANGUAGE="en_US:en" \
    LC_ALL="en_US.UTF-8"

ENTRYPOINT ["/container/tool/run"]

# Keepalived version
ARG KEEPALIVED_VERSION=2.2.7

# Download, build and install Keepalived
RUN apk --no-cache add \
    autoconf \
    curl \
    gcc \
    ipset \
    ipset-dev \
    iptables \
    iptables-dev \
    libnfnetlink \
    libnfnetlink-dev \
    libnl3 \
    libnl3-dev \
    make \
    musl-dev \
    openssl \
    openssl-dev \
    && curl -o keepalived.tar.gz -SL http://keepalived.org/software/keepalived-${KEEPALIVED_VERSION}.tar.gz \
    && mkdir -p /container/keepalived-sources \
    && tar -xzf keepalived.tar.gz --strip 1 -C /container/keepalived-sources \
    && cd container/keepalived-sources \
    && ./configure --disable-dynamic-linking \
    && make && make install \
    && cd - && mkdir -p /etc/keepalived \
    && rm -f keepalived.tar.gz \
    && rm -rf /container/keepalived-sources \
    && apk --no-cache del \
    autoconf \
    gcc \
    ipset-dev \
    iptables-dev \
    libnfnetlink-dev \
    libnl3-dev \
    make \
    musl-dev \
    openssl-dev

# Add service directory to /container/service
ADD image/service /container/service

# Use baseimage install-service script
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
RUN /container/tool/install-service

# Add default env variables
ADD image/environment /container/environment/99-default

image-base dir is from osixia base image repository image is from this repository Essentially I'm building both images in one step, with latest python I had to change the file image-base/tool/run env_vars = yaml.load(f) with env_vars = yaml.load(f, Loader=yaml.FullLoader) otherwise all is exactly the same as the original image

lettore avatar Nov 07 '22 14:11 lettore

Hi, I created a PR to avoid this, take a look to: #60

nser77 avatar Apr 20 '23 20:04 nser77