Skip to content

Commit 159aea2

Browse files
committed
More robust image build process
1 parent 42cd5ca commit 159aea2

File tree

7 files changed

+137
-15
lines changed

7 files changed

+137
-15
lines changed

docker/agent/Dockerfile

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1-
FROM debian:10
1+
FROM debian:11
22

3-
RUN apt-get update && apt-get install -y curl nginx
3+
# Use a more reliable mirror
4+
RUN echo "deb http://archive.debian.org/debian bullseye main" > /etc/apt/sources.list \
5+
&& echo "deb http://security.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
6+
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
7+
8+
RUN apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/* \
10+
&& \
11+
( \
12+
unset http_proxy https_proxy no_proxy && \
13+
apt-get update -o Acquire::Retries=5 -o Acquire::http::No-Cache=true -o Acquire::http::timeout=30 \
14+
) \
15+
&& \
16+
( \
17+
unset http_proxy https_proxy no_proxy && \
18+
apt-get install -y --no-install-recommends --fix-missing \
19+
curl \
20+
nginx \
21+
) \
22+
&& rm -rf /var/lib/apt/lists/*
423

524
RUN mkdir -p -m 777 /var/log/kraken/kraken-agent
625
RUN mkdir -p -m 777 /var/cache/kraken/kraken-agent

docker/build-index/Dockerfile

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1-
FROM debian:10
1+
FROM debian:11
22

3-
RUN apt-get update && apt-get install -y curl nginx
3+
# Use a more reliable mirror
4+
RUN echo "deb http://archive.debian.org/debian bullseye main" > /etc/apt/sources.list \
5+
&& echo "deb http://security.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
6+
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
7+
8+
RUN apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/* \
10+
&& \
11+
( \
12+
unset http_proxy https_proxy no_proxy && \
13+
apt-get update -o Acquire::Retries=5 -o Acquire::http::No-Cache=true -o Acquire::http::timeout=30 \
14+
) \
15+
&& \
16+
( \
17+
unset http_proxy https_proxy no_proxy && \
18+
apt-get install -y --no-install-recommends --fix-missing \
19+
curl \
20+
nginx \
21+
) \
22+
&& rm -rf /var/lib/apt/lists/*
423

524
RUN mkdir -p -m 777 /var/log/kraken/kraken-build-index
625
RUN mkdir -p -m 777 /var/cache/kraken/kraken-build-index

docker/herd/Dockerfile

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
# This image combines all central components into one container, for easier
22
# deployment and management.
3-
FROM debian:10
3+
FROM debian:11
44

5-
RUN apt-get update && apt-get install -y build-essential curl sqlite3 nginx sudo procps
5+
# Use a more reliable mirror
6+
RUN echo "deb http://archive.debian.org/debian bullseye main" > /etc/apt/sources.list \
7+
&& echo "deb http://security.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
8+
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
9+
10+
RUN apt-get clean \
11+
&& rm -rf /var/lib/apt/lists/* \
12+
&& \
13+
( \
14+
unset http_proxy https_proxy no_proxy && \
15+
apt-get update -o Acquire::Retries=5 -o Acquire::http::No-Cache=true -o Acquire::http::timeout=30 \
16+
) \
17+
&& \
18+
( \
19+
unset http_proxy https_proxy no_proxy && \
20+
apt-get install -y --no-install-recommends --fix-missing \
21+
build-essential \
22+
curl \
23+
sqlite3 \
24+
nginx \
25+
sudo \
26+
procps \
27+
) \
28+
&& rm -rf /var/lib/apt/lists/*
629

730
# Install redis.
831
ADD http://download.redis.io/redis-stable.tar.gz /tmp/redis-stable.tar.gz

docker/origin/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
FROM debian:10
1+
FROM debian:11
2+
3+
# Use a more reliable mirror
4+
RUN echo "deb http://archive.debian.org/debian bullseye main" > /etc/apt/sources.list \
5+
&& echo "deb http://security.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
6+
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
27

38
RUN apt-get clean \
49
&& rm -rf /var/lib/apt/lists/* \
510
&& \
611
( \
712
unset http_proxy https_proxy no_proxy && \
8-
apt-get update -o Acquire::Retries=3 -o Acquire::http::No-Cache=true \
13+
apt-get update -o Acquire::Retries=5 -o Acquire::http::No-Cache=true -o Acquire::http::timeout=30 \
914
) \
1015
&& \
1116
( \
1217
unset http_proxy https_proxy no_proxy && \
13-
apt-get install -y --no-install-recommends \
18+
apt-get install -y --no-install-recommends --fix-missing \
1419
curl \
1520
sqlite3 \
1621
nginx \

docker/proxy/Dockerfile

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1-
FROM debian:10
1+
FROM debian:11
22

3-
RUN apt-get update && apt-get install -y curl nginx
3+
# Use a more reliable mirror
4+
RUN echo "deb http://archive.debian.org/debian bullseye main" > /etc/apt/sources.list \
5+
&& echo "deb http://security.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
6+
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
7+
8+
RUN apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/* \
10+
&& \
11+
( \
12+
unset http_proxy https_proxy no_proxy && \
13+
apt-get update -o Acquire::Retries=5 -o Acquire::http::No-Cache=true -o Acquire::http::timeout=30 \
14+
) \
15+
&& \
16+
( \
17+
unset http_proxy https_proxy no_proxy && \
18+
apt-get install -y --no-install-recommends --fix-missing \
19+
curl \
20+
nginx \
21+
) \
22+
&& rm -rf /var/lib/apt/lists/*
423

524
RUN mkdir -p -m 777 /var/log/kraken/kraken-proxy
625
RUN mkdir -p -m 777 /var/cache/kraken/kraken-proxy

docker/testfs/Dockerfile

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
1-
FROM debian:10
1+
FROM debian:11
22

3-
RUN apt-get update && apt-get install -y curl
3+
# Use a more reliable mirror
4+
RUN echo "deb http://archive.debian.org/debian bullseye main" > /etc/apt/sources.list \
5+
&& echo "deb http://security.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
6+
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
7+
8+
RUN apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/* \
10+
&& \
11+
( \
12+
unset http_proxy https_proxy no_proxy && \
13+
apt-get update -o Acquire::Retries=5 -o Acquire::http::No-Cache=true -o Acquire::http::timeout=30 \
14+
) \
15+
&& \
16+
( \
17+
unset http_proxy https_proxy no_proxy && \
18+
apt-get install -y --no-install-recommends --fix-missing \
19+
curl \
20+
) \
21+
&& rm -rf /var/lib/apt/lists/*
422

523
RUN mkdir -p -m 777 /var/log/kraken/kraken-testfs
624
RUN mkdir -p -m 777 /var/cache/kraken/kraken-testfs

docker/tracker/Dockerfile

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1-
FROM debian:10
1+
FROM debian:11
22

3-
RUN apt-get update && apt-get install -y curl nginx
3+
# Use a more reliable mirror
4+
RUN echo "deb http://archive.debian.org/debian bullseye main" > /etc/apt/sources.list \
5+
&& echo "deb http://security.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
6+
&& echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
7+
8+
RUN apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/* \
10+
&& \
11+
( \
12+
unset http_proxy https_proxy no_proxy && \
13+
apt-get update -o Acquire::Retries=5 -o Acquire::http::No-Cache=true -o Acquire::http::timeout=30 \
14+
) \
15+
&& \
16+
( \
17+
unset http_proxy https_proxy no_proxy && \
18+
apt-get install -y --no-install-recommends --fix-missing \
19+
curl \
20+
nginx \
21+
) \
22+
&& rm -rf /var/lib/apt/lists/*
423

524
RUN mkdir -p -m 777 /var/log/kraken/kraken-tracker
625
RUN mkdir -p -m 777 /var/cache/kraken/kraken-tracker

0 commit comments

Comments
 (0)