-
-
Save tarnacious/cf626e2a380146a2abdd to your computer and use it in GitHub Desktop.
stdin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker compose build | |
docker compose up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf /build | |
mkdir build | |
cd build | |
git clone https://anonscm.debian.org/cgit/showme/box.git | |
cd box && make images/stretch/d-i/xfce/A20-OLinuXino-Lime2.img.gz | |
cp images/stretch/d-i/xfce/A20-OLinuXino-Lime2.img.gz /data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
demo: | |
build: . | |
volumes: | |
- ./data:/data | |
privileged: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile | |
FROM debian:stretch | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
make \ | |
curl \ | |
boxer \ | |
cpio \ | |
u-boot-tools \ | |
fusefat \ | |
git \ | |
lsb-release | |
ADD build.sh build.sh | |
VOLUME ["/data"] | |
CMD sh ./build.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attaching to 0b06e6ed6da26a821949_demo_1 | |
[36mdemo_1 | [0mCloning into 'box'... | |
[36mdemo_1 | [0mmkdir -p vendor/stretch-20150911/ | |
[36mdemo_1 | [0mcurl -fsSRo 'vendor/stretch-20150911/firmware.A20-OLinuXino-Lime2.img.gz' 'http://ftp.de.debian.org/debian/dists/stretch/main/installer-armhf/20150911/images/netboot/SD-card-images/firmware.A20-OLinuXino-Lime2.img.gz' | |
[36mdemo_1 | [0mmkdir -p vendor/stretch-20150911/ | |
[36mdemo_1 | [0mcurl -fsSRo 'vendor/stretch-20150911/partition.img.gz' 'http://ftp.de.debian.org/debian/dists/stretch/main/installer-armhf/20150911/images/netboot/SD-card-images/partition.img.gz' | |
[36mdemo_1 | [0mmkdir -p imageparts/stretch/plain/ | |
[36mdemo_1 | [0mcp -f vendor/stretch-20150911/partition.img.gz imageparts/stretch/plain/partition.img.gz | |
[36mdemo_1 | [0mgunzip -f imageparts/stretch/plain/partition.img.gz | |
[36mdemo_1 | [0mmkdir -p imageparts/stretch/plain//ramdisk | |
[36mdemo_1 | [0mfusefat -o rw+ imageparts/stretch/plain/partition.img imageparts/stretch/plain//ramdisk | |
[36mdemo_1 | [0mvolume mounted in rw mode | |
[36mdemo_1 | [0mfat type: FAT32. Fsi at 1 | |
[36mdemo_1 | [0mFsioff: 512, size: 512 | |
[36mdemo_1 | [0m--- nxtfree --- :48873 | |
[36mdemo_1 | [0m--- freecnt --- :27848 | |
[36mdemo_1 | [0mdataclusters :76720 | |
[36mdemo_1 | [0mfirst data byte : 630784 | |
[36mdemo_1 | [0m1st fat off : 16384 | |
[36mdemo_1 | [0m2nd fat off : 323584 | |
[36mdemo_1 | [0mfat_eoc_value: 268435448 | |
[36mdemo_1 | [0mfat_eoc_value is eoc?: 1 | |
[36mdemo_1 | [0mperl -0777 -pe 's/^[^#]*//s' imageparts/stretch/plain//ramdisk/boot.scr > imageparts/stretch/plain//boot.cmd | |
[36mdemo_1 | [0msed -i '2asetenv console tty1\nsetenv bootargs partman-auto/method?=regular mirror/country=manual mirror/http/hostname=snapshot.debian.org mirror/http/directory=/archive/debian/20151002T213032Z apt-setup/services-select=updates preseed/early_command=\\"date -s 2015-10-03\\" clock-setup/ntp=false fb=false' imageparts/stretch/plain//boot.cmd | |
[36mdemo_1 | [0mmkimage -C gzip -A arm -T script -d imageparts/stretch/plain//boot.cmd imageparts/stretch/plain//boot.scr | |
[36mdemo_1 | [0mImage Name: | |
[36mdemo_1 | [0mCreated: Mon Nov 16 15:31:49 2015 | |
[36mdemo_1 | [0mImage Type: ARM Linux Script (gzip compressed) | |
[36mdemo_1 | [0mData Size: 1680 Bytes = 1.64 kB = 0.00 MB | |
[36mdemo_1 | [0mLoad Address: 00000000 | |
[36mdemo_1 | [0mEntry Point: 00000000 | |
[36mdemo_1 | [0mContents: | |
[36mdemo_1 | [0m Image 0: 1672 Bytes = 1.63 kB = 0.00 MB | |
[36mdemo_1 | [0mrm -f imageparts/stretch/plain//ramdisk/BOOT.SCR | |
[36mdemo_1 | [0mcp imageparts/stretch/plain//boot.scr imageparts/stretch/plain//ramdisk/BOOT.SCR | |
[36mdemo_1 | [0mfusermount -u imageparts/stretch/plain//ramdisk | |
[36mdemo_1 | [0mgzip -f imageparts/stretch/plain/partition.img | |
[36mdemo_1 | [0mmkdir -p content/xfce-stretch/ | |
[36mdemo_1 | [0mcd content/xfce-stretch/ \ | |
[36mdemo_1 | [0m && boxer compose \ | |
[36mdemo_1 | [0m --nodedir /build/box/nodes \ | |
[36mdemo_1 | [0m --skeldir /build/box/skel \ | |
[36mdemo_1 | [0m --suite stretch \ | |
[36mdemo_1 | [0m xfce | |
[36mdemo_1 | [0mmkdir -p imageparts/stretch/xfce/ | |
[36mdemo_1 | [0mcp -f imageparts/stretch/plain/partition.img.gz imageparts/stretch/xfce/partition.img.gz | |
[36mdemo_1 | [0mgunzip -f imageparts/stretch/xfce/partition.img.gz | |
[36mdemo_1 | [0mmkdir -p imageparts/stretch/xfce//ramdisk | |
[36mdemo_1 | [0mfusefat -o rw+ imageparts/stretch/xfce/partition.img imageparts/stretch/xfce//ramdisk | |
[36mdemo_1 | [0mvolume mounted in rw mode | |
[36mdemo_1 | [0mfat type: FAT32. Fsi at 1 | |
[36mdemo_1 | [0mFsioff: 512, size: 512 | |
[36mdemo_1 | [0m--- nxtfree --- :48877 | |
[36mdemo_1 | [0m--- freecnt --- :27847 | |
[36mdemo_1 | [0mdataclusters :76720 | |
[36mdemo_1 | [0mfirst data byte : 630784 | |
[36mdemo_1 | [0m1st fat off : 16384 | |
[36mdemo_1 | [0m2nd fat off : 323584 | |
[36mdemo_1 | [0mfat_eoc_value: 268435448 | |
[36mdemo_1 | [0mfat_eoc_value is eoc?: 1 | |
[36mdemo_1 | [0mcp -f imageparts/stretch/xfce//ramdisk/initrd.gz imageparts/stretch/xfce/ | |
[36mdemo_1 | [0mgunzip -f imageparts/stretch/xfce//initrd.gz | |
[36mdemo_1 | [0mcp -f content/xfce-stretch/preseed.cfg imageparts/stretch/xfce/ | |
[36mdemo_1 | [0mcd imageparts/stretch/xfce/ && echo preseed.cfg | cpio --format=newc -oAO initrd | |
[36mdemo_1 | [0m15 blocks | |
[36mdemo_1 | [0mgzip -f imageparts/stretch/xfce//initrd | |
[36mdemo_1 | [0mrm -f imageparts/stretch/xfce//ramdisk/INITRD.GZ | |
[36mdemo_1 | [0mcp imageparts/stretch/xfce//initrd.gz imageparts/stretch/xfce//ramdisk/INITRD.GZ | |
[36mdemo_1 | [0mfusermount -u imageparts/stretch/xfce//ramdisk | |
[36mdemo_1 | [0mgzip -f imageparts/stretch/xfce/partition.img | |
[36mdemo_1 | [0mmkdir -p images/stretch/d-i/xfce/ | |
[36mdemo_1 | [0mzcat vendor/stretch-20150911/firmware.A20-OLinuXino-Lime2.img.gz imageparts/stretch/xfce/partition.img.gz | gzip > images/stretch/d-i/xfce/A20-OLinuXino-Lime2.img.gz~ | |
[36mdemo_1 | [0mmv -f images/stretch/d-i/xfce/A20-OLinuXino-Lime2.img.gz~ images/stretch/d-i/xfce/A20-OLinuXino-Lime2.img.gz | |
[36mdemo_1 | [0m | |
[36mdemo_1 | [0mWARNING: Install uses snapshot archive (bug#803769). | |
[36mdemo_1 | [0m !!! Time will be set back during install (bug#771699). | |
[36mdemo_1 | [0m !!! At first boot of new system, edit /etc/apt/sources.list e.g. to this: | |
[36mdemo_1 | [0m deb http://httpredir.debian.org/debian/ stretch main | |
[36mdemo_1 | [0m deb http://httpredir.debian.org/debian/ stretch-updates main | |
[36mdemo_1 | [0m deb http://security.debian.org/ stretch main | |
[36m0b06e6ed6da26a821949_demo_1 exited with code 0 | |
[0mGracefully stopping... (press Ctrl+C again to force) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment