Skip to content

Commit

Permalink
docker appears to be building now
Browse files Browse the repository at this point in the history
  • Loading branch information
nrminor committed Aug 27, 2024
1 parent 3eb2073 commit b1c63ed
Show file tree
Hide file tree
Showing 4 changed files with 8,437 additions and 12 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ cython_debug/
# concessions to pixi
.pixi/
src/
pixi.lock

# nextflow stuff
.nextflow/
Expand Down
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ FROM ubuntu:20.04
WORKDIR /scratch

# Set environment variables
ENV DEBIAN_FRONTEND noninteractive
ENV TZ America/New_York
ENV HOME /home
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/New_York
ENV HOME=/home

# Set default command to be the bash shell
ENTRYPOINT ["bash"]
Expand All @@ -24,7 +24,6 @@ RUN apt-get update && \
libxml2-dev \
libxslt-dev \
libffi-dev \
python3-dev \
git && \
apt install --fix-broken && \
apt-get clean && \
Expand All @@ -39,24 +38,25 @@ RUN cd $HOME && \
rm -rf dorado-0.7.1-linux-x64.tar.gz

# add the dorado files to $PATH
ENV PATH $PATH:$HOME/dorado-0.7.1-linux-x64/bin:$HOME/dorado-0.7.1-linux-x64/lib:$HOME/dorado-0.7.1-linux-x64
ENV PATH=$PATH:$HOME/dorado-0.7.1-linux-x64/bin:$HOME/dorado-0.7.1-linux-x64/lib:$HOME/dorado-0.7.1-linux-x64

# predownload dorado models so that dorado can basecall offline
RUN cd $HOME && dorado download

# Install everything else with Pixi:
# --------------------------------
# 1) copy the required dependency and configuration file into the image
COPY pyproject.toml /$HOME/pyproject.toml
COPY pyproject.toml $HOME/pyproject.toml
COPY pixi.lock $HOME/pixi.lock

# 2) install pixi
RUN cd $HOME && PIXI_ARCH=x86_64 curl -fsSL https://pixi.sh/install.sh | bash

# 3) make sure pixi and pixi installs are on the $PATH
ENV PATH $PATH:$HOME/.pixi/bin
ENV PATH=$PATH:$HOME/.pixi/bin

# 4) install everything else with pixi
RUN cd $HOME && pixi install
RUN cd $HOME && pixi clean cache --yes && pixi install --verbose --color=always --frozen && pixi clean cache --yes

# 5) modify the shell config so that each container launches within the pixi env
RUN echo "export PATH=$PATH:$HOME/.pixi/envs/default/bin" >> $HOME/.bashrc
Expand Down
Loading

0 comments on commit b1c63ed

Please sign in to comment.