727d912b3b
`sqlx` requires linking against OpenSSL twice: - `sqlx-macros` needs to link against OpenSSL as a shared libary for use at compile time. - `sqlx` needs to link against OpenSSL a static library for use at runtime. You can find the details here: https://github.com/launchbadge/sqlx/issues/670 https://github.com/sfackler/rust-openssl/issues/1337 We go with the fix proposed by @sfackler, and add a test program that we can use to verify everything works correctly. We remove a few `OPENSSL`-related variables that were added 4 years ago, and that no longer appear to be needed.
13 lines
313 B
Bash
Executable file
13 lines
313 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Abort if anything goes wrong.
|
|
set -euo pipefail
|
|
|
|
# Make sure we can build some of our more important test images.
|
|
for EXAMPLE in using-diesel using-sqlx; do
|
|
docker build \
|
|
--build-arg BASE_IMAGE="$IMAGE_NAME" \
|
|
-t rust-musl-builder-"$EXAMPLE" \
|
|
examples/"$EXAMPLE"
|
|
done
|