osixia / docker-keepalived

Keepalived container image 🐳🌴
MIT License
395 stars 143 forks source link

Keepalived 2.2.7 #55

Open rdagerfall opened 2 years ago

rdagerfall commented 2 years ago

Hi!

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

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

Best regards, Robin

cdalvaro commented 1 year ago

I'm interested too

lettore commented 1 year ago

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

renslk commented 1 year ago

我也发现了这个问题,我正在用最新的 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?

lettore commented 1 year ago
FROM alpine:3.16

LABEL MAINTAINER="Ettore Lorenzi <loreetty@gmail.com>"

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

nser77 commented 1 year ago

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