File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,12 @@ function run_data_ingestion_pipeline() {
79
79
function create_tarball() {
80
80
local path_source=$1
81
81
local path_destination=$2
82
+ intermediate=" /home/root/$( date +%Y%m%d_%H%M%S) .tgz"
83
+
82
84
log " [START] Creating tarball from '${path_source} ' to '${path_destination} '"
83
- tar czf - -C ${path_source} . | gsutil cp - ${path_destination}
85
+ tar --use-compress-program=pigz -cf " $intermediate " -C " ${path_source} " .
86
+ gsutil cp " $intermediate " " ${path_destination} "
87
+
84
88
log " [DONE] Creating tarball from '${path_source} ' to '${path_destination} '"
85
89
}
86
90
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function install_packages() {
14
14
log " Updating system"
15
15
apt-get update
16
16
log " Installing required packages"
17
- apt-get install -y wget vim tmux python3-pip docker.io docker-compose curl git tree htop
17
+ apt-get install -y wget vim tmux python3-pip docker.io docker-compose curl git tree htop pigz
18
18
log " Adding POS user '${POS_USER_NAME} ' to docker group"
19
19
usermod -aG docker ${POS_USER_NAME}
20
20
log " Installing esbulk loader"
@@ -66,4 +66,4 @@ log "Launching postprocessing scripts, at $$(pwd)"
66
66
log " Postprocessing scripts completed"
67
67
# Shutting down this postproduction machine
68
68
log " [--- Shutting down this postproduction machine ---]"
69
- poweroff
69
+ poweroff
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ variable "vm_pos_boot_image" {
91
91
variable "vm_pos_boot_disk_size" {
92
92
description = " POS VM boot disk size, default '64GB'"
93
93
type = string
94
- default = 64
94
+ default = 512
95
95
}
96
96
97
97
variable "vm_pos_machine_type" {
@@ -137,5 +137,3 @@ variable "elastic_search_data_disk_size" {
137
137
type = string
138
138
default = " 256"
139
139
}
140
-
141
-
You can’t perform that action at this time.
0 commit comments