Skip to content

Instantly share code, notes, and snippets.

@letientai299
Last active October 25, 2017 05:49
Show Gist options
  • Save letientai299/d139de28e202f156b4cff44e5a3512ac to your computer and use it in GitHub Desktop.
Save letientai299/d139de28e202f156b4cff44e5a3512ac to your computer and use it in GitHub Desktop.
Setup spotify/docker-gc
#!/bin/sh
echo "============================================================"
echo "Install required tools for building deb package"
echo "============================================================"
apt-get update
apt-get install -y git devscripts debhelper build-essential dh-make
echo "============================================================"
echo "Clone the repo"
echo "============================================================"
git clone https://github.com/spotify/docker-gc
echo "============================================================"
echo "Build deb packge"
echo "============================================================"
cd docker-gc
debuild --no-lintian -us -uc -b
echo "============================================================"
echo "Installing"
echo "============================================================"
dpkg -i ../docker-gc_0.1.0_all.deb
echo "============================================================"
echo "Clean up"
echo "============================================================"
cd ..
rm -rf docker-gc
rm docker-gc_0.1.0*
#!/bin/sh
echo "============================================================"
echo "Install required tools for building deb package"
echo "============================================================"
yum update -y
yum install -y git rpm-build make
echo "============================================================"
echo "Clone the repo"
echo "============================================================"
git clone https://github.com/spotify/docker-gc
echo "============================================================"
echo "Build deb packge"
echo "============================================================"
cd docker-gc/rpm
make rpm
echo "============================================================"
echo "Installing"
echo "============================================================"
cd RPMS/noarch
rpm -i docker-gc-0.1.0-1.el7.centos.noarch.rpm
echo "============================================================"
echo "Clean up"
echo "============================================================"
cd ../../../..
rm -rf docker-gc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment