Skip to content

Commit 36d6423

Browse files
committed
Clean up
1 parent 605462b commit 36d6423

File tree

5 files changed

+32
-36
lines changed

5 files changed

+32
-36
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ COPY go.mod go.sum ./
2121
RUN go mod download
2222

2323
COPY . .
24-
RUN set -x; if [ "$BUILD_TAGS" = "e2ecollector" ]; then BUILD_DIRECTORY="e2etestrunner-collector"; fi; CGO_ENABLED=0 go test -timeout 3600s -tags=$BUILD_TAGS -c "./$BUILD_DIRECTORY" -o opentelemetry-operations-e2e-testing.test
25-
#RUN CGO_ENABLED=0 go test -tags=e2ecollector -c ./e2etestrunner-collector -o opentelemetry-operations-e2e-testing.test
24+
RUN set -x; if [ "$BUILD_TAGS" = "e2ecollector" ]; then BUILD_DIRECTORY="e2etestrunner-collector"; else BUILD_TAGS="e2e"; BUILD_DIRECTORY="e2etestrunner"; fi; CGO_ENABLED=0 go test -timeout 3600s -tags=$BUILD_TAGS -c "./$BUILD_DIRECTORY" -o opentelemetry-operations-e2e-testing.test
2625

2726
FROM hashicorp/terraform:light as tfbuild
2827
COPY tf /src/tf

Makefile

Lines changed: 0 additions & 13 deletions
This file was deleted.

cloudbuild-collector.yaml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Builds a docker image, tagging it as _DOCKER_TAG (substitution must be
16+
# provided) and latest.
17+
118
steps:
2-
- name: ${E2E_PROJECT}
3-
env: ["PROJECT_ID=$PROJECT_ID"]
4-
dir: /
19+
- name: docker
20+
env:
21+
- DOCKER_BUILDKIT=1
522
args:
6-
- gke-collector
7-
- --image=${COLLECTOR_PROJECT}
23+
- build
24+
- --tag=${_TEST_RUNNER_IMAGE_NAME}:${_DOCKER_TAG}
25+
- --tag=${_TEST_RUNNER_IMAGE_NAME}:latest
26+
- --build-arg=BUILDKIT_INLINE_CACHE=1
27+
- --cache-from=${_TEST_RUNNER_IMAGE_NAME}:latest
28+
- .
29+
30+
images: ["${_TEST_RUNNER_IMAGE_NAME}"]
31+
options:
32+
dynamic_substitutions: true
833
substitutions:
9-
E2E_PROJECT: ''
10-
COLLECTOR_PROJECT: ''
34+
_TEST_RUNNER_IMAGE_NAME: us-central1-docker.pkg.dev/${PROJECT_ID}/e2e-testing/opentelemetry-operations-e2e-testing

tf/.terraform.d/checkpoint_signature

Lines changed: 0 additions & 10 deletions
This file was deleted.

tf/gce-collector/gce-collector.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ module "otel_config" {
7171
test_run_id = terraform.workspace
7272
}
7373

74-
locals {
75-
config_path = "/etc/otelcol-contrib/config.yaml"
76-
}
77-
7874
variable "image" {
7975
type = string
8076
}

0 commit comments

Comments
 (0)