-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4970 from nymtech/feat/nym-data-observatory-docker
feat: add clap and env vars through clap, add Dockerfile
- Loading branch information
Showing
7 changed files
with
61 additions
and
53 deletions.
There are no files selected for viewing
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
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 rust:latest AS builder | ||
|
||
COPY ./ /usr/src/nym | ||
WORKDIR /usr/src/nym/nym-data-observatory | ||
|
||
RUN cargo build --release | ||
|
||
FROM ubuntu:24.04 | ||
|
||
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \ | ||
echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \ | ||
echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom | ||
|
||
RUN apt update && apt install -yy curl | ||
|
||
WORKDIR /nym | ||
|
||
COPY --from=builder /usr/src/nym/target/release/nym-data-observatory ./ | ||
ENTRYPOINT [ "/nym/nym-data-observatory" ] |
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
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
This file was deleted.
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
pub(crate) mod api; | ||
pub(crate) mod api_docs; | ||
pub(crate) mod config; | ||
pub(crate) mod error; | ||
pub(crate) mod server; | ||
pub(crate) mod state; |
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