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

Enable GCS, S3, and libdeflate support for bcftools #1019

Merged
merged 6 commits into from
Aug 21, 2024
3 changes: 3 additions & 0 deletions bcftools/1.20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
libbz2-dev \
liblzma-dev \
libcurl4-gnutls-dev \
libdeflate-dev \
libssl-dev \
libperl-dev \
libgsl0-dev \
Expand All @@ -31,6 +32,7 @@ RUN wget https://github.com/samtools/bcftools/releases/download/${BCFTOOLS_VER}/
tar -xjf bcftools-${BCFTOOLS_VER}.tar.bz2 && \
rm -v bcftools-${BCFTOOLS_VER}.tar.bz2 && \
cd bcftools-${BCFTOOLS_VER} && \
./configure && \
make && \
make install && \
make test
Expand Down Expand Up @@ -63,6 +65,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
bzip2 \
liblzma-dev \
libcurl4-gnutls-dev \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these actually need to be -dev versions with headers in the runtime container? Do plugins somehow compile/link against them at runtime or can they just be liblzma libcurl4-gnutls?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about compilation & linking, but I think the correct syntax is liblzma5 for Ubuntu Jammy: https://packages.ubuntu.com/search?suite=jammy&section=all&arch=any&keywords=liblzma&searchon=names

and libcurl4: https://packages.ubuntu.com/search?suite=jammy&section=all&arch=any&keywords=libcurl4&searchon=names

I believe when the samtools/bcftools/htslib dockerfiles were written we were following these instructions: https://github.com/samtools/samtools/blob/972c1889942a4f07d8f62e93330f723da919c271/INSTALL#L220

libdeflate \
procps \
&& apt-get autoclean && rm -rf /var/lib/apt/lists/* && \
mkdir /data
Expand Down
Loading