-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
267 additions
and
1 deletion.
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
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,44 @@ | ||
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:0f1d81605bda6e2388c3c7f731700d8c12e17259d58ffba11f36ddc81d9c0a76 | ||
|
||
ARG BINARY | ||
|
||
WORKDIR /app | ||
|
||
USER root | ||
|
||
COPY ./$BINARY /app/node | ||
|
||
RUN apk update && \ | ||
apk add --no-cache \ | ||
bash \ | ||
libstdc++ \ | ||
jq \ | ||
tini \ | ||
&& \ | ||
mkdir -p /config && \ | ||
chown -R nonroot:nonroot /app /config && \ | ||
chmod -R u=rwX,go=rX /app /config && \ | ||
chmod +x /app/node | ||
|
||
USER nonroot | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
|
||
# API Server | ||
EXPOSE 1317 | ||
|
||
# Pprof Server | ||
EXPOSE 6060 | ||
|
||
# gRPC Server | ||
EXPOSE 9090 | ||
|
||
# CometBFT RPC interface | ||
EXPOSE 26657 | ||
|
||
HEALTHCHECK --interval=1m --timeout=3s CMD /app/node query node status | grep validator_hash || exit 1 | ||
|
||
VOLUME ["/config"] | ||
|
||
ENTRYPOINT ["tini", "--"] | ||
CMD ["/entrypoint.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,11 @@ | ||
--- | ||
# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#process | ||
process: | ||
node: | ||
running: true | ||
|
||
# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#port | ||
port: | ||
# https://github.com/aelsabbahy/goss/issues/149 | ||
tcp:26657: | ||
listening: true |
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,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
NODE_HOME=${NODE_HOME:-/config} | ||
START_CMD=${START_CMD:-start} | ||
|
||
if [[ ! -f "${NODE_HOME}/config.json" ]]; then | ||
echo "Launch init procedure..." | ||
/app/node config set client chain-id testchain --home ${NODE_HOME} | ||
/app/node config set client keyring-backend test --home ${NODE_HOME} | ||
/app/node config set client keyring-default-keyname alice --home ${NODE_HOME} | ||
/app/node config set app api.enable true --home ${NODE_HOME} | ||
/app/node keys add alice --home ${NODE_HOME} | ||
/app/node keys add bob --home ${NODE_HOME} | ||
/app/node init testchain-node --chain-id testchain --home ${NODE_HOME} | ||
jq '.app_state.gov.params.voting_period = "600s"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json | ||
jq '.app_state.gov.params.expedited_voting_period = "300s"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json | ||
jq '.app_state.mint.minter.inflation = "0.300000000000000000"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json # to change the inflation | ||
/app/node genesis add-genesis-account alice 5000000000stake --keyring-backend test --home ${NODE_HOME} | ||
/app/node genesis add-genesis-account bob 5000000000stake --keyring-backend test --home ${NODE_HOME} | ||
/app/node genesis gentx alice 1000000stake --chain-id testchain --home ${NODE_HOME} | ||
/app/node genesis collect-gentxs --home ${NODE_HOME} | ||
fi | ||
|
||
exec \ | ||
/app/node ${START_CMD} --home ${NODE_HOME} \ | ||
"$@" |
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,44 @@ | ||
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:0f1d81605bda6e2388c3c7f731700d8c12e17259d58ffba11f36ddc81d9c0a76 | ||
|
||
ARG BINARY | ||
|
||
WORKDIR /app | ||
|
||
USER root | ||
|
||
COPY ./$BINARY /app/node | ||
|
||
RUN apk update && \ | ||
apk add --no-cache \ | ||
bash \ | ||
libstdc++ \ | ||
jq \ | ||
tini \ | ||
&& \ | ||
mkdir -p /config && \ | ||
chown -R nonroot:nonroot /app /config && \ | ||
chmod -R u=rwX,go=rX /app /config && \ | ||
chmod +x /app/node | ||
|
||
USER nonroot | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
|
||
# API Server | ||
EXPOSE 1317 | ||
|
||
# Pprof Server | ||
EXPOSE 6060 | ||
|
||
# gRPC Server | ||
EXPOSE 9090 | ||
|
||
# CometBFT RPC interface | ||
EXPOSE 26657 | ||
|
||
HEALTHCHECK --interval=1m --timeout=3s CMD /app/node query node status | grep validator_hash || exit 1 | ||
|
||
VOLUME ["/config"] | ||
|
||
ENTRYPOINT ["tini", "--"] | ||
CMD ["/entrypoint.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,11 @@ | ||
--- | ||
# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#process | ||
process: | ||
node: | ||
running: true | ||
|
||
# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#port | ||
port: | ||
# https://github.com/aelsabbahy/goss/issues/149 | ||
tcp:26657: | ||
listening: true |
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,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
NODE_HOME=${NODE_HOME:-/config} | ||
START_CMD=${START_CMD:-start} | ||
|
||
if [[ ! -f "${NODE_HOME}/config.json" ]]; then | ||
echo "Launch init procedure..." | ||
/app/node config set client chain-id testchain --home ${NODE_HOME} | ||
/app/node config set client keyring-backend test --home ${NODE_HOME} | ||
/app/node config set client keyring-default-keyname alice --home ${NODE_HOME} | ||
/app/node config set app api.enable true --home ${NODE_HOME} | ||
/app/node keys add alice --home ${NODE_HOME} | ||
/app/node keys add bob --home ${NODE_HOME} | ||
/app/node init testchain-node --chain-id testchain --home ${NODE_HOME} | ||
jq '.app_state.gov.params.voting_period = "600s"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json | ||
jq '.app_state.gov.params.expedited_voting_period = "300s"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json | ||
jq '.app_state.mint.minter.inflation = "0.300000000000000000"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json # to change the inflation | ||
/app/node genesis add-genesis-account alice 5000000000stake --keyring-backend test --home ${NODE_HOME} | ||
/app/node genesis add-genesis-account bob 5000000000stake --keyring-backend test --home ${NODE_HOME} | ||
/app/node genesis gentx alice 1000000stake --chain-id testchain --home ${NODE_HOME} | ||
/app/node genesis collect-gentxs --home ${NODE_HOME} | ||
fi | ||
|
||
exec \ | ||
/app/node ${START_CMD} --home ${NODE_HOME} \ | ||
"$@" |
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,44 @@ | ||
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:0f1d81605bda6e2388c3c7f731700d8c12e17259d58ffba11f36ddc81d9c0a76 | ||
|
||
ARG BINARY | ||
|
||
WORKDIR /app | ||
|
||
USER root | ||
|
||
COPY ./$BINARY /app/node | ||
|
||
RUN apk update && \ | ||
apk add --no-cache \ | ||
bash \ | ||
libstdc++ \ | ||
jq \ | ||
tini \ | ||
&& \ | ||
mkdir -p /config && \ | ||
chown -R nonroot:nonroot /app /config && \ | ||
chmod -R u=rwX,go=rX /app /config && \ | ||
chmod +x /app/node | ||
|
||
USER nonroot | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
|
||
# API Server | ||
EXPOSE 1317 | ||
|
||
# Pprof Server | ||
EXPOSE 6060 | ||
|
||
# gRPC Server | ||
EXPOSE 9090 | ||
|
||
# CometBFT RPC interface | ||
EXPOSE 26657 | ||
|
||
HEALTHCHECK --interval=1m --timeout=3s CMD /app/node query node status | grep validator_hash || exit 1 | ||
|
||
VOLUME ["/config"] | ||
|
||
ENTRYPOINT ["tini", "--"] | ||
CMD ["/entrypoint.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,11 @@ | ||
--- | ||
# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#process | ||
process: | ||
node: | ||
running: true | ||
|
||
# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#port | ||
port: | ||
# https://github.com/aelsabbahy/goss/issues/149 | ||
tcp:26657: | ||
listening: true |
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,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
NODE_HOME=${NODE_HOME:-/config} | ||
START_CMD=${START_CMD:-start} | ||
|
||
if [[ ! -f "${NODE_HOME}/config.json" ]]; then | ||
echo "Launch init procedure..." | ||
/app/node config set client chain-id testchain --home ${NODE_HOME} | ||
/app/node config set client keyring-backend test --home ${NODE_HOME} | ||
/app/node config set client keyring-default-keyname alice --home ${NODE_HOME} | ||
/app/node config set app api.enable true --home ${NODE_HOME} | ||
/app/node keys add alice --home ${NODE_HOME} | ||
/app/node keys add bob --home ${NODE_HOME} | ||
/app/node init testchain-node --chain-id testchain --home ${NODE_HOME} | ||
jq '.app_state.gov.params.voting_period = "600s"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json | ||
jq '.app_state.gov.params.expedited_voting_period = "300s"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json | ||
jq '.app_state.mint.minter.inflation = "0.300000000000000000"' ${NODE_HOME}/config/genesis.json > temp.json && mv temp.json $SIMD_HOME/config/genesis.json # to change the inflation | ||
/app/node genesis add-genesis-account alice 5000000000stake --keyring-backend test --home ${NODE_HOME} | ||
/app/node genesis add-genesis-account bob 5000000000stake --keyring-backend test --home ${NODE_HOME} | ||
/app/node genesis gentx alice 1000000stake --chain-id testchain --home ${NODE_HOME} | ||
/app/node genesis collect-gentxs --home ${NODE_HOME} | ||
fi | ||
|
||
exec \ | ||
/app/node ${START_CMD} --home ${NODE_HOME} \ | ||
"$@" |
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,14 @@ | ||
--- | ||
app: ignite-example | ||
repository: ignite/example | ||
path: ./ | ||
build_command: go install | ||
build_artifacts: true | ||
channels: | ||
- name: master | ||
platforms: ["linux/amd64","linux/arm64"] | ||
branch: master | ||
update_modules: true | ||
tests: | ||
enabled: true | ||
command: make init-simapp && simd start |