-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Upgrade to bacalhau 1.6 #441
Merged
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
86937b5
init
kelindi 317fbb6
fixed executions issues
kelindi 6dbc859
commented out spew, added new stack commands, cid generation
kelindi 7fac633
prepares tar file from tar.gz for solver- working end to end for cowsay
kelindi 64f8e18
optimized tar file usage
kelindi fc609b7
removed spew, fixed loop bug, added env variables, fixed translator bug
kelindi 775313a
added env variable for bacalhau results directory
kelindi e2777a6
updated to latest bacalhau client
kelindi 8913150
rebase, add docker related pieces, fix logging
walkah 263a514
test fix
walkah ef35a88
fix rebase conflicts
walkah a578378
chore: update to bacalhau 1.6
walkah 5d88d99
fix: bacalhau results fetch and CID
walkah 703ae8f
fix: integration tests
walkah 6d31137
chore: cleanup
walkah bdba359
chore: more cleanup
walkah 13b7e27
Merge branch 'main' into bacalhau-upgrade
walkah 2b76c90
fix: ci sleep time
walkah e1dceb0
fix: don't start up an (unused) mediator
walkah 3a2777b
fix: CI sleep settings
walkah 527843e
fix: PR feedback
walkah fe028a8
fix: clean up error message
walkah 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 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 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 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 |
---|---|---|
|
@@ -17,8 +17,8 @@ RUN mkdir -pm755 /etc/apt/keyrings && curl -o /etc/apt/keyrings/docker.asc -fsSL | |
RUN nvidia-ctk runtime configure --runtime=docker --set-as-default | ||
|
||
# Install Bacalhau | ||
ADD https://github.com/bacalhau-project/bacalhau/releases/download/v1.3.2/bacalhau_v1.3.2_linux_amd64.tar.gz . | ||
RUN tar xfv bacalhau_v1.3.2_linux_amd64.tar.gz | ||
ADD https://github.com/bacalhau-project/bacalhau/releases/download/v1.6.0/bacalhau_v1.6.0_linux_amd64.tar.gz . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎉 |
||
RUN tar xfv bacalhau_v1.6.0_linux_amd64.tar.gz | ||
RUN mv bacalhau /usr/local/bin | ||
|
||
ADD https://raw.githubusercontent.com/moby/moby/refs/heads/master/hack/dind /usr/local/bin/dind | ||
|
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 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ARG COMPUTE_MODE=gpu | ||
|
||
FROM golang:1.22.4 AS base | ||
FROM golang:latest AS base | ||
WORKDIR /usr/src/app | ||
ARG NETWORK=testnet | ||
ARG VERSION | ||
|
@@ -33,24 +33,13 @@ RUN mv lilypad /usr/local/bin | |
# Install necessary dependencies | ||
RUN apt update && apt install -y wget bash curl && apt clean | ||
|
||
# Install Bacalhau | ||
RUN cd /tmp && \ | ||
wget https://github.com/bacalhau-project/bacalhau/releases/download/v1.3.2/bacalhau_v1.3.2_linux_amd64.tar.gz && \ | ||
tar xfv bacalhau_v1.3.2_linux_amd64.tar.gz && \ | ||
mv bacalhau /usr/local/bin/bacalhau && \ | ||
rm bacalhau_v1.3.2_linux_amd64.tar.gz | ||
|
||
Comment on lines
-36
to
-42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using the http API means we no longer need to also have the bacalhau CLI installed here |
||
# Add both lilypad and bacalhau executables to PATH | ||
ENV PATH="/usr/local/bin:${PATH}" | ||
|
||
# Create a startup script to run both services simultaneously | ||
RUN touch run | ||
RUN echo "#!/bin/bash" >> run | ||
|
||
# Ensure bacalhau is initialized | ||
RUN echo "export BACALHAU_ENVIRONMENT=local" >> run | ||
RUN echo "bacalhau id" >> run | ||
|
||
# Launch Lilypad | ||
RUN echo "/usr/local/bin/lilypad resource-provider --network ${NETWORK} --disable-pow=${DISABLE_POW} --disable-telemetry=${DISABLE_TELEMETRY} &" >> run | ||
RUN echo "wait -n" >> run | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This staged set of integration tests allows us to run solver tests without having resource offers being added by an RP. This will be important for #462 e.g.