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
No related branches found
No related tags found
No related merge requests found
FROM debian:8
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts equivs
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM savoirfairelinux/ring-debian32:8
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts equivs
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM debian:stretch
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM savoirfairelinux/ring-debian32:9
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM ubuntu:14.04
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts equivs
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM savoirfairelinux/ring-ubuntu32:14.04
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts equivs
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM ubuntu:15.10
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts equivs
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM savoirfairelinux/ring-ubuntu32:15.10
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts equivs
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM ubuntu:16.04
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts equivs
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
FROM savoirfairelinux/ring-ubuntu32:16.04
RUN apt-get clean
RUN apt-get update && \
apt-get install -y vim devscripts equivs
# Speed up mk-build-deps
RUN apt-get clean
RUN apt-get update && \
apt-get install -y -o Acquire::Retires=10 \
autoconf \
......
......@@ -35,6 +35,7 @@ else
fi
# install build deps
apt-get clean
apt-get update
apt-get upgrade -o Acquire::Retires=10 -y
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.
Finish editing this message first!
Please register or to comment