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
//@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; |
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
vagrant@vagrant ~ $ sudo tree -L 1 /var/lib/docker | |
/var/lib/docker | |
├── builder | |
├── buildkit | |
├── containers | |
├── image | |
├── network | |
├── overlay2 | |
├── plugins | |
├── runtimes |
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
"RootFS": { | |
"Type": "layers", | |
"Layers": [ | |
"sha256:3e207b409db364b595ba862cdc12be96dcdad8e36c59a03b7b3b61c946a5741a" | |
] | |
}, |
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
"RootFS": { | |
"Type": "layers", | |
"Layers": [ | |
"sha256:3e207b409db364b595ba862cdc12be96dcdad8e36c59a03b7b3b61c946a5741a", | |
"sha256:74cc1405e2b0a6b0883d6d5921ce8c50bd0205d0eb9ddd5243f0e0f0301acc42" | |
] | |
}, |
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
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 |
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
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 |
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
# 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 |
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
vagrant@vagrant ~/myimage $ docker image ls --digests | |
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE | |
alpine latest sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321 a24bb4013296 23 hours ago 5.57MB |
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
root@vagrant:/var/lib/docker# tree -L 2 | |
. | |
├── builder | |
│ └── fscache.db | |
├── buildkit | |
│ ├── cache.db | |
│ ├── content | |
│ ├── executor | |
│ ├── metadata.db | |
│ └── snapshots.db |
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
root@vagrant:/var/lib/docker# tree | |
. | |
├── builder | |
│ └── fscache.db | |
├── buildkit | |
│ ├── cache.db | |
│ ├── content | |
│ │ └── ingest | |
│ ├── executor | |
│ ├── metadata.db |
OlderNewer