Skip to content

Commit

Permalink
Merge pull request #457 from VisionSystemsInc/nullglob_self_delete
Browse files Browse the repository at this point in the history
Update recipe and blueprints
  • Loading branch information
andyneff authored Aug 17, 2023
2 parents 0884eab + 7e29f5e commit 1676bfb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ function caseify()
justify test int "${tests[@]}"
)
;;
build_recipe-tests) # Build recipes tests
pushd "${VSI_COMMON_DIR}/docker/recipes/tests" &> /dev/null
Docker buildx bake ${@+"${@}"}
popd &> /dev/null
extra_args=${#}
;;
test_recipe) # Run docker recipe tests
local JUST_IGNORE_EXIT_CODES=123
TESTLIB_DISCOVERY_DIR="${VSI_COMMON_DIR}/docker/recipes/tests" vsi_test_env "${VSI_COMMON_DIR}/tests/run_tests" ${@+"${@}"}
Expand Down
2 changes: 1 addition & 1 deletion docker/blueprints
2 changes: 1 addition & 1 deletion docker/tests/python2.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM python:2 as dep_stage
SHELL ["/usr/bin/env", "bash", "-euxvc"]

COPY --from=pipenv /usr/local /usr/local
RUN for patch in /usr/local/share/just/container_build_patch/*; do "${patch}"; done
RUN shopt -s nullglob; for patch in /usr/local/share/just/container_build_patch/*; do "${patch}"; done

ENV WORKON_HOME=/venv \
PIPENV_PIPFILE=/vsi/docker/tests/Pipfile2 \
Expand Down
2 changes: 1 addition & 1 deletion docker/tests/python3.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SHELL ["/usr/bin/env", "bash", "-euxvc"]
# rm -r /var/lib/apt/lists/*

COPY --from=pipenv /usr/local /usr/local
RUN for patch in /usr/local/share/just/container_build_patch/*; do "${patch}"; done
RUN shopt -s nullglob; for patch in /usr/local/share/just/container_build_patch/*; do "${patch}"; done

ENV WORKON_HOME=/venv \
PIPENV_PIPFILE=/vsi/docker/tests/Pipfile3 \
Expand Down
2 changes: 1 addition & 1 deletion docker/vsi_common/pyinstaller.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ENV WORKON_HOME=/venv \
JUSTFILE=/vsi/docker/vsi_common/pyinstaller.Justfile

COPY --from=pipenv /usr/local /usr/local
RUN for patch in /usr/local/share/just/container_build_patch/*; do "${patch}"; done
RUN shopt -s nullglob; for patch in /usr/local/share/just/container_build_patch/*; do "${patch}"; done

ARG PYINSTALLER_VERSION=3.6
RUN pip3 install pyinstaller=="${PYINSTALLER_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion docker/vsi_common/sphinx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ENV WORKON_HOME=/venv \
JUSTFILE=/vsi/docker/vsi_common/sphinx.Justfile

COPY --from=pipenv /usr/local /usr/local
RUN for patch in /usr/local/share/just/container_build_patch/*; do "${patch}"; done
RUN shopt -s nullglob; for patch in /usr/local/share/just/container_build_patch/*; do "${patch}"; done

# I need these Pipfiles before the rest of VSI below. This way the cache is only
# invalidated by the Pipfiles, not the rest of vsi_common
Expand Down

0 comments on commit 1676bfb

Please sign in to comment.