Created
March 9, 2017 11:45
-
-
Save KemperVreden/032483678ed0c4247804366973cf5741 to your computer and use it in GitHub Desktop.
This file contains 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
simon@ubuntu:~/Documents/resin-preload-image-script$ sudo ./preload.sh --app 206443 --api-token "nononoapitokenhere" --img ~/Documents/airwatch2production-uart.img | |
[sudo] Passwort für simon: | |
Sending build context to Docker daemon 249.9 kB | |
Step 1 : FROM docker:1.10-dind | |
---> 305c151749f4 | |
Step 2 : RUN apk update && apk add --no-cache bash curl jq parted btrfs-progs docker util-linux | |
---> Using cache | |
---> 83a39ee72017 | |
Step 3 : COPY ./src /usr/src/app | |
---> Using cache | |
---> f5944c9519fa | |
Step 4 : WORKDIR /usr/src/app | |
---> Using cache | |
---> 51e3825609e7 | |
Step 5 : CMD /usr/src/app/preload.sh | |
---> Using cache | |
---> 0ce2919f4bb4 | |
Successfully built 0ce2919f4bb4 | |
Fetching application data | |
Using API host https://api.resin.io | |
Using Registry host registry.resin.io | |
Using API_TOKEN | |
Fetching image data airwatch2production/06638b0220b0f1f259be273ff4290f6287f257e4 | |
Image ID: 16260a90c5df861a5619e82aab6aad77f3300f53aabcf2758e25e65b1a54afc1 | |
Fetching container data | |
Container size: 284 MB | |
Mapping /img/resin.img 46137344:188743680 to /dev/loop0 | |
Mounting rootfs from /dev/loop0 to /mnt/206443-rootfs | |
Sourcing release info from /mnt/206443-rootfs/etc/os-release | |
Detected Resin OS 1.24.1 | |
id: resin-os | |
name: Resin OS | |
version: 1.24.1 | |
version_id: 1.24 | |
pretty_name: Resin OS 1.24.1 | |
resin_board_rev: 01b1911 | |
meta_resin_rev: a26c2cd | |
slug: raspberry-pi2 | |
machine: raspberrypi2 | |
Unmounting rootfs from /mnt/206443-rootfs | |
umount: /mnt/206443-rootfs unmounted | |
Unmapping /dev/loop0 | |
Model: (file) | |
Disk /img/resin.img: 1527MB | |
Sector size (logical/physical): 512B/512B | |
Partition Table: msdos | |
Disk Flags: | |
Number Start End Size Type File system Flags | |
1 4.19MB 46.1MB 41.9MB primary fat16 boot, lba | |
2 46.1MB 235MB 189MB primary ext3 | |
3 235MB 424MB 189MB primary | |
4 424MB 1527MB 1103MB extended lba | |
5 428MB 449MB 21.0MB logical ext4 lba | |
6 453MB 1527MB 1074MB logical btrfs | |
Expanding image by 312 MB | |
312+0 records in | |
312+0 records out | |
Expanding extended partition 4 by 312 MB | |
Expanding logical partition 6 by 312 MB | |
Model: (file) | |
Disk /img/resin.img: 1854MB | |
Sector size (logical/physical): 512B/512B | |
Partition Table: msdos | |
Disk Flags: | |
Number Start End Size Type File system Flags | |
1 4.19MB 46.1MB 41.9MB primary fat16 boot, lba | |
2 46.1MB 235MB 189MB primary ext3 | |
3 235MB 424MB 189MB primary | |
4 424MB 1839MB 1415MB extended lba | |
5 428MB 449MB 21.0MB logical ext4 lba | |
6 453MB 1839MB 1386MB logical btrfs | |
Creating mountpoint /mnt/206443 | |
Expanding filesystem | |
Using BTRFS | |
Mapping /img/resin.img 452984832:1386015232 to /dev/loop0 | |
Using /dev/loop0 | |
Mounting application fs to /mnt/206443 | |
Resizing filesystem | |
Resize '/mnt/206443' of 'max' | |
Removing /mnt/206443/rce | |
Waiting for Docker to start... | |
INFO[0000] Graph migration to content-addressability took 0.00 seconds | |
WARN[0000] Running modprobe bridge br_netfilter failed with message: modprobe: can't change directory to '/lib/modules': No such file or directory | |
, error: exit status 1 | |
WARN[0000] Running modprobe nf_nat failed with message: `modprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1 | |
INFO[0000] Default bridge (docker0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address | |
WARN[0000] Your kernel does not support swap memory limit. | |
INFO[0000] Loading containers: start. | |
INFO[0000] Loading containers: done. | |
INFO[0000] Daemon has completed initialization | |
INFO[0000] Docker daemon commit=20f81dd execdriver=native-0.2 graphdriver=btrfs version=1.10.3 | |
INFO[0000] API listen on /tmp/docker-206443/docker.sock | |
Docker started | |
Pulling image... | |
Using default tag: latest | |
Pulling repository registry.resin.io/airwatch2production/06638b0220b0f1f259be273ff4290f6287f257e4 | |
16260a90c5df: Pull complete | |
e2b4bb313c2b: Pull complete | |
ecc58d8bf71a: Pull complete | |
4c4e8cab9d81: Pull complete | |
57025feba2ef: Pull complete | |
c1b58b5ec3bb: Pull complete | |
142f89f5cb7d: Pull complete | |
ea36329b4b66: Pull complete | |
0c9784455eb8: Pull complete | |
e044e6f3fc15: Pull complete | |
f9f445d67e5b: Pull complete | |
8805ca95328d: Pull complete | |
3778f16f8768: Pull complete | |
4918ad00a2ce: Pull complete | |
af2ee0825c6e: Pull complete | |
c137a1a4409a: Pull complete | |
dad9d948a031: Pull complete | |
ba2ed21d5fb4: Pull complete | |
f1de917d52d7: Pull complete | |
c92b18a3a679: Pull complete | |
d4a798ece790: Pull complete | |
cba42204ffb5: Pull complete | |
e0319daccfb6: Pull complete | |
0b924d1cf65e: Pull complete | |
77c89607e65b: Pull complete | |
90bb20541af8: Pull complete | |
1b351d1ede07: Pull complete | |
b4a8a77f1b45: Pull complete | |
f2e274ead278: Pull complete | |
42298c142355: Pull complete | |
61f1b72a2b37: Pull complete | |
463099144774: Pull complete | |
48935500e1ff: Pull complete | |
88cfc352cea6: Pull complete | |
6731002bd841: Pull complete | |
64e6d9bdc1f0: Pull complete | |
d33685c3dcad: Pull complete | |
6ac9199d4b60: Pull complete | |
be3565e1d4f6: Pull complete | |
c22e2cb6e9d6: Pull complete | |
48ad48818e12: Pull complete | |
Status: Downloaded newer image for registry.resin.io/airwatch2production/06638b0220b0f1f259be273ff4290f6287f257e4:latest | |
registry.resin.io/airwatch2production/06638b0220b0f1f259be273ff4290f6287f257e4: this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker. | |
Docker images loaded: | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
registry.resin.io/airwatch2production/06638b0220b0f1f259be273ff4290f6287f257e4 latest 896bc2ecf505 48 minutes ago 754.5 MB | |
resin/armv7hf-supervisor latest eef8cf4afe02 3 months ago 67.53 MB | |
resin/armv7hf-supervisor v2.8.3 eef8cf4afe02 3 months ago 67.53 MB | |
Done. | |
Cleaning up | |
Waiting for Docker to stop | |
INFO[0153] Processing signal 'terminated' | |
Removing Docker tmp files | |
removed directory: '/tmp/docker-206443' | |
Unmounting application from /mnt/206443 | |
umount: /mnt/206443 unmounted | |
Unmapping loopback interfaces | |
resin-image-preloader | |
simon@ubuntu:~/Documents/resin-preload-image-script$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment