x86_64-unknown-linux-musl compatibility and volume mount

This commit is contained in:
Paul Sajna committed 2023-01-10 18:59:01 -08:00
1 parent 26e91bd990
commit b7fd9aa8d1
5 files changed
+25 -19

No files matched your search

Generated
+10
View File
@@ -3220,6 +3220,15 @@ version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a"
[[package]]
name = "openssl-src"
version = "111.22.0+1.1.1q"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f31f0d509d1c1ae9cada2f9539ff8f37933831fd5098879e482aa687d659853"
dependencies = [
"cc",
]
[[package]]
name = "openssl-sys"
version = "0.9.76"
@@ -3229,6 +3238,7 @@ dependencies = [
"autocfg 1.0.1",
"cc",
"libc",
"openssl-src",
"pkg-config",
"vcpkg",
]
+1 -1
View File
@@ -71,7 +71,7 @@ language-tags = "0.3.2" # Parsing single tags richly
# HTTP
# TODO/NB: This is just for Twitch, but we might need it later.
reqwest = { version = "0.11.4" }
native-tls = "0.2.8"
native-tls = { version = "0.2.8", features = ["vendored"] }
# Runtime
# NB: We switched to Tokio from `async-std` for broader ecosystem support.
+6 -16
View File
@@ -1,33 +1,23 @@
FROM ubuntu:20.04
FROM rust:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
mysql-client \
mariadb-client \
imagemagick \
libmysqlclient-dev \
libmariadb-dev \
&& rm -rf /var/lib/apt/lists/*
FROM rust:latest
RUN cargo install diesel_cli --features mysql && \
cargo install sqlx-cli --features mysql
WORKDIR /storyteller-rust
COPY Cargo.lock .
COPY Cargo.toml .
COPY sqlx-data.json .
COPY crates/ ./crates
COPY db/ ./db
COPY _migrations ./migrations
ARG GIT_SHA
WORKDIR /storyteller-rust
RUN echo -n ${GIT_SHA} > /GIT_SHA
RUN cargo build --release --bin storyteller-web --bin tts-download-job --bin w2l-download-job --bin tts-inference-job --bin w2l-inference-job --bin websocket-gateway --bin twitch-pubsub-subscriber
COPY localdev/startup.sh ./startup.sh
CMD ["./startup.sh"]
CMD ["/storyteller-rust/localdev/startup.sh"]
+7 -1
View File
@@ -98,7 +98,13 @@ spec:
value: garbage
ports:
- containerPort: 12345
volumeMounts:
- mountPath: /storyteller-rust
name: storyteller-rust-folder
volumes:
- name: storyteller-rust-folder
hostPath:
path: /storyteller-rust
---
apiVersion: v1
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
diesel migration run --database-url="${MYSQL_URL}"
cargo run --release --bin storyteller-web
./target/x86_64-unknown-linux-musl/release/storyteller-web