Skip to content

Commit

Permalink
Correcting naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lindenmckenzie committed Jul 5, 2023
1 parent 3d6c259 commit 1e38962
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .env.default
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BERLN_API_HOST=0.0.0.0
BERLN_API_PORT=28900
BERLIN_API_HOST=0.0.0.0
BERLIN_API_PORT=28900

BERLIN_API_LOGGING_NAMESPACE=dp_nlp_berlin_api
BERLIN_API_DATA_LOCATION=data/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /usr/src/

COPY app /usr/src/app
COPY data /usr/src/data
COPY api.py poetry.lock pyproject.toml /usr/src/
COPY .env.local poetry.lock pyproject.toml /usr/src/

RUN poetry install --no-dev

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ audit: deps ## audits code for vulnerable dependencies
poetry run safety check -i 51457

build:
docker build --build-arg build_time="${BUILD_TIME}" --build-arg commit="${GIT_COMMIT}" --build-arg version="${VERSION}" -t berlin_api .
docker build --build-arg build_time="${BERLIN_API_BUILD_TIME}" --build-arg commit="${BERLIN_API_GIT_COMMIT}" --build-arg version="${BERLIN_API_VERSION}" -t berlin_api .

build-bin: deps
poetry build
Expand All @@ -48,7 +48,7 @@ run: ## Start the api locally on port 28900.
FLASK_APP=${FLASK_APP} poetry run flask run --port ${BERLIN_API_PORT}

run-container:
docker run --env BUILD_TIME='${BUILD_TIME}' -e GIT_COMMIT="${GIT_COMMIT}" -e VERSION="${VERSION}" -ti berlin_api
docker run --env BERLIN_API_BUILD_TIME='${BERLIN_API_BUILD_TIME}' -e BERLIN_API_BUILD_TIME="${BERLIN_API_BUILD_TIME}" -e BERLIN_API_VERSION="${BERLIN_API_VERSION}" -ti berlin_api

test: deps ## runs all tests
poetry run pytest -v tests/
Expand Down

0 comments on commit 1e38962

Please sign in to comment.