Skip to content

Commit

Permalink
Merge pull request #4 from rtuck99/main
Browse files Browse the repository at this point in the history
Add dockerfile to create a binary with debug symbols
  • Loading branch information
githubgphl authored May 17, 2024
2 parents 4bbdd6a + 3794793 commit 1184135
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile-imginfo-debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:22.04

ADD . /imginfo/

WORKDIR "/imginfo"

RUN sed -i -e 's/^HXXFLAGS = -O2 -Wall/HXXFLAGS = -g -Wall/' Makefile
RUN sed -i -e 's/^HCCFLAGS = -O2 -Wall/HCCFLAGS = -g -Wall/' Makefile
RUN apt-get update && apt-get -y install hdf5-helpers wget unzip build-essential libbz2-dev file vim less zlib1g-dev automake libtool gdb
RUN wget -O bitshuffle-master.zip https://github.com/kiyo-masui/bitshuffle/archive/refs/heads/master.zip && unzip bitshuffle-master.zip
RUN wget -O HDF5Plugin-master.zip https://github.com/dectris/HDF5Plugin/archive/refs/heads/master.zip && unzip HDF5Plugin-master.zip
RUN wget -O HDF5-External-Filter-Plugins-master.zip https://github.com/nexusformat/HDF5-External-Filter-Plugins/archive/refs/heads/master.zip && unzip HDF5-External-Filter-Plugins-master.zip

RUN sed -i -e 's/^# deb-src/deb-src/' /etc/apt/sources.list

WORKDIR /usr/src
RUN apt-get update && apt-get source libhdf5-dev
WORKDIR /usr/src/hdf5-1.10.7+repack
RUN autoreconf
RUN ./configure --with-flavor=x86_64-linux-gnu --prefix=/usr --enable-build-mode=debug --enable-cxx
RUN make && make install

WORKDIR /imginfo

RUN make

0 comments on commit 1184135

Please sign in to comment.