Skip to content

Commit

Permalink
add 2 entrypoint scripts for debian/redhat family images
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Fournier committed Jan 31, 2019
1 parent ba84baf commit d581a05
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
39 changes: 39 additions & 0 deletions debian.sh
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
33 changes: 33 additions & 0 deletions redhat.sh
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

0 comments on commit d581a05

Please sign in to comment.