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

build_container.sh: use eatmydata for apt operations #95

Closed
wants to merge 1 commit into from
Closed
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
14 changes: 9 additions & 5 deletions build_container.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash
set -ex

apt-get update

# DEBIAN_FRONTEND is set for tzdata.
DEBIAN_FRONTEND="noninteractive" apt-get install --no-install-recommends -y \
export DEBIAN_FRONTEND="noninteractive"

apt-get update && \
apt-get install -y eatmydata


eatmydata apt-get install --no-install-recommends -y \
curl gcc git python3 python3-pip shellcheck \
libssl-dev tzdata cmake g++ pkg-config jq libcurl4-openssl-dev libelf-dev \
libdw-dev binutils-dev libiberty-dev make \
Expand All @@ -15,9 +19,9 @@ DEBIAN_FRONTEND="noninteractive" apt-get install --no-install-recommends -y \
debhelper-compat libdbus-1-dev libglib2.0-dev meson ninja-build dbus

# cleanup
apt-get clean && rm -rf /var/lib/apt/lists/*
eatmydata apt-get clean && rm -rf /var/lib/apt/lists/*

pip3 install --no-cache-dir pytest pexpect boto3 pytest-timeout && apt purge -y python3-pip
pip3 install --no-cache-dir pytest pexpect boto3 pytest-timeout && eatmydata apt purge -y python3-pip

# Install rustup and a fixed version of Rust.
curl https://sh.rustup.rs -sSf | sh -s -- \
Expand Down
Loading