-
-
Notifications
You must be signed in to change notification settings - Fork 53
Remove libipld and fix image builder #108
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
Closed
afbase
wants to merge
25
commits into
blacksky-algorithms:main
from
afbase:remove-libipld-and-fix-image-builder
Closed
Changes from 13 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6a1cc3a
1. remove libipld as the library was deprecate for ipld-core in 2024
afbase 95ca7a8
just need the pds image for now
afbase 8643c74
build and push if and only if the rust jobs are successful
afbase 90c4ab9
cargo fmt
afbase 75a06f8
remove wait condition
afbase b70612f
update the pull-request
afbase c62e9b8
move everything into the same CI workflow file for ease
afbase c4faea2
tweak a bit
afbase 83c79e5
i really that that was a package...smh
afbase e9f68f5
update dockerfiles
afbase 480e5fd
merge build and test to speed up CI
afbase 7bbbb44
add dependencies
afbase 2e9a090
update permissions and add attestations
afbase e4ba2a7
update the github token for github container registry and revise the …
afbase 4df071a
try again???
afbase e861728
make all dockerfiles consistent
afbase 0d80ec1
add all permissions for GITHUB_TOKEN
afbase e54c248
move permissions to top level
afbase 06c739c
do we need buildx?
afbase 53d365f
yes, yes you need buildx
afbase 6b811d2
update versions
afbase 5218ad8
build kit version per https://github.com/docker/build-push-action/iss…
afbase a16d2d7
update to latest???
afbase 2c94c5e
write all
afbase 620983e
see if explicit nameing works
afbase 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 was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,56 @@ | ||
| # Use the official Rust image. | ||
| # https://hub.docker.com/_/rust | ||
| FROM --platform=linux/amd64 rust | ||
| # FROM rust | ||
|
|
||
| # # Copy local code to the container image. | ||
| # WORKDIR /usr/src/rsky | ||
| # COPY . . | ||
|
|
||
| # # Install production dependencies and build a release artifact. | ||
| # RUN cargo build --release --package rsky-firehose | ||
|
|
||
| # # Run the web service on container startup. | ||
| # CMD["cargo", "run", "--package", "rsky-firehose"] | ||
|
|
||
| # Use the official Rust image. | ||
| # https://hub.docker.com/_/rust | ||
| FROM rust AS builder | ||
|
|
||
| # Copy local code to the container image. | ||
| WORKDIR /usr/src/rsky | ||
| COPY . . | ||
|
|
||
| # Install production dependencies and build a release artifact. | ||
| RUN cargo build --release --package rsky-firehose | ||
| COPY Cargo.toml rust-toolchain ./ | ||
| COPY cypher cypher | ||
| COPY rsky-common rsky-common | ||
| COPY rsky-crypto rsky-crypto | ||
| COPY rsky-feedgen rsky-feedgen | ||
| COPY rsky-firehose/Cargo.toml rsky-firehose/Cargo.toml | ||
| COPY rsky-identity rsky-identity | ||
| COPY rsky-jetstream-subscriber rsky-jetstream-subscriber | ||
| COPY rsky-labeler rsky-labeler | ||
| COPY rsky-lexicon rsky-lexicon | ||
| COPY rsky-pds rsky-pds | ||
| COPY rsky-relay rsky-relay | ||
| COPY rsky-repo rsky-repo | ||
| COPY rsky-satnav rsky-satnav | ||
| COPY rsky-syntax rsky-syntax | ||
|
|
||
|
|
||
| # Create an empty src directory to trick Cargo into thinking it's a valid Rust project | ||
| RUN mkdir rsky-firehose/src && echo "fn main() {}" > rsky-firehose/src/main.rs | ||
|
|
||
| ## Install production dependencies and build a release artifact. | ||
| RUN cargo build --release --package rsky-jetstream-subscriber | ||
|
|
||
| COPY rsky-jetstream-subscriber/src rsky-jetstream-subscriber/src | ||
|
|
||
| RUN cargo build --release --package rsky-jetstream-subscriber | ||
|
|
||
|
|
||
| FROM rust | ||
|
|
||
| WORKDIR /usr/src/rsky | ||
|
|
||
| COPY --from=builder /usr/src/rsky/target/release/rsky-firehose rsky-firehose | ||
|
|
||
| # Run the web service on container startup. | ||
| CMD cargo run --package rsky-firehose | ||
| CMD ["./rsky-firehose"] | ||
Oops, something went wrong.
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.