diff options
author | Zach Koopmans <zkoopmans@google.com> | 2020-01-16 13:00:58 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-16 13:42:08 -0800 |
commit | 94be30a18dc7c75dc70716ce1ede74a7fb1352fb (patch) | |
tree | a52a6bfdedc400c80e47427466d3fe381f4b8f2a /benchmarks/harness/machine.py | |
parent | c50efc8c700fa2628f1415daeeb3b382009eb1bb (diff) |
Add run-gcp command.
Add command to run benchmarks on GCP backed machines
using the gcloud producer.
Run with:
`bazel run :benchmarks -- run-gcp [BENCHMARK_NAME]`
Tested with the startup benchmark.
PiperOrigin-RevId: 290126444
Diffstat (limited to 'benchmarks/harness/machine.py')
-rw-r--r-- | benchmarks/harness/machine.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmarks/harness/machine.py b/benchmarks/harness/machine.py index af037dbcc..2df4c9e31 100644 --- a/benchmarks/harness/machine.py +++ b/benchmarks/harness/machine.py @@ -214,6 +214,9 @@ class RemoteMachine(Machine): # Push to the remote machine and build. logging.info("Building %s@%s remotely...", workload, self._name) remote_path = self._ssh_connection.send_workload(workload) + # Workloads are all tarballs. + self.run("tar -xvf {remote_path}/tar.tar -C {remote_path}".format( + remote_path=remote_path)) self.run("docker build --tag={} {}".format(workload, remote_path)) return workload # Workload is the tag. |