Skip to content

Commit

Permalink
Merge pull request #1461 from PrefectHQ/docker-prefect-version
Browse files Browse the repository at this point in the history
Docker prefect version
  • Loading branch information
cicdw committed Sep 6, 2019
2 parents 9047a07 + 9d865e1 commit a0cc374
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ These changes are available in the [master branch](https://github.com/PrefectHQ/
- Add OS platform check to Local Agent for running on Windows machines - [#1441](https://github.com/PrefectHQ/prefect/pull/1441)
- Add `--base-url` argument for Docker daemons to `agent start` CLI command - [#1441](https://github.com/PrefectHQ/prefect/pull/1441)
- Add environment labels for organizing / tagging different Flow execution environments - [#1438](https://github.com/PrefectHQ/prefect/issues/1438)
- Use `-U` option when installing `prefect` in Docker containers to override base image version - [#1461](https://github.com/PrefectHQ/prefect/pull/1461)

### Task Library

Expand Down
4 changes: 2 additions & 2 deletions src/prefect/environments/storage/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ def create_dockerfile_object(self, directory: str = None) -> None:
ENV PREFECT__USER_CONFIG_PATH="/root/.prefect/config.toml"
{env_vars}
RUN pip install git+https://github.com/PrefectHQ/prefect.git@{version}#egg=prefect[kubernetes]
# RUN pip install prefect
# update version if base image already has prefect installed
RUN pip install -U git+https://github.com/PrefectHQ/prefect.git@{version}#egg=prefect[kubernetes]
RUN python /root/.prefect/healthcheck.py '[{flow_file_paths}]' '{python_version}'
""".format(
Expand Down

0 comments on commit a0cc374

Please sign in to comment.