Skip to content

Commit

Permalink
fix dockerfile name in backend.test.basecpu
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham3121 committed Nov 24, 2023
1 parent 7f8c407 commit 0ad56e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/grid/backend/worker_cpu.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ RUN --mount=type=cache,target=/var/cache/apk,sharing=locked \
apk update && \
apk add ${SYSTEM_PACKAGES} && \
pip install --user ${PIP_PACKAGES} && \
${CUSTOM_CMD}
bash -c "$CUSTOM_CMD"
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1055,21 +1055,22 @@ setenv =
commands =
bash -c 'docker buildx use default || true'
; Build the base image
bash -c 'docker build -f ./grid/backend/syft_base_cpu.dockerfile . -t cpu-worker:latest'
bash -c 'docker build -f ./grid/backend/worker_cpu.dockerfile . -t cpu-worker:latest'
bash -c 'docker rmi cpu-worker:latest'

bash -c '\
docker build \
-f grid/backend/syft_base_cpu.dockerfile . \
-f grid/backend/worker_cpu.dockerfile . \
-t cpu-worker:opendp \
--build-arg PIP_PACKAGES="$PIP_PACKAGES" \
--build-arg SYSTEM_PACKAGES="$SYSTEM_PACKAGES"'
bash -c 'for pkg in $PIP_PACKAGES; do docker run --rm cpu-worker:opendp pip list | grep "$pkg"; done'
bash -c 'for pkg in $SYSTEM_PACKAGES; do docker run --rm cpu-worker:opendp apk -e info "$pkg"; done'
bash -c 'docker rmi cpu-worker:opendp'

bash -c '\
docker build \
-f grid/backend/syft_base_cpu.dockerfile . \
-f grid/backend/worker_cpu.dockerfile . \
-t cpu-worker:custom-cmd \
--build-arg SYSTEM_PACKAGES="perl wget curl make " \
--build-arg CUSTOM_CMD="""wget -O - "https://github.com/cowsay-org/cowsay/archive/refs/tags/v3.7.0.tar.gz" | tar xvzf - && cd cowsay-3.7.0 && make"""'
Expand Down

0 comments on commit 0ad56e5

Please sign in to comment.