Skip to content
Snippets Groups Projects

Draft: Add dockerfiles, etc. for SBCL 2.4.6

Open Robert Goldman requested to merge rgoldman/sbcl:sbcl-2.4.6 into master
1 file
+ 34
0
Compare changes
  • Side-by-side
  • Inline
  • 6cb56019
    The repo seems intended to build using GitLab CI and bashbrew, but that
    build process appears to be broken, and I don't know how bashbrew works.
    
    So for people like me, this script lets me build all the images for a
    single SBCL version number.
build-all.sh 0 → 100755
+ 36
0
#!/usr/bin/env bash
# Build images for all versions as specified by the first argument.
set -Eeuo pipefail
set -x
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
img_src="${img_src:-clfoundation}"
declare -A refs=(
[2.4,6]='master'
)
versions=( "$@" )
for version in "${versions[@]}"; do
pushd $version
for variant in `ls -d *` ; do
if [ ! -d "${variant}" ]; then
continue
fi
pushd "${variant}"
base_tag="${img_src}/sbcl:${version}-${variant}"
args=("buildx" "build" "--push" "--platform" "linux/amd64,linux/arm64" "-t" "${base_tag}" "-t" "${img_src}/sbcl:${variant}" "-t" "${img_src}/sbcl:${version}" )
if [[ "${variant}" =~ ^alpine([0-9]+\.[0-9]+)$ ]]; then
args+=("-t" "${img_src}/sbcl:alpine")
fi
args+=(".")
docker "${args[@]}"
popd
done
popd
done
Loading