Skip to content

Commit

Permalink
Add --target when running tests locally
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Silva <taylorsilva@outlook.com>
  • Loading branch information
taylorsilva committed Mar 16, 2021
1 parent 2adf6b9 commit de16a36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ will stop the build.
Run the tests with the following commands for both `alpine` and `ubuntu` images:

```sh
docker build -t s3-resource -f dockerfiles/alpine/Dockerfile .
docker build -t s3-resource -f dockerfiles/ubuntu/Dockerfile .
docker build -t s3-resource --target tests -f dockerfiles/alpine/Dockerfile .
docker build -t s3-resource --target tests -f dockerfiles/ubuntu/Dockerfile .
```

#### Integration tests
Expand All @@ -241,15 +241,15 @@ integration will run.
Run the tests with the following command:

```sh
docker build . -t s3-resource -f dockerfiles/alpine/Dockerfile \
docker build . -t s3-resource --target tests -f dockerfiles/alpine/Dockerfile \
--build-arg S3_TESTING_ACCESS_KEY_ID="access-key" \
--build-arg S3_TESTING_SECRET_ACCESS_KEY="some-secret" \
--build-arg S3_TESTING_BUCKET="bucket-non-versioned" \
--build-arg S3_VERSIONED_TESTING_BUCKET="bucket-versioned" \
--build-arg S3_TESTING_REGION="us-east-1" \
--build-arg S3_ENDPOINT="https://s3.amazonaws.com"
docker build . -t s3-resource -f dockerfiles/ubuntu/Dockerfile \
docker build . -t s3-resource --target tests -f dockerfiles/ubuntu/Dockerfile \
--build-arg S3_TESTING_ACCESS_KEY_ID="access-key" \
--build-arg S3_TESTING_SECRET_ACCESS_KEY="some-secret" \
--build-arg S3_TESTING_BUCKET="bucket-non-versioned" \
Expand Down

0 comments on commit de16a36

Please sign in to comment.