Skip to content

Commit

Permalink
[LAB-723] Update CI to use Bacalhau 1.1.2 (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
alabdao authored Oct 23, 2023
1 parent f0128a2 commit c529d1d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 41 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
- ubuntu-22.04
# - macos-13
bacalhau_version:
- 1.1.0
- 1.1.2
runs-on: ${{ matrix.os }}
environment: ci
steps:
Expand Down Expand Up @@ -137,10 +137,11 @@ jobs:
- ubuntu-22.04
# - macos-13
bacalhau_version:
- 1.1.0
- 1.1.2
runs-on: ${{ matrix.os }}
environment: ci
env:
BACALHAU_VERSION: ${{matrix.bacalhau_version}}
# Setting it at workflow level to be used by all the steps
BACALHAU_API_HOST: "127.0.0.1"
LOG_LEVEL: trace
Expand Down Expand Up @@ -277,10 +278,11 @@ jobs:
- ubuntu-22.04
# - macos-13
bacalhau_version:
- 1.1.0
- 1.1.2
runs-on: ${{ matrix.os }}
environment: ci
env:
BACALHAU_VERSION: ${{matrix.bacalhau_version}}
# Setting it at workflow level to be used by all the steps
BACALHAU_API_HOST: "127.0.0.1"
LOG_LEVEL: trace
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.20-buster as builder

ARG BACALHAU_VERSION=1.1.1
ARG BACALHAU_VERSION=1.1.2

# Install deps
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
12 changes: 0 additions & 12 deletions docker-compose.private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

services:
ipfs:
image: private_ipfs
build:
context: ./docker/images/ipfs
dockerfile: ./Dockerfile
cache_from:
- quay.io/labdao/ipfs:latest
target: ipfs-with-utils
environment:
IPFS_S3_ENABLED: "false"
IPFS_SWARM_KEY_BASE64: "L2tleS9zd2FybS9wc2svMS4wLjAvCi9iYXNlMTYvCjk0Y2Y4ODFiMDZmZDI5YTgxNDVlMmY2MjNiMmRjNGMwNTU2Y2QxNTIwNWM4YjhjMzg0YWEzOThkY2U4YWFhMzYK"
Expand All @@ -21,8 +14,6 @@ services:
IPFS_DEBUG: "true"
IPFS_LOGGING: "debug"
IPFS_GATEWAY_PORT: "8888"
volumes:
- privateipfs:/data/ipfs

backend:
environment:
Expand All @@ -34,6 +25,3 @@ services:
LIBP2P_FORCE_PNET: "1"
IPFS_DEBUG: "true"
IPFS_LOGGING: "debug"

volumes:
privateipfs:
36 changes: 12 additions & 24 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,10 @@
version: "3.7"

services:
# sidecar container for setting up required key material
requester_setup:
image: "alpine"
command: >
sh -c '
mkdir -p /home/nonroot/.bacalhau &&
echo CAASqAkwggSkAgEAAoIBAQDQubr6zD3DLEQ07K2wPUQEFfVQLfqTQihc8lQOWuihElXcqZJLajK4od5zc+nCQ/jyUmrmOsYd7aKBmXfyTwOBwCaXEpqqxlP+Pal/Ruh+Ptpfl11KP4sHg3P5sYM/bMRJrEtg1k3mbaToioH5I9GrH7zv5LDHUSezbYFCJ4ZyakUgal+GXPx+TpbdhIx93pZXPHzxgd/m1rbSyiR7sUqXAokzKf2Qv1sOnGrHHcKy8DiSrXo+YUyDRC3lQKwaSfyrBFq1BLqE+E383zYIc5yhcV3kSGivQ2v9o67jEbss3f3ogEfXplsAnBh1S+RfcfneUaRs/UC/+8kyWAC0sU1ZAgMBAAECggEAHZZWZPrSvnnl6UKrlFH69EFQlt8NqBY2toY7WBWW6E47EZ6P+FTDf9yiNed2eW09OsxoDt7B+rgW0xw4HocIzjm4vq2Kcy7N9To0brBUgKDUP7yrIr1DLft6UyjQnAsFABSGUuHOBR4BxFzt860aKZHELJVUYcylPhAFxKTpsAoSy68/Zfkz5wjGtC/ImcHIwGub7NKNmbouQQe6p4beOkYmyVsX6RL/7RPMi7Jvspq0nj0V0j/T13XBUH4b862cqs54HuJQjI9j4QijA9SuCySXQfJw2If8sM7z/3w+IwYhp2JIu4oMTIppCvTBgzAmh+7OMqfOlL7av9iMmqQiAQKBgQDyDtX4TxN1JiFdJg8L3AV8e53GE2eAGY7zpiN7CDrACDXeyrni8fIVz4wY5Pf7+E49dI1S67dsyHVb2dK6Gg4tyECXoRHYPMRktw8LJf9QfCfYsGrpoj/yq2UZ5SqU1Uh70h3b7W3vdZXPZO1BBzT2iwTPGQl/0I0bunSTl72gYQKBgQDcv2etOyDp72NaiZduLpia0RVc92MAZLyoWyq4rscfjU0MvkCPyTa6sKjF2uaUDS5R8yVHB/6+2Mzs4LuWWpNtp6b3rG88CXxfbGDIYn2BOXDqQ9s2/ceISkNMq+NbfcUbbNvG920Ot20VKjkl9s7LcEC0cLiVU14oWd8BOV6v+QKBgQDWOk8g7ktYOSD6Ib7bTiUE4RrnvTCy7OvZs8ZfEw97+UhEH8OYmW0Z5JAnUC4xsLb+KPMS2k+CVX+YhRW9Y2X9GugfyovShyWBxYno4f4uq1NQsgJNOC3EhfB6lJm1E3aNL48BoAbWEYk+/iIElW5IbQ0ahRwlJNxeGA0ouvk2wQKBgQDZYfwdEa9V8BItJHXlYSmSu/eHt27dAlbui+jEOgmJPsLzm59EeWfV7QYm4WxTu68zsHezPWJWWnVjh+PzKnsobwLzv/FCdCzwY2/jpWnmicRyTiRgQQXvZwJjTJn2jSI/4bGEfD//UA6x2wSwKB55JK/zgVWkZ5a/sdD0CaT/MQKBgA7CMHQIjXl8FqATmBgiejGV6BnbUHko4m0Ab7fQUZY1qlgKrqcXgFmMQkb+p8Og1YeVn8Qy8xuvueAfwemA8OxvLuQNzQcA2qhGZID4Tu2Ng+XIkNxMj1gJelppqVeDnZSFr3TbZcSXIVhk1idAnpGDilS8cOO6LUY/hH/IVGGe > /home/nonroot/.bacalhau/libp2p_private_key &&
chown -R 65532:65532 /home/nonroot/'
volumes:
- requestervolume:/home/nonroot/

requester:
image: "ghcr.io/bacalhau-project/bacalhau:v1.1.1"
image: "ghcr.io/bacalhau-project/bacalhau:v${BACALHAU_VERSION:-1.1.2}"
hostname: requester
command: serve --ipfs-connect '/dns4/ipfs/tcp/5001' --node-type requester --private-internal-ipfs=false --peer none --labels "owner=labdao"
volumes:
- requestervolume:/home/nonroot/
command: serve --ipfs-connect '/dns4/ipfs/tcp/5001' --node-type requester --private-internal-ipfs=false --peer none --labels "owner=labdao" --job-selection-probe-http "http://receptor:8080/judge"
environment:
# BACALHAU_ENVIRONMENT: production
LOG_LEVEL: trace
Expand All @@ -29,8 +16,6 @@ services:
depends_on:
ipfs:
condition: service_healthy
requester_setup:
condition: service_completed_successfully

# sidecar container for requester healthcheck
requester_health:
Expand All @@ -47,10 +32,10 @@ services:
start_period: 10s

compute:
image: "ghcr.io/bacalhau-project/bacalhau:v1.1.1"
image: "ghcr.io/bacalhau-project/bacalhau:v${BACALHAU_VERSION:-1.1.2}"
hostname: compute
user: root
command: serve --ipfs-connect '/dns4/ipfs/tcp/5001' --node-type compute --labels "owner=labdao" --private-internal-ipfs=false --peer "/dns4/requester/tcp/1235/p2p/Qmd2oBsjjvtUYRmb7zhDEPhSf9YbxA1a7ZLZ6hyCwMqpnh"
command: serve --ipfs-connect '/dns4/ipfs/tcp/5001' --node-type compute --labels "owner=labdao" --private-internal-ipfs=false --peer "/dns4/requester/tcp/1234/http" --job-selection-probe-http "http://receptor:8080/judge" --max-job-execution-timeout "24h" --job-selection-accept-networked --job-selection-data-locality anywhere
environment:
LOG_LEVEL: trace
DOCKER_DEFAULT_PLATFORM: linux/amd64
Expand Down Expand Up @@ -104,6 +89,8 @@ services:
context: .
cache_from:
- quay.io/labdao/backend:latest
args:
BACALHAU_VERSION: ${BACALHAU_VERSION:-1.1.2}
ports:
- 8080:8080
environment:
Expand Down Expand Up @@ -171,20 +158,21 @@ services:
condition: service_healthy

ipfs:
image: "ipfs/kubo:v0.18.0"
hostname: ipfs
build:
context: ./docker/images/ipfs
dockerfile: ./Dockerfile
cache_from:
- quay.io/labdao/ipfs:latest
environment:
IPFS_LOGGING: "debug"
IPFS_GATEWAY_PORT: "8888"
volumes:
- ipfs:/data/ipfs
IPFS_DEBUG: "true"
ports:
- 4001:4001
- 5001:5001
- 8888:8888

volumes:
requestervolume:
ipfs:
dbdata-backend:
dbdata-receptor:
2 changes: 2 additions & 0 deletions docker/images/ipfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ EXPOSE 8081

ENV IPFS_PATH /data/ipfs

ENV IPFS_PROFILE "server"

# The default logging level
ENV IPFS_LOGGING ""

Expand Down
2 changes: 1 addition & 1 deletion docker/images/ipfs/container-init.d/006-datastore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ -n "${IPFS_DATASTORE_STORAGEMAX}" ]; then
ipfs config Datastore.StorageMax "${IPFS_DATASTORE_STORAGEMAX}"
fi

if [ -N "${IPFS_DATASTORE_STORAGEGCWATERMARK}" ]; then
if [ -n "${IPFS_DATASTORE_STORAGEGCWATERMARK}" ]; then
ipfs config Datastore.StorageGCWatermark "${IPFS_DATASTORE_STORAGEGCWATERMARK}"
fi

Expand Down

0 comments on commit c529d1d

Please sign in to comment.