mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-24 04:57:00 +01:00
Fix cargo.lock + Docker
This commit is contained in:
parent
2d43b78d17
commit
ebab6c5f86
25
Cargo.lock
generated
25
Cargo.lock
generated
|
@ -454,17 +454,6 @@ version = "0.13.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
|
checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "base64urlsafedata"
|
|
||||||
version = "0.1.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "d02340c3f25c8422ba85d481123406dd7506505485bac1c694b26eb538da8daf"
|
|
||||||
dependencies = [
|
|
||||||
"base64 0.13.0",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "base64urlsafedata"
|
name = "base64urlsafedata"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
|
@ -740,7 +729,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f9417bb4f581b7a5e08fabb4398b910064363bbfd7b75a10d1da3bfff3ef9b36"
|
checksum = "f9417bb4f581b7a5e08fabb4398b910064363bbfd7b75a10d1da3bfff3ef9b36"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.13.0",
|
"base64 0.13.0",
|
||||||
"base64urlsafedata 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"base64urlsafedata",
|
||||||
"openssl",
|
"openssl",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
@ -2088,7 +2077,7 @@ dependencies = [
|
||||||
"async-std",
|
"async-std",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"base64 0.13.0",
|
"base64 0.13.0",
|
||||||
"base64urlsafedata 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"base64urlsafedata",
|
||||||
"chrono",
|
"chrono",
|
||||||
"compact_jwt",
|
"compact_jwt",
|
||||||
"compiled-uuid",
|
"compiled-uuid",
|
||||||
|
@ -2163,7 +2152,7 @@ name = "kanidm_proto"
|
||||||
version = "1.1.0-alpha.9"
|
version = "1.1.0-alpha.9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base32",
|
"base32",
|
||||||
"base64urlsafedata 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"base64urlsafedata",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"time 0.2.27",
|
"time 0.2.27",
|
||||||
|
@ -4539,7 +4528,7 @@ version = "0.4.2-beta.3"
|
||||||
source = "git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360#7a8e6c6b351ab7544f08cf8ba48424baacee1360"
|
source = "git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360#7a8e6c6b351ab7544f08cf8ba48424baacee1360"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"authenticator",
|
"authenticator",
|
||||||
"base64urlsafedata 0.1.1 (git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360)",
|
"base64urlsafedata",
|
||||||
"nom 7.1.1",
|
"nom 7.1.1",
|
||||||
"openssl",
|
"openssl",
|
||||||
"rpassword 5.0.1",
|
"rpassword 5.0.1",
|
||||||
|
@ -4555,7 +4544,7 @@ name = "webauthn-rs"
|
||||||
version = "0.4.2-beta.3"
|
version = "0.4.2-beta.3"
|
||||||
source = "git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360#7a8e6c6b351ab7544f08cf8ba48424baacee1360"
|
source = "git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360#7a8e6c6b351ab7544f08cf8ba48424baacee1360"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64urlsafedata 0.1.1 (git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360)",
|
"base64urlsafedata",
|
||||||
"serde",
|
"serde",
|
||||||
"tracing",
|
"tracing",
|
||||||
"url",
|
"url",
|
||||||
|
@ -4569,7 +4558,7 @@ version = "0.4.2-beta.3"
|
||||||
source = "git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360#7a8e6c6b351ab7544f08cf8ba48424baacee1360"
|
source = "git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360#7a8e6c6b351ab7544f08cf8ba48424baacee1360"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.13.0",
|
"base64 0.13.0",
|
||||||
"base64urlsafedata 0.1.1 (git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360)",
|
"base64urlsafedata",
|
||||||
"compact_jwt",
|
"compact_jwt",
|
||||||
"der-parser",
|
"der-parser",
|
||||||
"nom 7.1.1",
|
"nom 7.1.1",
|
||||||
|
@ -4591,7 +4580,7 @@ name = "webauthn-rs-proto"
|
||||||
version = "0.4.2-beta.3"
|
version = "0.4.2-beta.3"
|
||||||
source = "git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360#7a8e6c6b351ab7544f08cf8ba48424baacee1360"
|
source = "git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360#7a8e6c6b351ab7544f08cf8ba48424baacee1360"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64urlsafedata 0.1.1 (git+https://github.com/kanidm/webauthn-rs.git?rev=7a8e6c6b351ab7544f08cf8ba48424baacee1360)",
|
"base64urlsafedata",
|
||||||
"js-sys",
|
"js-sys",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
|
|
@ -32,6 +32,7 @@ exclude = [
|
||||||
|
|
||||||
# ldap3_server = { path = "../ldap3_server" }
|
# ldap3_server = { path = "../ldap3_server" }
|
||||||
|
|
||||||
|
base64urlsafedata = { git = "https://github.com/kanidm/webauthn-rs.git", rev = "7a8e6c6b351ab7544f08cf8ba48424baacee1360" }
|
||||||
# webauthn-rs = { path = "../webauthn-rs/webauthn-rs" }
|
# webauthn-rs = { path = "../webauthn-rs/webauthn-rs" }
|
||||||
webauthn-rs = { git = "https://github.com/kanidm/webauthn-rs.git", rev = "7a8e6c6b351ab7544f08cf8ba48424baacee1360" }
|
webauthn-rs = { git = "https://github.com/kanidm/webauthn-rs.git", rev = "7a8e6c6b351ab7544f08cf8ba48424baacee1360" }
|
||||||
# webauthn-rs-core = { path = "../webauthn-rs/webauthn-rs-core" }
|
# webauthn-rs-core = { path = "../webauthn-rs/webauthn-rs-core" }
|
||||||
|
|
|
@ -6,7 +6,7 @@ RUN /usr/sbin/mirrorsorcerer -x; true
|
||||||
RUN zypper refresh --force
|
RUN zypper refresh --force
|
||||||
RUN zypper dup -y
|
RUN zypper dup -y
|
||||||
|
|
||||||
|
# ======================
|
||||||
FROM repos AS builder
|
FROM repos AS builder
|
||||||
|
|
||||||
RUN zypper install -y \
|
RUN zypper install -y \
|
||||||
|
@ -19,6 +19,7 @@ RUN zypper install -y \
|
||||||
sccache \
|
sccache \
|
||||||
gcc \
|
gcc \
|
||||||
rsync \
|
rsync \
|
||||||
|
findutils \
|
||||||
which
|
which
|
||||||
RUN zypper clean -a
|
RUN zypper clean -a
|
||||||
|
|
||||||
|
@ -36,7 +37,11 @@ RUN echo $KANIDM_FEATURES
|
||||||
|
|
||||||
ENV CARGO_HOME=/scratch/.cargo
|
ENV CARGO_HOME=/scratch/.cargo
|
||||||
|
|
||||||
|
# ======================
|
||||||
|
|
||||||
WORKDIR /usr/src/kanidm/kanidmd_web_ui
|
WORKDIR /usr/src/kanidm/kanidmd_web_ui
|
||||||
|
# This can't be used in the wasm build for now.
|
||||||
|
# ENV RUSTFLAGS="-Clinker=clang"
|
||||||
RUN if [ "${SCCACHE_REDIS}" != "" ]; \
|
RUN if [ "${SCCACHE_REDIS}" != "" ]; \
|
||||||
then \
|
then \
|
||||||
export CARGO_INCREMENTAL=false && \
|
export CARGO_INCREMENTAL=false && \
|
||||||
|
@ -44,15 +49,16 @@ RUN if [ "${SCCACHE_REDIS}" != "" ]; \
|
||||||
sccache --start-server; \
|
sccache --start-server; \
|
||||||
fi && \
|
fi && \
|
||||||
./build_wasm.sh
|
./build_wasm.sh
|
||||||
# This has to be after the WASM build because weird reasons.
|
|
||||||
# Set the build profile
|
# ======================
|
||||||
ENV KANIDM_BUILD_PROFILE="${KANIDM_BUILD_PROFILE}"
|
|
||||||
ENV RUSTFLAGS="-Clinker=clang"
|
|
||||||
|
|
||||||
WORKDIR /usr/src/kanidm/kanidmd/daemon
|
WORKDIR /usr/src/kanidm/kanidmd/daemon
|
||||||
|
|
||||||
|
# Set the build profile
|
||||||
|
ENV KANIDM_BUILD_PROFILE="${KANIDM_BUILD_PROFILE}"
|
||||||
ENV RUSTFLAGS="-Clinker=clang -Clink-arg=-fuse-ld=/usr/bin/ld.lld"
|
ENV RUSTFLAGS="-Clinker=clang -Clink-arg=-fuse-ld=/usr/bin/ld.lld"
|
||||||
|
|
||||||
|
# Exports don't persist through RUN statements.
|
||||||
RUN if [ "${SCCACHE_REDIS}" != "" ]; \
|
RUN if [ "${SCCACHE_REDIS}" != "" ]; \
|
||||||
then \
|
then \
|
||||||
export CARGO_INCREMENTAL=false && \
|
export CARGO_INCREMENTAL=false && \
|
||||||
|
@ -61,9 +67,8 @@ then \
|
||||||
sccache --start-server; \
|
sccache --start-server; \
|
||||||
else \
|
else \
|
||||||
export CC="/usr/bin/clang"; \
|
export CC="/usr/bin/clang"; \
|
||||||
fi
|
fi && \
|
||||||
|
if [ -z "${KANIDM_FEATURES}" ]; then \
|
||||||
RUN if [ -z "${KANIDM_FEATURES}" ]; then \
|
|
||||||
cargo build -p daemon ${KANIDM_BUILD_OPTIONS} \
|
cargo build -p daemon ${KANIDM_BUILD_OPTIONS} \
|
||||||
--target-dir="/usr/src/kanidm/target/" \
|
--target-dir="/usr/src/kanidm/target/" \
|
||||||
--release; \
|
--release; \
|
||||||
|
@ -72,11 +77,13 @@ else \
|
||||||
--target-dir="/usr/src/kanidm/target/" \
|
--target-dir="/usr/src/kanidm/target/" \
|
||||||
--features="${KANIDM_FEATURES}" \
|
--features="${KANIDM_FEATURES}" \
|
||||||
--release; \
|
--release; \
|
||||||
fi
|
fi && \
|
||||||
RUN if [ "${SCCACHE_REDIS}" != "" ]; then sccache -s; fi
|
if [ "${SCCACHE_REDIS}" != "" ]; then sccache -s; fi
|
||||||
|
|
||||||
RUN ls -al /usr/src/kanidm/target/release
|
RUN ls -al /usr/src/kanidm/target/release
|
||||||
|
|
||||||
|
# ======================
|
||||||
|
|
||||||
FROM repos
|
FROM repos
|
||||||
|
|
||||||
RUN zypper install -y \
|
RUN zypper install -y \
|
||||||
|
|
Loading…
Reference in a new issue