File tree 6 files changed +92
-0
lines changed
6 files changed +92
-0
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,7 @@ failure = "0.1.1"
9
9
falconeri_common = { path = " ../falconeri_common" }
10
10
glob = " 0.2.11"
11
11
log = " 0.4.3"
12
+ # Needed for ekidd/rust-musl-builder.
13
+ openssl = " *"
14
+ openssl-probe = " 0.1.2"
12
15
uuid = " 0.6.5"
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ extern crate falconeri_common;
5
5
extern crate glob;
6
6
#[ macro_use]
7
7
extern crate log;
8
+ extern crate openssl;
9
+ extern crate openssl_probe;
8
10
extern crate uuid;
9
11
10
12
use failure:: ResultExt ;
@@ -14,6 +16,7 @@ use uuid::Uuid;
14
16
15
17
fn main ( ) -> Result < ( ) > {
16
18
env_logger:: init ( ) ;
19
+ openssl_probe:: init_ssl_cert_env_vars ( ) ;
17
20
18
21
// Parse our arguments (manually, so we don't need to drag in a ton of
19
22
// libraries).
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ env_logger = "0.5.10"
8
8
failure = " 0.1.1"
9
9
falconeri_common = { path = " ../falconeri_common" }
10
10
log = " 0.4.3"
11
+ # Needed for ekidd/rust-musl-builder.
12
+ openssl = " *"
13
+ openssl-probe = " 0.1.2"
11
14
serde = " 1.0"
12
15
serde_derive = " 1.0"
13
16
serde_json = " 1.0"
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ extern crate failure;
4
4
extern crate falconeri_common;
5
5
#[ macro_use]
6
6
extern crate log;
7
+ extern crate openssl;
8
+ extern crate openssl_probe;
7
9
extern crate serde;
8
10
#[ macro_use]
9
11
extern crate serde_derive;
@@ -37,6 +39,7 @@ enum Opt {
37
39
38
40
fn main ( ) -> Result < ( ) > {
39
41
env_logger:: init ( ) ;
42
+ openssl_probe:: init_ssl_cert_env_vars ( ) ;
40
43
let opt = Opt :: from_args ( ) ;
41
44
debug ! ( "Args: {:?}" , opt) ;
42
45
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Usage: ./install-static
4
+ #
5
+ # Build a static version of the `falconeri` tools and install it. Only works on
6
+ # x86_64 systems. This assumes the current user has UID 1000. (We can remove
7
+ # that restriction later by adding the source to the container and mounting
8
+ # a volume on ./target, then using `docker cp` to copy out the binaries.)
9
+
10
+ # Standard paranoia.
11
+ set -euo pipefail
12
+
13
+ # Build our binaries.
14
+ docker run --rm -it \
15
+ -v falconeri-cargo-git:/home/rust/.cargo/git \
16
+ -v falconeri-cargo-registry:/home/rust/.cargo/registry \
17
+ -v " $( pwd) " :/home/rust/src \
18
+ ekidd/rust-musl-builder \
19
+ bash -c ' sudo chown -R rust:rust /home/rust/.cargo/git /home/rust/.cargo/registry && cargo build --all --release'
20
+
21
+ # Install our binaries.
22
+ target_dir=./target/x86_64-unknown-linux-musl/release
23
+ sudo cp " $target_dir /falconeri" " $target_dir /falconeri-worker" /usr/local/bin
You can’t perform that action at this time.
0 commit comments