mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 14:05:27 +00:00
Similarly to what has be done for Azure in #48636, this commit adds a new :test:fixtures:gcs-fixture project which provides two docker-compose based fixtures that emulate a Google Cloud Storage service. Some code has been extracted from existing tests and placed into this new project so that it can be easily reused in other projects.
17 lines
402 B
Docker
17 lines
402 B
Docker
FROM ubuntu:19.04
|
|
|
|
RUN apt-get update -qqy
|
|
RUN apt-get install -qqy openjdk-12-jre-headless
|
|
|
|
ARG port
|
|
ARG bucket
|
|
ARG token
|
|
|
|
ENV GCS_FIXTURE_PORT=${port}
|
|
ENV GCS_FIXTURE_BUCKET=${bucket}
|
|
ENV GCS_FIXTURE_TOKEN=${token}
|
|
|
|
ENTRYPOINT exec java -classpath "/fixture/shared/*" \
|
|
fixture.gcs.GoogleCloudStorageHttpFixture 0.0.0.0 "$GCS_FIXTURE_PORT" "$GCS_FIXTURE_BUCKET" "$GCS_FIXTURE_TOKEN"
|
|
|
|
EXPOSE $port |