Skip to content

Commit

Permalink
🔥🐳 Fix docker-builds by removing pinned dependencies
Browse files Browse the repository at this point in the history
Add scheduled midnight build for Autometa docker images to catch when builds are failing
:whale: Make WORKDIR /Autometa
:fire: Remove scipy, scikit-learn and joblib pins
  • Loading branch information
evanroyrees committed Aug 10, 2023
1 parent f13ee91 commit 07a889c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker_autometa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ on:
branches:
- main
- dev
schedule:
- cron: '0 0 * * *' # every day at midnight

jobs:
docker_autometa:
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM continuumio/miniconda3
FROM condaforge/mambaforge:latest
LABEL maintainer="jason.kwan@wisc.edu"

# Copyright 2022 Ian J. Miller, Evan R. Rees, Kyle Wolf, Siddharth Uppal,
Expand All @@ -25,11 +25,12 @@ RUN apt-get update --allow-releaseinfo-change \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY autometa-env.yml ./
RUN conda env update -n base --file=autometa-env.yml \
&& conda clean --all -y
RUN mamba env update -n base --file=autometa-env.yml \
&& mamba clean --all -y


COPY . .
COPY . /Autometa
WORKDIR /Autometa
RUN make install && make clean

# NOTE: DB_DIR must be an absolute path (not a relative path)
Expand Down
6 changes: 3 additions & 3 deletions autometa-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- gdown
- hdbscan
- hmmer
- joblib==1.1.0 # See https://stackoverflow.com/a/73830525/12671809
- joblib
- numba>=0.47
- numpy>=1.13
- pandas>=1.1
Expand All @@ -24,8 +24,8 @@ dependencies:
- rsync
- samtools>=1.11
- scikit-bio
- scipy==1.8.1 #force scipy 1.8 until scikit-bio updates to 1.9, https://github.com/KwanLab/Autometa/issues/285
- scikit-learn==0.24 # prevent error from joblib in multiprocessing distance calculations
- scipy
- scikit-learn
- seqkit
- tqdm
- trimap
Expand Down

0 comments on commit 07a889c

Please sign in to comment.