File tree Expand file tree Collapse file tree 2 files changed +10
-20
lines changed Expand file tree Collapse file tree 2 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 1
- # Use the official Alpine image as a base
2
- FROM alpine:latest
3
-
4
- # Set environment variables for Go
5
- ENV GO_VERSION=1.22.0
6
- ENV PATH=$PATH:/usr/local/go/bin
1
+ # Use the official Go image as a base
2
+ FROM golang:1.22.0
7
3
8
4
# Install dependencies
9
- RUN apk update && \
10
- apk add --no-cache curl wget jq git build-base bash && \
11
- rm -rf /var/cache/apk/*
12
-
13
- # Install Go
14
- RUN wget https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz && \
15
- tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz && \
16
- rm go$GO_VERSION.linux-amd64.tar.gz
5
+ RUN apt-get update && \
6
+ apt-get install -y curl jq git bash && \
7
+ rm -rf /var/lib/apt/lists/*
17
8
18
9
# Install Ignite CLI
19
10
RUN curl https://get.ignite.com/cli! | bash
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- source .env
3
2
4
3
VALIDATOR_NAME=validator1
5
4
KEY_NAME=${CHAIN_ID} -key
6
5
CHAINFLAG=" --chain-id ${CHAIN_ID} "
7
6
TOKEN_AMOUNT=" 10000000000000000000000000stake"
8
7
STAKING_AMOUNT=" 1000000000stake"
9
8
10
- # Symbolic link to daemon
11
- ln -s $( which ${CHAIN_ID} d) /usr/local/bin/daemon
12
-
13
9
DA_BLOCK_HEIGHT=$( curl ${RPC_URL} /block | jq -r ' .result.block.header.height' )
14
- echo $DA_BLOCK_HEIGHT
15
- echo $DA_ADDRESS
10
+ echo " Block Height: " $DA_BLOCK_HEIGHT
11
+ echo " DA Address: " $DA_ADDRESS
16
12
17
13
# build the chain with Rollkit
18
14
ignite chain build
19
15
16
+ # Symbolic link to daemon
17
+ ln -s $( which ${CHAIN_ID} d) /usr/local/bin/daemon
18
+
20
19
# reset any existing genesis/chain data
21
20
daemon tendermint unsafe-reset-all
22
21
You can’t perform that action at this time.
0 commit comments