Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Ensure container is fully updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Sep 5, 2022
1 parent 0e36ba5 commit d832f37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY --from=galaxy /usr/share/ansible /usr/share/ansible

COPY --from=builder /output/ /output/
RUN /output/install-from-bindep && rm -rf /output/wheels
RUN alternatives --set python /usr/bin/python3
RUN set -ex && /output/install-from-bindep && rm -rf /output/wheels && alternatives --set python /usr/bin/python3 && dnf -y upgrade && dnf autoremove
# add some helpful CLI commands to check we do not remove them inadvertently and output some helpful version information at build time.
RUN set -ex \
&& molecule --version \
Expand Down
7 changes: 6 additions & 1 deletion execution-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ dependencies:
python: _build/requirements.txt
additional_build_steps:
append:
- RUN alternatives --set python /usr/bin/python3
- >-
RUN set -ex &&
/output/install-from-bindep && rm -rf /output/wheels &&
alternatives --set python /usr/bin/python3 &&
dnf -y upgrade &&
dnf autoremove
- |-
# add some helpful CLI commands to check we do not remove them inadvertently and output some helpful version information at build time.
RUN set -ex \
Expand Down

0 comments on commit d832f37

Please sign in to comment.