Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added some apt-get tweaks #333

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mcrouter/scripts/clean_ubuntu_14.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@

set -ex

sudo apt-get install -y libdouble-conversion1 libgflags2 \
sudo apt-get --no-install-recommends install -y libdouble-conversion1 libgflags2 \
libboost-program-options1.54.0 libboost-filesystem1.54.0 \
libboost-system1.54.0 libboost-regex1.54.0 libboost-thread1.54.0 \
libboost-context1.54.0 libgoogle-glog0 libevent-2.0-5 libjemalloc1

sudo apt-get purge -y gcc g++ ragel autoconf \
sudo apt-get -purge purge -y gcc g++ ragel autoconf \
git libtool python-dev libssl-dev libevent-dev \
binutils-dev make libdouble-conversion-dev libgflags-dev \
libgoogle-glog-dev libjemalloc-dev

sudo apt-get purge -y 'libboost.*-dev'
sudo apt-get --purge purge -y 'libboost.*-dev'
sudo apt-get autoremove --purge -y
sudo apt-get autoclean -y
sudo apt-get clean -y
Expand Down
11 changes: 10 additions & 1 deletion mcrouter/scripts/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ ENV MCROUTER_DIR /usr/local/mcrouter
ENV MCROUTER_REPO https://github.com/facebook/mcrouter.git
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y git && \
RUN apt-get update && apt-get --no-install-recommends install -y git && \
apt-get clean && \
apt-get purge autoremove && \
rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
/usr/share/doc \
/usr/share/doc-base && \
mkdir -p $MCROUTER_DIR/repo && \
cd $MCROUTER_DIR/repo && git clone $MCROUTER_REPO && \
cd $MCROUTER_DIR/repo/mcrouter/mcrouter/scripts && \
Expand Down
7 changes: 6 additions & 1 deletion mcrouter/scripts/install_ubuntu_14.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sudo add-apt-repository -y ppa:sickpig/boost

sudo apt-get update

sudo apt-get install -y \
sudo apt-get --no-install-recommends install -y \
autoconf \
binutils-dev \
bison \
Expand Down Expand Up @@ -58,3 +58,8 @@ export CC="gcc-5"
export CXX="g++-5"

./get_and_build_everything.sh ubuntu-14.04 "$@"

# Some Cleanup Up On the go
sudo apt-get clean

sudo apt-get -y --purge autoremove
7 changes: 6 additions & 1 deletion mcrouter/scripts/install_ubuntu_15.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -ex

sudo apt-get update

sudo apt-get install -y \
sudo apt-get --no-install-recommends install -y \
autoconf \
binutils-dev \
bison \
Expand Down Expand Up @@ -41,3 +41,8 @@ sudo apt-get install -y \
cd "$(dirname "$0")" || ( echo "cd fail"; exit 1 )

./get_and_build_everything.sh ubuntu-15.04 "$@"

# Some Cleanup Up On the go
sudo apt-get clean

sudo apt-get -y --purge autoremove
7 changes: 6 additions & 1 deletion mcrouter/scripts/install_ubuntu_16.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -ex
sudo apt-get update

# Note libzstd-dev is not available on stock Ubuntu 14.04 or 15.04.
sudo apt-get install -y \
sudo apt-get --no-install-recommends install -y \
autoconf \
binutils-dev \
bison \
Expand Down Expand Up @@ -43,3 +43,8 @@ sudo apt-get install -y \
cd "$(dirname "$0")" || ( echo "cd fail"; exit 1 )

./get_and_build_everything.sh ubuntu-16.04 "$@"

# Some Cleanup Up On the go
sudo apt-get clean

sudo apt-get -y --purge autoremove
8 changes: 7 additions & 1 deletion mcrouter/scripts/install_ubuntu_18.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TARGET="${2:-all}"
sudo apt-get update

# Note libzstd-dev is not available on stock Ubuntu 14.04 or 15.04.
sudo apt-get install -y \
sudo apt-get --no-install-recommends install -y \
autoconf \
binutils-dev \
bison \
Expand Down Expand Up @@ -46,3 +46,9 @@ sudo apt-get install -y \
cd "$(dirname "$0")" || ( echo "cd fail"; exit 1 )

./get_and_build_by_make.sh "Makefile_ubuntu-18.04" "$TARGET" "$BASE_DIR"


# Some Cleanup Up On the go
sudo apt-get clean

sudo apt-get -y --purge autoremove