Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/e2e_tests/guest_under_test/rootfs_benches/postgres.sh
5394 views
1
#!/bin/bash
2
# Copyright 2023 The ChromiumOS Authors
3
# Use of this source code is governed by a BSD-style license that can be
4
# found in the LICENSE file.
5
6
# Generate compressed rootfs image for postgres e2e benchmark
7
# Result will be stored as /tmp/psql.img.zst
8
9
CONTAINER=$(podman create ghcr.io/cloudnative-pg/postgresql:15.3)
10
podman export $CONTAINER > /tmp/psql.tar
11
podman rm $CONTAINER
12
virt-make-fs --format=raw --size=+512M --type=ext4 /tmp/psql.tar /tmp/psql.img
13
rm /tmp/psql.tar
14
zstd --rm /tmp/psql.img
15
16