Skip to content
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

Code cleanup #10

Merged
merged 7 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .dockstore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 1.2
workflows:
- subclass: WDL
primaryDescriptorPath: embedding_creation_script.wdl
name: EmbeddingCreation
20 changes: 5 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd

# Install gcloud so that we can access AWS secrets from Secret Manager.
FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:slim as gcloud
# Start from the actual Docker image used to compute the embeddings in 2022 and 2023.
FROM gcr.io/terra-solutions-jump-cp-dev/embedding_creation:20221027_090451

FROM tensorflow/tensorflow:latest-gpu

ENV TFHUB_CACHE_DIR=/opt/hub_models

ADD cache_model.py /opt

RUN pip3 install apache-beam[gcp,dataframe] google-cloud-secret-manager fsspec[gcs,s3] imagecodecs Pillow tensorflow-hub tifffile tqdm \
&& rm -rf ~/.cache/pip \
&& python3 /opt/cache_model.py

COPY --from=gcloud /usr/lib/google-cloud-sdk /usr/lib/google-cloud-sdk

RUN ln -s /usr/lib/google-cloud-sdk/bin/gcloud /usr/bin/gcloud
# Add the finalized scripts
ADD scatter_wells_s3.py /opt
ADD embedding_creation.py /opt
Loading
Loading