-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: docker releases and compose file (#234)
* build: docker releases and compose file * fix: use docker.sock * fix: pr feedback * fix: pr feedback * Update .github/workflows/release_docker.yml Co-authored-by: Brian Ginsburg <[email protected]> * fix: bacalhau data mount --------- Co-authored-by: Brian Ginsburg <[email protected]>
- Loading branch information
Showing
9 changed files
with
180 additions
and
32 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,5 @@ ops/testnet/.terraform/providers | |
.run/ | ||
bin/ | ||
vendor/ | ||
./data/ | ||
/data/ | ||
.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM docker:dind AS base | ||
|
||
RUN apk update | ||
RUN apk add wget | ||
RUN apk add bash | ||
|
||
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 | ||
RUN mv bacalhau /usr/local/bin | ||
|
||
ENTRYPOINT [ "bacalhau" ] |
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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: lilypad | ||
services: | ||
chain: | ||
image: offchainlabs/nitro-node:v2.3.4-b4cc111 | ||
container_name: chain | ||
ports: | ||
- 8547:8547 | ||
- 8548:8548 | ||
command: | ||
[ | ||
"--init.dev-init", | ||
"--init.dev-init-address", | ||
$ADMIN_ADDRESS, | ||
"--node.dangerous.no-l1-listener", | ||
"--node.parent-chain-reader.enable=false", | ||
"--parent-chain.id=1337", | ||
"--chain.id=412346", | ||
"--node.sequencer", | ||
"--execution.sequencer.enable", | ||
"--node.dangerous.no-sequencer-coordinator", | ||
"--node.staker.enable=false", | ||
"--init.empty=false", | ||
"--http.port", | ||
"8547", | ||
"--http.addr", | ||
"0.0.0.0", | ||
"--ws.port", | ||
"8548", | ||
"--ws.addr", | ||
"0.0.0.0", | ||
] | ||
volumes: | ||
- ../data/chain:/home/user/.arbitrum | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:8548/"] | ||
interval: 30s | ||
timeout: 10s | ||
retries: 5 | ||
solver: | ||
image: ghcr.io/lilypad-tech/solver | ||
container_name: solver | ||
depends_on: | ||
- chain | ||
build: | ||
context: .. | ||
dockerfile: ./docker/solver/Dockerfile | ||
args: | ||
- network=dev | ||
extra_hosts: | ||
- "localhost:host-gateway" | ||
environment: | ||
- DOPPLER_TOKEN=${DOPPLER_TOKEN_SOLVER} | ||
ports: | ||
- 8080:8080 | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:8080/"] | ||
interval: 30s | ||
timeout: 10s | ||
retries: 5 | ||
|
||
job-creator: | ||
image: ghcr.io/lilypad-tech/job-creator | ||
container_name: job-creator | ||
restart: unless-stopped | ||
depends_on: | ||
- chain | ||
- solver | ||
build: | ||
context: .. | ||
dockerfile: ./docker/job-creator/Dockerfile | ||
args: | ||
- network=dev | ||
extra_hosts: | ||
- "localhost:host-gateway" | ||
environment: | ||
- DOPPLER_TOKEN=${DOPPLER_TOKEN_JOB_CREATOR} | ||
resource-provider: | ||
image: ghcr.io/lilypad-tech/resource-provider | ||
container_name: resource-provider | ||
restart: unless-stopped | ||
depends_on: | ||
- chain | ||
- solver | ||
build: | ||
context: .. | ||
dockerfile: ./docker/resource-provider/Dockerfile | ||
args: | ||
- NETWORK=dev | ||
extra_hosts: | ||
- "localhost:host-gateway" | ||
volumes: | ||
- ../data/bacalhau:/tmp/lilypad/data | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
environment: | ||
- WEB3_PRIVATE_KEY | ||
- BACALHAU_SERVE_IPFS_PATH=/tmp/lilypad/data/ipfs | ||
- LOG_LEVEL=debug |
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,4 +1,4 @@ | ||
FROM golang:latest as base | ||
FROM golang:latest AS base | ||
WORKDIR /usr/src/app | ||
|
||
ARG network=dev | ||
|
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