Skip to content

Commit

Permalink
no git needed
Browse files Browse the repository at this point in the history
  • Loading branch information
y3rsh committed Oct 18, 2024
1 parent aca7037 commit 5b27837
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions analyses-snapshot-testing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ local-build:
@echo "Building docker image for your local opentrons code"
@echo "The image will be named opentrons-analysis:local"
@echo "For a fresh build, run 'make local-build NO_CACHE=1'"
sed -i.bak '/^.git/s/^/#/' ../.dockerignore || true
docker build $(BUILD_FLAGS) -t opentrons-analysis:local -f citools/Dockerfile.local .. || true
mv ../.dockerignore.bak ../.dockerignore || true
@echo "Build complete"

.PHONY: local-snapshot-test
Expand Down
3 changes: 1 addition & 2 deletions analyses-snapshot-testing/citools/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ RUN apt-get update && \
WORKDIR /opentrons

# Copy everything from the build context into the /opentrons directory
# root directory .dockerignore file is respected
COPY . /opentrons

# List the contents of the /opentrons directory to verify the .git folder is copied
RUN ls -al /opentrons/.git

# Install required packages from the copied code
RUN python -m pip install -U ./shared-data/python
Expand Down

0 comments on commit 5b27837

Please sign in to comment.