Commit graph

9 commits

Author SHA1 Message Date
Eric Kidd 3ae8179705 Experimental: Improve support for USER root
This PR attempts to lay the groundwork to address
https://github.com/emk/rust-musl-builder/issues/96. In particular, we
install the Rust toolchain globally by abusing `rustup`.

We still preserve the legacy `rust` user but we now encourage derived
Dockerfiles to consider `USER root`.

This PR also removes ARM support. We want to explore the idea of
supporting ARM more reliably using a separate image, but perhaps it
would be better to refer those users to one of the Rust
cross-compilation toolchains. See
https://github.com/emk/rust-musl-builder/issues/63 for discussion.
2020-09-06 11:54:46 -04:00
Eric Kidd 727d912b3b Add support for static linking of sqlx
`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.
2020-09-03 16:24:49 -04:00
Eric Kidd 7b30114420 Merge branch 'fix/link_zlib_with_test' of https://github.com/mriehl/rust-musl-builder
Merge libgit2 support, but heavily overhaul the tests.
2018-04-08 13:42:02 -04:00
snobu 20de7da816 Added test case for ARMhf static binary 2018-03-27 15:27:15 +03:00
Maximilien Riehl 2b8bab380b
[test][chore] add travis config and use git2 dependency in test
cc @bomgar
2018-03-26 09:10:17 +02:00
Eric Kidd fcc6921ddb Add working example and test case for diesel
Fixes #27, or at least works around it.

This deals with the issues mentioned in
https://github.com/sgrif/pq-sys/pull/18, and it relies heavily on ideas
from @golddranks and @clux.
2017-10-24 09:05:22 -04:00
Eric Kidd ac72ab16ab Demo multi-stage Docker containers 2017-10-13 07:13:10 -04:00
Eric Kidd c6ed680715 Rename test crate, because test is no longer a valid crate name 2016-09-12 06:43:11 -04:00
Eric Kidd 1bae9725ae Overhaul extensively and add test script 2016-04-17 07:42:09 -04:00