Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ralph-tice/43dfb1ecc8fbc38b8b040fa68a0d32ce to your computer and use it in GitHub Desktop.
Save ralph-tice/43dfb1ecc8fbc38b8b040fa68a0d32ce to your computer and use it in GitHub Desktop.
docker pull concurrency triage from 2015-07
amazon linux kernel notes -- aufs support -- docker pull concurrency problem
# first hint of a custom AMI for ECS
# https://forums.aws.amazon.com/ann.jspa?annID=2805
# launched with 100gb gp2
aws ec2 run-instances --instance-type c4.xlarge --key-name ralph.tice --image-id ami-8da458e6 --subnet-id subnet-880a3fb2 --security-group-ids sg-ff2f1f9b --block-device-mappings "[{\"DeviceName\":\"/dev/xvda\",\"Ebs\":{\"DeleteOnTermination\":true,\"SnapshotId\":\"snap-f6edf1be\",\"VolumeSize\":100,\"VolumeType\":\"gp2\"}}]"
https://forums.aws.amazon.com/thread.jspa?messageID=628676&#628676
sudo bash
/usr/bin/get_reference_source -p kernel-$(uname -r)
/usr/sbin/useradd mockbuild
/bin/rpm -Uvh /usr/src/srpm/debug/kernel*.src.rpm
# git clone https://github.com/morfoh/aufs3-standalone
# the one above is tooo old
# wget http://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-3_p20141208.tar.xz
# xz -d aufs3-standalone-3_p20141208.tar.xz && tar xf aufs3-standalone-3_p20141208.tar
git clone https://github.com/ralph-tice/aufs3-standalone
cd aufs3-standalone/ && git checkout aufs3.14.21+ #should be default branch but let's be specific
cd /usr/src/rpm/SOURCES/
cp /home/ec2-user/aufs3-standalone/aufs3-kbuild.patch ./0039-mmf-aufs-kbuild.patch
cp /home/ec2-user/aufs3-standalone/aufs3-base.patch ./0040-mmf-aufs-base.patch
cp /home/ec2-user/aufs3-standalone/aufs3-mmap.patch ./0041-mmf-aufs-mmap.patch
cp /home/ec2-user/aufs3-standalone/aufs3-standalone.patch ./0042-mmf-aufs-standalone.patch
chown mockbuild.mockbuild ./*-mmf*.patch
cd /home/ec2-user/aufs3-standalone
patch /usr/src/rpm/SPECS/kernel.spec kernel_spec_include_aufs_patches.patch
time /usr/bin/rpmbuild -bb /usr/src/rpm/SPECS/kernel.spec
yum localinstall /usr/src/rpm/RPMS/x86_64/kernel-3.14.44-32.39.mmf.aufs.amzn1.x86_64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment