Skip to content

Commit

Permalink
feat: version update & docker fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-segning committed Jan 22, 2025
1 parent d03339b commit cba67fd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
.idea
helm
scripts
.dockerignore
.gitignore
compose.yaml
target
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ COPY ./ ./

RUN cargo build --manifest-path wazuh-cert-oauth2/Cargo.toml --release

FROM gcr.io/distroless/base-debian12
FROM debian:12 as dep

RUN apt-get update && apt-get install -y gcc

# Dependencies for libpq (used by
RUN mkdir /deps && \
cp /usr/lib/*-linux-gnu/libgcc_s.so.* /deps

FROM gcr.io/distroless/base-debian12:nonroot

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.description="adorsys Cameroon"
Expand All @@ -20,6 +28,7 @@ ENV RUST_LOG=warn
WORKDIR /app

COPY --from=builder /app/wazuh-cert-oauth2/target/release/wazuh-cert-oauth2 /app/wazuh-cert-oauth2
COPY --from=dep /deps /usr/lib/

EXPOSE 8000

Expand Down
4 changes: 2 additions & 2 deletions wazuh-cert-oauth2-client/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wazuh-cert-oauth2-model/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions wazuh-cert-oauth2/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions wazuh-cert-oauth2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = "2021"
tokio = { version = "1.38.1", features = ["full"] }
anyhow = "1.0.86"
thiserror = { version = "1.0.62" }
log = "0.4.22"
env_logger = "0.11.3"
rocket = { version = "0.5.1", features = ["tls", "json", "http2"] }
reqwest = { version = "0", features = ["json"] }
Expand All @@ -16,7 +15,6 @@ openssl = "0.10.66"
rand = "0.8.5"
wazuh-cert-oauth2-model = { path = "../wazuh-cert-oauth2-model" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

[default.tls]
certs = "/usr/share/wazuh-cert-oauth2/certs/cert.pem"
Expand Down

0 comments on commit cba67fd

Please sign in to comment.