Skip to content

Commit

Permalink
properly set env vars in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeifer committed Jul 12, 2023
1 parent fb8ca38 commit 23d7864
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v7.0.2] - 2023-07-12

### Changed

- Properly set required env vars in Dockerfile ([#22])

## [v7.0.1] - 2023-07-11

### Changed
Expand Down Expand Up @@ -70,8 +76,8 @@ schema.

Initial release

[unreleased]: https://github.com/element84/swoop-db/compare/v7.0.0...main
[unreleased]: https://github.com/element84/swoop-db/compare/v7.0.1...main
[unreleased]: https://github.com/element84/swoop-db/compare/v7.0.2...main
[v7.0.2]: https://github.com/element84/swoop-db/compare/v7.0.1...7.0.2
[v7.0.1]: https://github.com/element84/swoop-db/compare/v7.0.0...7.0.1
[v7.0.0]: https://github.com/element84/swoop-db/compare/v2.0.0...7.0.0
[v2.0.0]: https://github.com/element84/swoop-db/compare/v0.1.0...2.0.0
Expand All @@ -83,5 +89,6 @@ Initial release
[#19]: https://github.com/Element84/swoop-db/pull/19
[#20]: https://github.com/Element84/swoop-db/pull/20
[#21]: https://github.com/Element84/swoop-db/pull/21
[#22]: https://github.com/Element84/swoop-db/pull/22

[dbami]: https://github.com/element84/dbami
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ RUN set -x && \
tar -xzf pgtap.tar.gz --strip-components 1 && \
make install

ENV PGDATABASE: "${PGDATABASE:-swoop}"
ENV PGUSER: "${PGUSER:-postgres}"
ENV PGDATABASE "${PGDATABASE:-swoop}"
ENV PGUSER "${PGUSER:-postgres}"

# copy the python venv into this output image and add it's bin to the path
COPY --from=APP /opt/swoop/db/swoop-db-venv /opt/swoop/db/swoop-db-venv
Expand Down

0 comments on commit 23d7864

Please sign in to comment.