Skip to content

Commit

Permalink
Merge pull request #94 from amutake/feature/check-so
Browse files Browse the repository at this point in the history
Check shared libraries installed
  • Loading branch information
amutake committed Feb 4, 2024
2 parents 6854c52 + 53f3961 commit 10802b5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions branch-saphe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ RUN apt-get update && \
apt-get install -y git wget unzip && \
rm -rf /var/lib/apt/lists/*

# Check all shared libraries installed
RUN for bin in satysfi saphe; do \
ldd $(which $bin) | grep "not found"; \
if [ $? -eq 0 ]; then \
exit 1; \
fi; \
done

# Setup build directory
RUN mkdir /satysfi
WORKDIR /satysfi
Expand Down
8 changes: 8 additions & 0 deletions branch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ COPY --from=build-env /satyrographos-revision /satyrographos-revision

RUN date --iso-8601=seconds > /build-date

# Check all shared libraries installed
RUN for bin in satysfi satyrographos; do \
ldd $(which $bin) | grep "not found"; \
if [ $? -eq 0 ]; then \
exit 1; \
fi; \
done

# Setup build directory
RUN mkdir /satysfi
WORKDIR /satysfi
Expand Down
8 changes: 8 additions & 0 deletions opam-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ RUN git clone --depth=1 https://github.com/ocaml/opam-repository.git \
COPY --from=build-env /satysfi /usr/local/bin/satysfi
COPY --from=build-env /satyrographos /usr/local/bin/satyrographos

# Check all shared libraries installed
RUN for bin in satysfi satyrographos; do \
ldd $(which $bin) | grep "not found"; \
if [ $? -eq 0 ]; then \
exit 1; \
fi; \
done

# Install satysfi-dist
RUN opam install satysfi-dist.${SATYSFI_VERSION} \
&& opam clean -a -c -r --logs --unused-repositories \
Expand Down
8 changes: 8 additions & 0 deletions slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ COPY --from=build-env /root/.satysfi /usr/local/share/satysfi
COPY --from=build-env /satysfi /usr/local/bin/satysfi
COPY --from=build-env /satyrographos /usr/local/bin/satyrographos

# Check all shared libraries installed
RUN for bin in satysfi satyrographos; do \
ldd $(which $bin) | grep "not found"; \
if [ $? -eq 0 ]; then \
exit 1; \
fi; \
done

# Setup build directory
RUN mkdir /satysfi
WORKDIR /satysfi
Expand Down

0 comments on commit 10802b5

Please sign in to comment.