mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Change the way we install from backports in the deb builder (to force deps too)
Also, add "libsystemd-journal-dev" to the explicit list (which is what prompted the change in how we install). Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
parent
d02ed72e30
commit
722fac7a73
2 changed files with 9 additions and 4 deletions
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
FROM debian:wheezy-backports
|
FROM debian:wheezy-backports
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools/wheezy-backports build-essential curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libltdl-dev libsqlite3-dev pkg-config libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y -t wheezy-backports btrfs-tools libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN apt-get update && apt-get install -y apparmor bash-completion build-essential curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libltdl-dev libsqlite3-dev pkg-config --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV GO_VERSION 1.5.3
|
ENV GO_VERSION 1.5.3
|
||||||
RUN curl -fSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
RUN curl -fSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
||||||
|
|
|
@ -97,9 +97,13 @@ for version in "${versions[@]}"; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$suite" = 'wheezy' ]; then
|
if [ "$suite" = 'wheezy' ]; then
|
||||||
# pull btrfs-toold from backports
|
# pull a couple packages from backports explicitly
|
||||||
backports="/$suite-backports"
|
# (build failures otherwise)
|
||||||
packages=( "${packages[@]/btrfs-tools/btrfs-tools$backports}" )
|
backportsPackages=( btrfs-tools libsystemd-journal-dev )
|
||||||
|
for pkg in "${backportsPackages[@]}"; do
|
||||||
|
packages=( "${packages[@]/$pkg}" )
|
||||||
|
done
|
||||||
|
echo "RUN apt-get update && apt-get install -y -t $suite-backports ${backportsPackages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "RUN apt-get update && apt-get install -y ${packages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
echo "RUN apt-get update && apt-get install -y ${packages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
||||||
|
|
Loading…
Reference in a new issue