Skip to content

Commit dd77866

Browse files
authored
Merge pull request #299 from broadinstitute/jlc_fix_image
Restore missing symlink to python in docker image (SCP-4547)
2 parents 74a1d97 + e42abd1 commit dd77866

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ RUN apt-get -y update && \
2525

2626
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
2727

28-
# # Set cleaner defaults (`alias` fails)
29-
# RUN ln -s /usr/bin/python3.10 /usr/bin/python && \
30-
# ln -s /usr/bin/pip3 /usr/bin/pip
28+
# symlink python3.10 to python
29+
RUN ln -s /usr/bin/python3.10 /usr/bin/python
3130

3231
# Copy contents of this repo into the Docker image
3332
# (See .Dockerignore for omitted files)
@@ -36,7 +35,7 @@ COPY . scp-ingest-pipeline
3635
WORKDIR /scp-ingest-pipeline
3736

3837
# Install Python dependencies
39-
RUN python3.10 -m pip install -r requirements.txt
38+
RUN python -m pip install -r requirements.txt
4039

4140
WORKDIR /scp-ingest-pipeline/ingest
4241
CMD ["python", "ingest_pipeline.py", "--help"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ There are some extra steps required, but this sidesteps the need to install pack
119119
Run the following command to build the testing Docker image locally (make sure Docker is running first). This build command will incorporate any changes in the local instance of your repo, committed or not:
120120

121121
```
122-
docker build -t gcr.io/broad-singlecellportal-staging/ingest-pipeline:test-candidate .
122+
docker build -t ingest-pipeline:test-candidate .
123123
```
124124

125-
Note - if this is your first time doing `docker build` you may need to configure Docker to use the Google Cloud CLI to authenticate requests to Container Registry:
125+
Note - the base Ubuntu image used in the Dockerfile comes from Google Container Registry (GCR, aka gcr.io), if this is your first time doing `docker build` you may need to configure Docker to use the Google Cloud CLI to authenticate requests to Container Registry:
126126

127127
```
128128
gcloud auth configure-docker
@@ -163,7 +163,7 @@ Run the container, passing in the proper environment variables:
163163
docker run --name scp-ingest-test -e MONGODB_USERNAME="$MONGODB_USERNAME" -e DATABASE_NAME="$DATABASE_NAME" \
164164
-e MONGODB_PASSWORD="$MONGODB_PASSWORD" -e DATABASE_HOST="$DATABASE_HOST" \
165165
-e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keyfile.json --rm -it \
166-
gcr.io/broad-singlecellportal-staging/ingest-pipeline:test-candidate bash
166+
ingest-pipeline:test-candidate bash
167167
```
168168

169169
Note: on an M1 machine, you may see this message:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pandocfilters==1.4.2
1010
mypy-extensions==0.4.1
1111
dataclasses==0.6
1212
colorama==0.4.1
13-
pymongo==3.9.0
13+
pymongo==3.12.0
1414
backoff==1.10.0
1515
scanpy==1.9.2
1616

0 commit comments

Comments
 (0)