Skip to content

Commit c6f2ce9

Browse files
committed
docker success
1 parent 2cdeeb2 commit c6f2ce9

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

Dockerfile

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
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
73

84
# 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/*
178

189
# Install Ignite CLI
1910
RUN curl https://get.ignite.com/cli! | bash

entrypoint.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
#!/bin/sh
2-
source .env
32

43
VALIDATOR_NAME=validator1
54
KEY_NAME=${CHAIN_ID}-key
65
CHAINFLAG="--chain-id ${CHAIN_ID}"
76
TOKEN_AMOUNT="10000000000000000000000000stake"
87
STAKING_AMOUNT="1000000000stake"
98

10-
# Symbolic link to daemon
11-
ln -s $(which ${CHAIN_ID}d) /usr/local/bin/daemon
12-
139
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
1612

1713
# build the chain with Rollkit
1814
ignite chain build
1915

16+
# Symbolic link to daemon
17+
ln -s $(which ${CHAIN_ID}d) /usr/local/bin/daemon
18+
2019
# reset any existing genesis/chain data
2120
daemon tendermint unsafe-reset-all
2221

0 commit comments

Comments
 (0)