Skip to content

fix gcs venv #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Dockerfile.gcs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ FROM fsouza/fake-gcs-server

RUN apk update && \
apk --no-cache add py3-pip && \
apk add --virtual=build gcc libffi-dev musl-dev python3-dev && \
pip3 install --upgrade pip && \
pip3 install google-cloud-storage==1.31.2
apk add --virtual=build gcc libffi-dev musl-dev python3-dev

RUN python3 -m venv .venv && \
source .venv/bin/activate && \
python3 -m pip install google-cloud-storage==1.31.2

# Copy init_azurite.py script
COPY ./init_gcs.py init_gcs.py

# Copy local blobs to azurite
COPY ./tests /docker-entrypoint-init-storage
COPY ./tests /data

ENTRYPOINT []
Loading