File tree Expand file tree Collapse file tree 3 files changed +5
-32
lines changed
Expand file tree Collapse file tree 3 files changed +5
-32
lines changed Original file line number Diff line number Diff line change 11ARG BASE_IMAGE
22FROM $BASE_IMAGE
33ENV GEM_HOME=/var/runtime
4+ ADD test/dockerized/tasks /var/task
45RUN gem uninstall aws_lambda_ric --executables
56ADD pkg /tmp/pkg
67RUN gem install /tmp/pkg/aws_lambda_ric-*.gem
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -44,21 +44,21 @@ test-dockerized:
4444 docker build . -t local/test -f Dockerfile.test --build-arg BASE_IMAGE=public.ecr.aws/lambda/ruby:$(RUBY_VERSION )
4545 @echo " Setting up containerized test runner..."
4646 @if [ ! -d " .test-runner" ]; then \
47- echo " Cloning containerized-test-runner-for-aws-lambda..." ; \
48- git clone --quiet git@github.com:aws /containerized-test-runner-for-aws-lambda.git .test-runner; \
47+ echo " Copying local containerized-test-runner-for-aws-lambda..." ; \
48+ cp -r .. /containerized-test-runner-for-aws-lambda .test-runner; \
4949 fi
5050 @echo " Building test runner Docker image..."
51- @docker build -t test-runner:local -f Dockerfile .test-runner .
51+ @docker build -t test-runner:local -f .test-runner/Dockerfile .test-runner
5252 @echo " Running tests in Docker..."
5353 @docker run --rm \
54+ --entrypoint suite \
5455 -e DOCKER_API_VERSION=1.41 \
5556 -v /var/run/docker.sock:/var/run/docker.sock \
5657 -v $(CURDIR ) /test/dockerized/tasks:$(CURDIR ) /test/dockerized/tasks:ro \
5758 -v $(CURDIR ) /test/dockerized/suites:/suites:ro \
5859 test-runner:local \
5960 --test-image local/test \
6061 --debug \
61- --task-root $(CURDIR ) /test/dockerized/tasks \
6262 /suites/* .json
6363
6464.PHONY : pr
You can’t perform that action at this time.
0 commit comments