mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-15 06:24:37 +00:00
d7557e8c25
To facilitate collaboration with developers working on the BUILD-SI project who are using github, I have been maintaining a clone of the libabigail repo there. Having this repo also allows us to leverage some of the tooling that github provides, in particular the ability to have github actions test patches to verify that the builds succeed, and all the regression tests run successfully. This will allow it to better integrate with the normal agile workflow used by at least this community of developers. * .github/workflows/build-container.yaml: New file. * .github/workflows/libabigail.yaml: Likewise. * .github/workflows/test.yaml: Likewise. * .github/workflows/test-fedora.yaml: Likewise. * .github/README.md: Likewise. * docker/Dockerfile.fedora: Likewise. * docker/Dockerfile.ubuntu: Likewise. * docker/Dockerfile.fedora-base: Likewise. * docker/Dockerfile.test: Likewise. * README-DOCKER.md: Likewise. Signed-off-by: Vanessa Sochat <sochat1@llnl.gov> Reviewed-by: Ben Woodard <woodard@redhat.com> Signed-off-by: Dodji Seketeli <dodji@redhat.com>
31 lines
1.0 KiB
Docker
31 lines
1.0 KiB
Docker
ARG ubuntu_version=22.04
|
|
ARG gcc_version=10.3.0
|
|
FROM ghcr.io/rse-ops/gcc-ubuntu-${ubuntu_version}:gcc-${gcc_version}
|
|
|
|
# docker build -t ghcr.io/woodard/libabigail-ubuntu-22.04 .
|
|
|
|
# Install Libabigail to its own view
|
|
WORKDIR /opt/abigail-env
|
|
RUN . /opt/spack/share/spack/setup-env.sh && \
|
|
spack env create -d . && \
|
|
spack env activate . && \
|
|
spack add libabigail@master && \
|
|
spack --debug install
|
|
|
|
# Prepare a source extraction of libabigail at /src (intended to be overwritten by user)
|
|
COPY . /src
|
|
|
|
# Second run - should have deps cached
|
|
RUN . /opt/spack/share/spack/setup-env.sh && \
|
|
|
|
# This adds metadata for libabigail to spack.yaml
|
|
spack develop --path /src libabigail@master && \
|
|
spack --debug install
|
|
# At this point you can spack install, and bind the code to /code to develop
|
|
|
|
# ensure libabigail stuffs always on the path
|
|
RUN cd /opt/abigail-env && \
|
|
spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh
|
|
|
|
ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l", "-c"]
|