Skip to content

Commit

Permalink
Fix ccl/Dockerfile. (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi authored Aug 12, 2023
1 parent b4ab834 commit f0f23bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ccl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ ARG VERSION

ADD https://github.com/roswell/ccl_bin/releases/download/$VERSION/ccl-$VERSION-linuxx86.tar.gz ccl.tar.gz

# hadolint ignore=SC2010,DL3003,DL3008,DL4006
# hadolint ignore=SC2164,DL3003,DL3008,DL4006
RUN set -x; \
if [ "$OS" = "alpine" ]; then \
ros install ccl-bin; \
else \
apt-get update && apt-get -y install --no-install-recommends build-essential m4; \
ros install sbcl-bin && \
tar xvfz ccl.tar.gz && rm ccl.tar.gz && \
mkdir /root/.roswell/impls/x86-64/linux/ccl-bin && mv ccl "/root/.roswell/impls/x86-64/linux/ccl-bin/$VERSION"; \
(cd "/root/.roswell/impls/x86-64/linux/ccl-bin/$VERSION/lisp-kernel/linuxx8664" || exit 1) && make && (cd /root || exit 1); \
mkdir -p /root/.roswell/impls/x86-64/linux/ccl-bin && mv ccl "/root/.roswell/impls/x86-64/linux/ccl-bin/$VERSION"; \
cd "/root/.roswell/impls/x86-64/linux/ccl-bin/$VERSION/lisp-kernel/linuxx8664" && make && cd /root; \
fi; \
ls "/root/.roswell/impls/x86-64/linux/ccl-bin/$VERSION" | grep -v -E "lx86cl64|lx86cl64.image" | xargs rm -rf && \
find "/root/.roswell/impls/x86-64/linux/ccl-bin/$VERSION" -maxdepth 1 -mindepth 1 | grep -v -E "lx86cl64|lx86cl64.image" | xargs rm -rf && \
rm -rf /root/.roswell/impls/log

FROM $ROSWELL_IMAGE:$ROSWELL_VERSION-$OS
Expand Down

0 comments on commit f0f23bc

Please sign in to comment.