View gist:feff9dadb989b35df7cd4e34ff40fa71
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
//@flow | |
import MongoClient from 'mongodb'; | |
import { dbUrl, dbName } from '../config/dbconfig'; | |
async function clean(req: Object, reply: Object): Object { | |
const collections = ['posts', 'boards', 'users', 'comments']; | |
for (let collection of collections) { | |
let client; |
View gist:5b21c046027880e5e8cec2869513a74a
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
vagrant@vagrant ~ $ sudo tree -L 1 /var/lib/docker | |
/var/lib/docker | |
├── builder | |
├── buildkit | |
├── containers | |
├── image | |
├── network | |
├── overlay2 | |
├── plugins | |
├── runtimes |
View gist:8e5ecb8b38f65d1cec7254c9cc7e553d
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
"RootFS": { | |
"Type": "layers", | |
"Layers": [ | |
"sha256:3e207b409db364b595ba862cdc12be96dcdad8e36c59a03b7b3b61c946a5741a" | |
] | |
}, |
View gist:87617db3b6d97124ec160e35b92e48d4
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
"RootFS": { | |
"Type": "layers", | |
"Layers": [ | |
"sha256:3e207b409db364b595ba862cdc12be96dcdad8e36c59a03b7b3b61c946a5741a", | |
"sha256:74cc1405e2b0a6b0883d6d5921ce8c50bd0205d0eb9ddd5243f0e0f0301acc42" | |
] | |
}, |
View gist:5388fa9ce8536cbf0f5e0a95ee5833b0
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
mkdir -p myimage/rootfs && cd myimage/rootfs | |
curl -o alpine.tar.gz http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-minirootfs-3.11.0-x86_64.tar.gz | |
tar zxvf alpine.tar.gz | |
rm alpine.tar.gz |
View gist:6004a52e4436fbb918e67771f1ad9deb
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
vagrant@vagrant ~ $ sudo ls alpine-bundle/ | |
config.json rootfs sha256_219c332183ec3800bdfda43b3b27f7f516b8683b48352190f4d14ce25be00eed.mtree umoci.json | |
vagrant@vagrant ~ $ sudo ls alpine-bundle/rootfs | |
bin dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var |
View gist:b2c69f30ecb6fc11f98552d700a38757
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
# prepare rootfs | |
mkdir -p myimage/rootfs && cd myimage/rootfs | |
curl -o alpine.tar.gz http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-minirootfs-3.11.0-x86_64.tar.gz | |
tar zxvf alpine.tar.gz | |
rm alpine.tar.gz |
View gist:b3afa53a4ed0061f213ab635591b1d9d
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
vagrant@vagrant ~/myimage $ docker image ls --digests | |
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE | |
alpine latest sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321 a24bb4013296 23 hours ago 5.57MB |
View gist:e8f61938e776f7f2231bc0a938da4dd2
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
root@vagrant:/var/lib/docker# tree -L 2 | |
. | |
├── builder | |
│ └── fscache.db | |
├── buildkit | |
│ ├── cache.db | |
│ ├── content | |
│ ├── executor | |
│ ├── metadata.db | |
│ └── snapshots.db |
View gist:f72331636c02b77232fa6dbae4031ce9
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
root@vagrant:/var/lib/docker# tree | |
. | |
├── builder | |
│ └── fscache.db | |
├── buildkit | |
│ ├── cache.db | |
│ ├── content | |
│ │ └── ingest | |
│ ├── executor | |
│ ├── metadata.db |
OlderNewer