Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ RUN go build -o sai-interx-manager -buildvcs=false

FROM ubuntu

# Accept VERSION build arg and set as environment variable
ARG VERSION=unknown
ENV VERSION=${VERSION}

WORKDIR /srv
RUN apt-get update && apt-get -y install ca-certificates

COPY --from=build /src/sai-interx-manager /srv/
COPY --from=build /src/config.yml /srv/config.yml

RUN chmod +x /srv/sai-interx-manager

# Write version to file for easy inspection
RUN echo "${VERSION}" > /srv/VERSION

CMD /srv/sai-interx-manager start > /srv/logs/app.log 2>&1
12 changes: 6 additions & 6 deletions manager/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ common:
enabled: false
port: 8881

version: "v0.10.5"
version: "v0.10.6"

storage:
token: ""
url: "http://worker-sai-storage:8880"
url: "http://storage.local:8880"
ethereum:
interaction: "http://worker-sai-ethereum-interaction:8882"
interaction: "http://ethereum-interaction.local:8882"
nodes:
chain1: "https://data-seed-prebsc-1-s1.bnbchain.org:8545"
token: ""
Expand All @@ -21,14 +21,14 @@ ethereum:
rate_limit: 100000
cosmos:
node:
json_rpc: ""
tendermint: ""
json_rpc: "sekai.local:9090"
tendermint: "http://sekai.local:26657"
tx_modes:
sync: true
async: true
block: true
gw_timeout: 30
interaction: "http://worker-sai-cosmos-interaction:8884"
interaction: "http://cosmos-interaction.local:8884"
token: ""
retries: 1
retry_delay: 10
Expand Down
8 changes: 8 additions & 0 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ RUN go build -o sai-interax-proxy -buildvcs=false

FROM ubuntu

# Accept VERSION build arg and set as environment variable
ARG VERSION=unknown
ENV VERSION=${VERSION}

WORKDIR /srv
RUN apt-get update && apt-get -y install ca-certificates

COPY --from=build /src/sai-interax-proxy /srv/
COPY --from=build /src/config.yml /srv/config.yml

RUN chmod +x /srv/sai-interax-proxy

# Write version to file for easy inspection
RUN echo "${VERSION}" > /srv/VERSION

CMD /srv/sai-interax-proxy start > /srv/logs/app.log 2>&1
2 changes: 1 addition & 1 deletion proxy/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ common:
port: 8881

manager:
url: http://manager:8080
url: http://manager.local:8080
10 changes: 10 additions & 0 deletions worker/cosmos/sai-cosmos-indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN go build -o sai-cosmos-indexer -buildvcs=false

FROM ubuntu

# Accept VERSION build arg and set as environment variable
ARG VERSION=unknown
ENV VERSION=${VERSION}

WORKDIR /srv
RUN apt-get update && apt-get -y install ca-certificates

Expand All @@ -17,5 +21,11 @@ COPY --from=build /src/sai-cosmos-indexer /srv/

RUN chmod +x /srv/sai-cosmos-indexer

# Copy config file
COPY config.yml /srv/config.yml

# Write version to file for easy inspection
RUN echo "${VERSION}" > /srv/VERSION

# Set command to run your binary
CMD /srv/sai-cosmos-indexer start
20 changes: 11 additions & 9 deletions worker/cosmos/sai-cosmos-indexer/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ common:
port: 8081

storage:
token: "12345"
url: "http://localhost:8880"
email: "email"
password: "pass"
mongo_collection_name: "Ethereum"
token: ""
url: "http://storage.local:8880"
email: ""
password: ""
mongo_collection_name: "cosmos"
notifier:
token: "lafijsiadnm/a@@#lsa$fd8f"
url: "http://localhost:8885"
sender_id: "Cosmos"

node_address: "http://localhost:1317"
start_block: 857
tx_type: "/kira.bridge.MsgChangeCosmosEthereum"
sleep_duration: 2
node_address: "http://sekai.local:26657"
start_block: 1
tx_type: ""
sleep_duration: 2
handle_blocks: true
skip_faile_tx: false
10 changes: 10 additions & 0 deletions worker/cosmos/sai-cosmos-interaction/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN go build -o sai-cosmos-interaction -buildvcs=false

FROM ubuntu

# Accept VERSION build arg and set as environment variable
ARG VERSION=unknown
ENV VERSION=${VERSION}

WORKDIR /srv
RUN apt-get update && apt-get -y install ca-certificates

Expand All @@ -17,5 +21,11 @@ COPY --from=build /src/sai-cosmos-interaction /srv/

RUN chmod +x /srv/sai-cosmos-interaction

# Copy config file
COPY config.yml /srv/config.yml

# Write version to file for easy inspection
RUN echo "${VERSION}" > /srv/VERSION

# Set command to run your binary
CMD /srv/sai-cosmos-interaction start
10 changes: 10 additions & 0 deletions worker/ethereum/sai-ethereum-contract-interaction/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ RUN go build -o sai-eth-interaction -buildvcs=false

FROM ubuntu

# Accept VERSION build arg and set as environment variable
ARG VERSION=unknown
ENV VERSION=${VERSION}

WORKDIR /srv

# Copy binary from build stage
Expand All @@ -18,5 +22,11 @@ COPY --from=build /src/sai-eth-interaction /srv/sai-eth-interaction

RUN chmod +x /srv/sai-eth-interaction

# Copy config file
COPY config.yml /srv/config.yml

# Write version to file for easy inspection
RUN echo "${VERSION}" > /srv/VERSION

# Set command to run your binary
CMD /srv/sai-eth-interaction start
10 changes: 10 additions & 0 deletions worker/ethereum/sai-ethereum-indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN go build -o sai-eth-indexer -buildvcs=false

FROM ubuntu

# Accept VERSION build arg and set as environment variable
ARG VERSION=unknown
ENV VERSION=${VERSION}

WORKDIR /srv
RUN apt-get update && apt-get -y install ca-certificates

Expand All @@ -17,5 +21,11 @@ COPY --from=build /src/cmd/app/sai-eth-indexer /srv/

RUN chmod +x /srv/sai-eth-indexer

# Copy config file
COPY config.json /srv/config.json

# Write version to file for easy inspection
RUN echo "${VERSION}" > /srv/VERSION

# Set command to run your binary
CMD /srv/sai-eth-indexer --debug
2 changes: 1 addition & 1 deletion worker/ethereum/sai-ethereum-indexer/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"storage": {
"collection": "Ethereum",
"token": "12345",
"url": "http://localhost:8880",
"url": "http://storage.local:8880",
"email": "",
"password": ""
},
Expand Down
10 changes: 10 additions & 0 deletions worker/sai-storage-mongo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN go build -o sai-storage-bin -buildvcs=false

FROM ubuntu

# Accept VERSION build arg and set as environment variable
ARG VERSION=unknown
ENV VERSION=${VERSION}

WORKDIR /srv

# Copy binary from build stage
Expand All @@ -19,6 +23,12 @@ COPY --from=build /src/sai-storage-bin /srv/sai-storage-bin

RUN chmod +x /srv/sai-storage-bin

# Copy config file
COPY config.yml /srv/config.yml

# Write version to file for easy inspection
RUN echo "${VERSION}" > /srv/VERSION

# Set command to run your binary
CMD /srv/sai-storage-bin start

Expand Down
2 changes: 1 addition & 1 deletion worker/sai-storage-mongo/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ common:
port: 8881
storage:
atlas: false
host: "mongo-db"
host: "mongo.local"
port: "27017"
user: ""
pass: ""
Expand Down
Loading