This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from JackalLabs/marston/prune-combo
Feat: prune combo flag
- Loading branch information
Showing
6 changed files
with
70 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/.DS_Store | ||
|
||
build | ||
.idea | ||
.idea | ||
config |
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,25 @@ | ||
FROM golang:1.22 as build | ||
|
||
RUN apt update -y | ||
RUN apt upgrade -y | ||
RUN apt install build-essential -y | ||
#RUN apk add --no-cache git make gcc musl-dev linux-headers ca-certificates build-base | ||
|
||
ADD . canine-provider | ||
WORKDIR canine-provider | ||
|
||
RUN LEDGER_ENABLED=false make install | ||
|
||
ENV PROVIDER_CHAIN_ID="jackal-1" | ||
ENV PROVIDER_RPC="https://rpc.jackalprotocol.com:443" | ||
ENV PROVIDER_DOMAIN="http://127.0.0.1:3333" | ||
ENV PROVIDER_SPACE="1000000000000" | ||
ENV PROVIDER_NAME="storage-provider" | ||
|
||
RUN jprovd client gen-key | ||
RUN jprovd client config chain-id $PROVIDER_CHAIN_ID | ||
RUN jprovd client config node $PROVIDER_RPC | ||
|
||
CMD ["sh", "scripts/docker.sh"] | ||
|
||
|
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,13 @@ | ||
version: '3.8' | ||
services: | ||
canine-provider: | ||
build: . | ||
ports: | ||
- "3333:3333" | ||
network_mode: "host" | ||
volumes: | ||
- storage:/root/.jackal-storage/storage | ||
- "./config:/copyconfig" | ||
|
||
volumes: | ||
storage: |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cp -r /root/.jackal-storage/config /copyconfig | ||
|
||
|
||
jprovd init $PROVIDER_DOMAIN $PROVIDER_SPACE "" -y || true | ||
|
||
sleep 10 | ||
|
||
jprovd start -y --moniker=$PROVIDER_NAME || true | ||
|
||
/bin/bash |