-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change influx library to remove dependency on OpenSSL (#15)
- Loading branch information
Showing
5 changed files
with
70 additions
and
144 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM messense/rust-musl-cross:aarch64-musl as builder | ||
|
||
RUN rustup component add rustfmt | ||
RUN mkdir /rustica | ||
COPY proto /tmp/proto | ||
COPY rustica /tmp/rustica | ||
WORKDIR /tmp/rustica | ||
|
||
RUN cargo build --features="influx" --release | ||
|
||
FROM alpine:3.6 as alpine | ||
RUN apk add -U --no-cache ca-certificates | ||
|
||
from scratch as runtime | ||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /tmp/rustica/target/aarch64-unknown-linux-musl/release/rustica /rustica | ||
USER 1000 | ||
ENTRYPOINT [ "/rustica" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ekidd/rust-musl-builder:1.57.0 as builder | ||
USER root | ||
RUN apt update && apt upgrade -y && apt install -y git | ||
RUN rustup component add rustfmt | ||
RUN mkdir /rustica | ||
COPY proto /tmp/proto | ||
COPY rustica /tmp/rustica | ||
WORKDIR /tmp/rustica | ||
|
||
RUN cargo build --target=x86_64-unknown-linux-musl --features="influx" --release | ||
|
||
FROM alpine:3.6 as alpine | ||
RUN apk add -U --no-cache ca-certificates | ||
|
||
from scratch as runtime | ||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /tmp/rustica/target/x86_64-unknown-linux-musl/release/rustica /rustica | ||
USER 1000 | ||
ENTRYPOINT [ "/rustica" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "rustica" | ||
version = "0.8.1" | ||
version = "0.8.2" | ||
authors = ["Mitchell Grenier <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
@@ -10,7 +10,7 @@ default = [] | |
all = ["amazon-kms", "influx", "splunk", "yubikey-support", "local-db"] | ||
|
||
amazon-kms = ["aws-config", "aws-sdk-kms", "aws-types"] | ||
influx = ["influx_db_client"] | ||
influx = ["influxdb"] | ||
local-db = ["diesel"] | ||
splunk = ["reqwest", "serde_json"] | ||
yubikey-support = ["sshcerts/yubikey-support"] | ||
|
@@ -43,12 +43,11 @@ aws-config = { version = "0.5", optional = true } | |
aws-sdk-kms = { version = "0.5", optional = true } | ||
aws-types = { version = "0.5", optional = true } | ||
|
||
|
||
# Dependencies for local-db | ||
diesel = { version = "1.4.4", features = ["sqlite"], optional = true } | ||
|
||
# Dependencies for Influx | ||
influx_db_client = { version = "0.5.0", optional = true } | ||
influxdb = { version = "0.5.1", optional = true } | ||
|
||
# Dependencies for Splunk | ||
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"], optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters