mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
Merge pull request #3882 from dachary/wip-install-deps-alternatives
install-deps.sh: strip | in the list of packages Reviewed-by: Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
387887893f
@ -38,6 +38,7 @@ Ubuntu|Debian|Devuan)
|
||||
packages=$(dpkg-checkbuilddeps --admindir=$DIR debian/control 2>&1 | \
|
||||
perl -p -e 's/.*Unmet build dependencies: *//;' \
|
||||
-e 's/build-essential:native/build-essential/;' \
|
||||
-e 's/\|//g;' \
|
||||
-e 's/\(.*?\)//g;' \
|
||||
-e 's/ +/\n/g;' | sort)
|
||||
case $(lsb_release -sc) in
|
||||
@ -45,7 +46,8 @@ Ubuntu|Debian|Devuan)
|
||||
packages=$(echo $packages | perl -pe 's/[-\w]*babeltrace[-\w]*//g')
|
||||
;;
|
||||
esac
|
||||
$SUDO apt-get install -y $packages
|
||||
packages=$(echo $packages) # change newlines into spaces
|
||||
$SUDO bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -y $packages"
|
||||
;;
|
||||
CentOS|Fedora|SUSE*|RedHatEnterpriseServer)
|
||||
case $(lsb_release -si) in
|
||||
|
@ -265,6 +265,9 @@ check_SCRIPTS += test/ceph-disk.sh
|
||||
endif
|
||||
|
||||
EXTRA_DIST += \
|
||||
$(srcdir)/test/debian-jessie/Dockerfile.in \
|
||||
$(srcdir)/test/debian-jessie/install-deps.sh \
|
||||
$(srcdir)/test/debian-jessie/debian \
|
||||
$(srcdir)/test/ubuntu-12.04/Dockerfile.in \
|
||||
$(srcdir)/test/ubuntu-12.04/install-deps.sh \
|
||||
$(srcdir)/test/ubuntu-12.04/debian \
|
||||
|
31
src/test/debian-jessie/Dockerfile.in
Normal file
31
src/test/debian-jessie/Dockerfile.in
Normal file
@ -0,0 +1,31 @@
|
||||
#
|
||||
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
||||
#
|
||||
# Author: Loic Dachary <loic@dachary.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Library Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Library Public License for more details.
|
||||
#
|
||||
# Environment variables are substituted via envsubst(1)
|
||||
#
|
||||
# user_id=$(id -u)
|
||||
# os_version= the desired REPOSITORY TAG
|
||||
#
|
||||
FROM debian:%%os_version%%
|
||||
|
||||
COPY install-deps.sh /root/
|
||||
RUN mkdir /root/debian
|
||||
COPY debian /root/debian/
|
||||
RUN apt-get update
|
||||
# build dependencies
|
||||
RUN cd /root ; ./install-deps.sh
|
||||
# development tools
|
||||
RUN apt-get install -y ccache valgrind gdb python-virtualenv gdisk kpartx hdparm jq xmlstarlet
|
||||
RUN useradd -M --uid %%user_id%% %%USER%% && echo '%%USER%% ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
1
src/test/debian-jessie/debian
Symbolic link
1
src/test/debian-jessie/debian
Symbolic link
@ -0,0 +1 @@
|
||||
../../../debian
|
1
src/test/debian-jessie/install-deps.sh
Symbolic link
1
src/test/debian-jessie/install-deps.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../install-deps.sh
|
@ -27,5 +27,5 @@ RUN apt-get update
|
||||
# build dependencies
|
||||
RUN cd /root ; ./install-deps.sh
|
||||
# development tools
|
||||
RUN apt-get install -y ccache valgrind gdb python-virtualenv gdisk kpartx hdparm jq xmlstarlet
|
||||
RUN apt-get install -y ccache valgrind gdb python-virtualenv gdisk kpartx hdparm xmlstarlet
|
||||
RUN useradd -M --uid %%user_id%% %%USER%% && echo '%%USER%% ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||
|
Loading…
Reference in New Issue
Block a user