Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
walkah committed Nov 19, 2024
1 parent 798ed4b commit 56fadf2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
6 changes: 5 additions & 1 deletion docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
timeout: 10s
retries: 5
ipfs:
image: ipfs/kubo:v0.32.0
image: ipfs/kubo:v0.32.1
container_name: ipfs
restart: unless-stopped
ports:
Expand All @@ -56,6 +56,8 @@ services:
dockerfile: ./docker/bacalhau/Dockerfile
extra_hosts:
- "localhost:host-gateway"
environment:
- BACALHAU_ENVIRONMENT=local
command:
[
"serve",
Expand Down Expand Up @@ -119,6 +121,8 @@ services:
container_name: resource-provider
restart: unless-stopped
depends_on:
ipfs:
condition: service_healthy
solver:
condition: service_healthy
bacalhau:
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is a docker-compose file for use by Resource Providers
services:
ipfs:
image: ipfs/kubo:v0.32.0
image: ipfs/kubo:v0.32.1
container_name: ipfs
restart: unless-stopped
ports:
Expand All @@ -17,8 +17,8 @@ services:
depends_on:
ipfs:
condition: service_healthy
extra_hosts:
- "localhost:host-gateway"
environment:
- BACALHAU_ENVIRONMENT=local
command:
[
"serve",
Expand Down
4 changes: 4 additions & 0 deletions docker/resource-provider/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ ENV PATH="/usr/local/bin:${PATH}"
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
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/bacalhau/bacalhau.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (executor *BacalhauExecutor) getJobID(
outputError := strings.Join(strings.Fields(strings.Join(splitOutputs[1:], " ")), " ")

if outputError != "" {
return "", fmt.Errorf("error running command %s -> %s, %s", deal.ID, outputError, runOutput)
log.Error().Msgf("error parsing output %s -> %s, %s", deal.ID, outputError, runOutput)
}

id := strings.TrimSpace(string(runOutput))
Expand Down
1 change: 1 addition & 0 deletions stack
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ function resource-provider-docker-run() {

function bacalhau-node(){
export BACALHAU_SERVE_IPFS_PATH=/tmp/lilypad/data/ipfs
export BACALHAU_ENVIRONMENT=local
export LOG_LEVEL=debug
bacalhau serve --node-type compute,requester --peer none --private-internal-ipfs=false --job-selection-accept-networked --ipfs-connect "/ip4/127.0.0.1/tcp/5001"
}
Expand Down

0 comments on commit 56fadf2

Please sign in to comment.