-
Notifications
You must be signed in to change notification settings - Fork 0
Setup regtest in pipeline #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
14b64ed
Update iOS workflows and scripts for Regtest environment
niteshbalusu11 cf04c02
Add Noah server support to dev environment
niteshbalusu11 ffbff1f
Update Android package name from com.anonymous.noah to com.noahwallet
niteshbalusu11 a470146
Rename Android package from anonymous.noah to noahwallet
niteshbalusu11 3eedaa9
Add multi-arch support to GitHub Actions workflow
niteshbalusu11 bcca50b
Merge branch 'master' into setup-regtest-in-pipeline
niteshbalusu11 6d60c9d
Update GitHub Actions matrix runner for ARM64 build
niteshbalusu11 009829b
Update GitHub Actions workflow triggers
niteshbalusu11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,32 +1,36 @@ | ||
# Stage 1: Build the application | ||
FROM rust:1.88 AS builder | ||
|
||
# Stage 1: Install cargo-chef | ||
FROM rust:1.88 AS chef | ||
RUN cargo install cargo-chef | ||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y protobuf-compiler | ||
|
||
# Copy the workspace and server Cargo files to plan the build | ||
# Stage 2: Analyze dependencies | ||
FROM chef AS planner | ||
COPY ./Cargo.toml ./Cargo.toml | ||
COPY ./server/Cargo.toml ./server/Cargo.toml | ||
|
||
# Copy the lock file and build the dependencies | ||
COPY ./Cargo.lock ./Cargo.lock | ||
COPY ./server/src/ ./server/src | ||
RUN cargo chef prepare --recipe-path recipe.json | ||
|
||
# Stage 3: Build dependencies (cached layer) | ||
FROM chef AS builder | ||
RUN apt-get update && apt-get install -y protobuf-compiler && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=planner /app/recipe.json recipe.json | ||
RUN cargo chef cook --release --recipe-path recipe.json --manifest-path ./server/Cargo.toml | ||
|
||
# Copy the application source code and build the application | ||
# Stage 4: Build application | ||
COPY ./Cargo.toml ./Cargo.toml | ||
COPY ./server/Cargo.toml ./server/Cargo.toml | ||
COPY ./Cargo.lock ./Cargo.lock | ||
COPY ./server/src/ ./server/src | ||
RUN cargo build --release --manifest-path ./server/Cargo.toml | ||
|
||
# Stage 2: Create the runtime image | ||
# Stage 5: Runtime image | ||
FROM debian:bookworm-slim AS runtime | ||
|
||
# Install CA certificates for TLS | ||
RUN apt-get update && apt-get install -y ca-certificates curl pkg-config libssl-dev && rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the compiled binary from the builder stage | ||
COPY --from=builder /app/target/release/server /usr/local/bin/ | ||
RUN mkdir -p /etc/server | ||
|
||
EXPOSE 3000 | ||
|
||
# Set the startup command | ||
CMD ["server", "--config-path", "/etc/server/config.toml"] |
This file contains hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion
2
...n/java/com/anonymous/noah/MainActivity.kt → .../main/java/com/noahwallet/MainActivity.kt
This file contains hidden or 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,4 +1,4 @@ | ||
package com.anonymous.noah | ||
package com.noahwallet | ||
|
||
import android.os.Build | ||
import android.os.Bundle | ||
|
2 changes: 1 addition & 1 deletion
2
...ava/com/anonymous/noah/MainApplication.kt → ...in/java/com/noahwallet/MainApplication.kt
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.