lvc / abi-dumper

Dump ABI of an ELF object containing DWARF debug info
GNU Lesser General Public License v2.1
178 stars 35 forks source link

Add a Dockerfile #13

Closed ebraminio closed 6 years ago

ebraminio commented 6 years ago

Hi there. Thanks for the great work. I've created a simple container for abi-dumper so users can have a reproducible recipe for using the great tool. I've also uploaded the container on ebraminio/abi-dumper and for example building HarfBuzz upon it needs something like this,

FROM ebraminio/abi-dumper
RUN apt update && \
    apt install -y ragel cpanminus && \
    git clone https://github.com/harfbuzz/harfbuzz && cd harfbuzz && \
        CFLAGS="-Og -g" CXXFLAGS="-Og -g" ./autogen.sh && make && cd .. && \
    abi-dumper `find . -name 'libharfbuzz.so.0.*'` && \
    cpanm JSON && \
    perl -le 'use JSON; print to_json(do shift, {canonical => 1, pretty => 1});' ./ABI.dump > ABI.json

Feel free to upload the image somewhere else. Cheers

lvc commented 6 years ago

Great. Thank you!