Skip to content

Commit

Permalink
fix env
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Dec 18, 2024
1 parent 7d84b5b commit 9a873de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion infrastructure/aws/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ STACK_CLIENT=labs
STACK_PROJECT=labs
STACK_BUCKETS='["*"]'

STACK_ADDITIONAL_ENV='{"TITILER_OPENEO_STAC_API_URL":"https://stac.eoapi.dev", "TITILER_OPENEO_SERVICE_STORE_URL":"/var/task/eoapi.json"}'
STACK_ADDITIONAL_ENV='{"TITILER_OPENEO_STAC_API_URL":"https://stac.eoapi.dev", "TITILER_OPENEO_SERVICE_STORE_URL":"/var/task/services/eoapi.json"}'
6 changes: 3 additions & 3 deletions infrastructure/aws/lambda/lambda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ RUN rm -rdf /asset/botocore*
COPY infrastructure/aws/lambda/handler.py /asset/handler.py

# Copy Services files
COPY services/copernicus.json /asset/copernicus.json
COPY services/eoapi.json /asset/eoapi.json
COPY services/copernicus.json /asset/services/copernicus.json
COPY services/eoapi.json /asset/services/eoapi.json

WORKDIR /asset

# Set the ENV to test the handler
ENV TITILER_OPENEO_STAC_API_URL="https://stac.eoapi.dev"
ENV TITILER_OPENEO_SERVICE_STORE_URL="services/eoapi.json"
ENV TITILER_OPENEO_SERVICE_STORE_URL="/asset/services/eoapi.json"

RUN python -c "from handler import handler; print('All Good')"

Expand Down

0 comments on commit 9a873de

Please sign in to comment.