Remove docker utilities

This commit is contained in:
retropikzel 2026-02-07 16:44:10 +02:00
parent 179eaed316
commit 3568e53337
2 changed files with 16 additions and 18 deletions

View File

@ -42,26 +42,10 @@ Run Scheme script.
Compile Scheme code to executable. Compile Scheme code to executable.
### etc/Dockerfile ### bin/install-snow-chibi
Dockerfile used in docker image building. If you need to add something you Install snow-chibi inside the venv.
can for example do:
echo "RUN apt-get install make" >> venv/etc/Dockerfile
cp Makefile venv/
echo "COPY Makefile ." >> venv/etc/Dockerfile
### bin/docker-build
Build docker venvs docker image. Run this before docker-run or docker-repl.
### bin/docker-run
Run command inside venv inside docker.
### bin/docker-repl
Run scheme repl inside venv inside docker.
## Supported impelmentations and notes ## Supported impelmentations and notes

View File

@ -81,6 +81,7 @@ if [ -d "${venvpath}/lib" ]; then
fi fi
mkdir -p "${venvpath}/lib" mkdir -p "${venvpath}/lib"
mkdir -p "${venvpath}/etc" mkdir -p "${venvpath}/etc"
mkdir -p "${venvpath}/install-prefix"
## Set scheme type if other than interpreter ## Set scheme type if other than interpreter
case "${implementation}" in case "${implementation}" in
@ -340,6 +341,7 @@ fi
cat << EOF cat << EOF
#!/bin/sh #!/bin/sh
if [ ! "\${VENV_DEBUG}" = "" ]; then set -x; fi if [ ! "\${VENV_DEBUG}" = "" ]; then set -x; fi
PATH="${venvpath}/opt/chibi-scheme/bin:\${PATH}"
if [ "\${1}" = "install" ]; then if [ "\${1}" = "install" ]; then
shift shift
snow-chibi \ snow-chibi \
@ -368,6 +370,18 @@ EOF
} > "${venvpath}/bin/akku" } > "${venvpath}/bin/akku"
chmod +x "${venvpath}/bin/akku" chmod +x "${venvpath}/bin/akku"
## /bin/install-snow-chibi
{
cat << EOF
#!/bin/sh
if [ ! "\${VENV_DEBUG}" = "" ]; then set -x; fi
git clone https://github.com/ashinn/chibi-scheme.git --depth=1 "${venvpath}/etc/chibi-scheme"
make PREFIX="${venvpath}/opt/chibi-scheme" -C "${venvpath}/etc/chibi-scheme"
make PREFIX="${venvpath}/opt/chibi-scheme" -C "${venvpath}/etc/chibi-scheme" install
EOF
} > "${venvpath}/bin/install-snow-chibi"
chmod +x "${venvpath}/bin/install-snow-chibi"
## /bin/scheme-venv-info ## /bin/scheme-venv-info
{ {