Skip to content

Commit 95b11c7

Browse files
authored
Add head and r7rs scriptc (#57)
1 parent 5459860 commit 95b11c7

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

implementations/kawa/3/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
2222
openjdk-22-jdk-headless \
2323
&& rm -rf /var/lib/apt/lists/*
2424
COPY --from=build /usr/local/ /usr/local/
25-
COPY scheme-banner /usr/local/bin/scheme-banner
25+
COPY scheme-banner /usr/local/bin
26+
COPY scheme-r7rs /usr/local/bin
2627
CMD ["scheme-banner"]

implementations/kawa/3/scheme-r7rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
set -eu
3+
kawa --version
4+
echo
5+
exec kawa --r7rs "$@"
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
# -*- mode: dockerfile; coding: utf-8 -*-
2-
# Installing the JDK or the JRE does not seem to work in bullseye-slim.
3-
FROM debian:bullseye AS build
2+
FROM debian:trixie-slim AS build
43
RUN apt-get update && apt-get -y --no-install-recommends install \
5-
git ca-certificates \
6-
autoconf automake libtool m4 texinfo \
7-
build-essential \
8-
default-jdk-headless \
4+
build-essential ca-certificates git curl unzip zip autoconf automake texinfo \
95
&& rm -rf /var/lib/apt/lists/*
6+
SHELL ["/bin/bash", "-c"]
7+
RUN curl https://get.sdkman.io | bash
8+
RUN source /root/.sdkman/bin/sdkman-init.sh && sdk install java 11.0.24-tem
9+
ENV PATH=/root/.sdkman/candidates/java/11.0.24-tem/bin:${PATH}
1010
WORKDIR /build
1111
RUN git clone https://gitlab.com/kashell/Kawa.git kawa --depth 1
12-
WORKDIR /build/kawa
12+
WORKDIR kawa
1313
RUN ./autogen.sh
1414
RUN ./configure
1515
RUN make
1616
RUN make install
1717

18-
FROM debian:bullseye
18+
FROM debian:trixie-slim
1919
RUN apt-get update && apt-get -y --no-install-recommends install \
20-
default-jre-headless \
20+
openjdk-22-jdk-headless \
2121
&& rm -rf /var/lib/apt/lists/*
2222
COPY --from=build /usr/local/ /usr/local/
23-
COPY scheme-banner /usr/local/bin/scheme-banner
23+
COPY scheme-banner /usr/local/bin
24+
COPY scheme-r7rs /usr/local/bin
2425
CMD ["scheme-banner"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
set -eu
3+
kawa --version
4+
echo
5+
exec kawa --r7rs "$@"

0 commit comments

Comments
 (0)