From fcf75b7970dafb9841afbd495f5c4462f62b553f Mon Sep 17 00:00:00 2001 From: Chris Richardson Date: Tue, 11 Aug 2020 18:52:44 -0400 Subject: [PATCH] Add a rio job for building containers Add the rio config and build container for testing the locust operator. --- Dockerfile | 4 ++++ rio.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile create mode 100644 rio.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a27bc5a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM docker.apple.com/piedss/locust:1.1.31 + +RUN mkdir -p /usr/local/load_tests/ +ADD .dist/usr/local/load_tests/locust-example /usr/local/load_tests/locust-example/ diff --git a/rio.yaml b/rio.yaml new file mode 100644 index 0000000..4d54930 --- /dev/null +++ b/rio.yaml @@ -0,0 +1,18 @@ +schemaVersion: 2.0 + +pipelines: + - branchName: develop + name: build_container + machine: + baseImage: docker.apple.com/piedss/locust:1.1.31 + build: + template: freestyle:v4:publish + steps: + - cp test_example.py .dist/usr/local/load_tests/locust-example/ + package: + version: "0.1.${RIO_BUILD_NUMBER}" + dockerfile: + - publish: + - repo: docker.apple.com/piedss/locust-example-python + dockerfilePath: Dockerfile + perApplication: false