Skip to content
Snippets Groups Projects
Commit a4343af9 authored by aviau's avatar aviau Committed by gerrit2
Browse files

run apt-get clean before install/update

Running apt-get clean before an update/install should help to prevent
failures during installation. This will help to improve the build
stability.

Source:
 - https://stackoverflow.com/questions/35923576/debian-httpredir-mirror-system-unreliable-unusable-in-docker

Change-Id: Id7d6ee95cfec28af59311b4d9e6852ae5e5e4c8c
Tuleap: #873
parent fcb50055
Branches
Tags
No related merge requests found
FROM debian:8 FROM debian:8
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts equivs apt-get install -y vim devscripts equivs
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM savoirfairelinux/ring-debian32:8 FROM savoirfairelinux/ring-debian32:8
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts equivs apt-get install -y vim devscripts equivs
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM debian:stretch FROM debian:stretch
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts apt-get install -y vim devscripts
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM savoirfairelinux/ring-debian32:9 FROM savoirfairelinux/ring-debian32:9
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts apt-get install -y vim devscripts
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM ubuntu:14.04 FROM ubuntu:14.04
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts equivs apt-get install -y vim devscripts equivs
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM savoirfairelinux/ring-ubuntu32:14.04 FROM savoirfairelinux/ring-ubuntu32:14.04
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts equivs apt-get install -y vim devscripts equivs
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM ubuntu:15.10 FROM ubuntu:15.10
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts equivs apt-get install -y vim devscripts equivs
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM savoirfairelinux/ring-ubuntu32:15.10 FROM savoirfairelinux/ring-ubuntu32:15.10
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts equivs apt-get install -y vim devscripts equivs
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM ubuntu:16.04 FROM ubuntu:16.04
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts equivs apt-get install -y vim devscripts equivs
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
FROM savoirfairelinux/ring-ubuntu32:16.04 FROM savoirfairelinux/ring-ubuntu32:16.04
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y vim devscripts equivs apt-get install -y vim devscripts equivs
# Speed up mk-build-deps # Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \ apt-get install -y -o Acquire::Retires=10 \
autoconf \ autoconf \
......
...@@ -35,6 +35,7 @@ else ...@@ -35,6 +35,7 @@ else
fi fi
# install build deps # install build deps
apt-get clean
apt-get update apt-get update
apt-get upgrade -o Acquire::Retires=10 -y apt-get upgrade -o Acquire::Retires=10 -y
mk-build-deps --remove --install debian/control -t "apt-get -y --no-install-recommends" mk-build-deps --remove --install debian/control -t "apt-get -y --no-install-recommends"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment