forked from collectd/ci-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 2 entrypoint scripts for debian/redhat family images
- Loading branch information
Marc Fournier
committed
Jan 31, 2019
1 parent
ba84baf
commit d581a05
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh -e | ||
|
||
COMMON_PACKAGES="\ | ||
autoconf \ | ||
automake \ | ||
autotools-dev \ | ||
bison \ | ||
clang \ | ||
cpp \ | ||
dpkg-dev \ | ||
flex \ | ||
gcc \ | ||
gdb \ | ||
git \ | ||
libc6-dev \ | ||
libtool \ | ||
linux-libc-dev \ | ||
m4 \ | ||
make \ | ||
pkg-config \ | ||
strace \ | ||
valgrind \ | ||
" | ||
|
||
sed -i 's/main$/main contrib non-free/' /etc/apt/sources.list | ||
|
||
cat << EOF > /etc/apt/apt.conf.d/50misc-opts | ||
APT::Install-Recommends "0"; | ||
APT::Install-Suggests "0"; | ||
DPkg::options { "--force-confdef"; }; | ||
EOF | ||
|
||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
apt-get -y update | ||
|
||
apt-get -y install $COMMON_PACKAGES $EXTRA_PACKAGES | ||
|
||
apt-get -y clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh -e | ||
|
||
COMMON_PACKAGES="\ | ||
autoconf \ | ||
automake \ | ||
bison \ | ||
clang \ | ||
cpp \ | ||
curl \ | ||
flex \ | ||
gcc \ | ||
gcc-c++ \ | ||
gdb \ | ||
git \ | ||
glibc-devel \ | ||
libgcrypt-devel \ | ||
libtool \ | ||
libtool-ltdl-devel \ | ||
m4 \ | ||
make \ | ||
nc \ | ||
pkgconfig \ | ||
redhat-rpm-config \ | ||
strace \ | ||
tar \ | ||
valgrind \ | ||
" | ||
|
||
yum -y update | ||
|
||
yum -y install $COMMON_PACKAGES $EXTRA_PACKAGES | ||
|
||
yum -y clean all |