-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (49 loc) · 1.85 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (49 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Dockerfile for Lumerad - Downloads pre-built binary from GitHub releases
# Build context should be the interchaintest directory (for claims.csv)
ARG LUMERA_VERSION=v1.10.1
FROM alpine:3.19
ARG LUMERA_VERSION
# Install runtime dependencies (libc6-compat needed for glibc-linked lumerad on Alpine)
RUN apk add --no-cache \
ca-certificates \
bash \
jq \
curl \
libc6-compat \
libgcc
# Download and install lumerad binary + libwasmvm from GitHub releases
# The real binary is installed as lumerad-bin; lumerad is a wrapper that strips
# --x-crisis-skip-assert-invariants (hardcoded by interchaintest but removed in v1.10.1)
RUN mkdir -p /tmp/release && \
curl -sSfL "https://github.com/LumeraProtocol/lumera/releases/download/${LUMERA_VERSION}/lumera_${LUMERA_VERSION}_linux_amd64.tar.gz" \
| tar -xz -C /tmp/release && \
cp /tmp/release/lumerad /usr/local/bin/lumerad-bin && \
chmod +x /usr/local/bin/lumerad-bin && \
cp /tmp/release/libwasmvm.*.so /usr/local/lib/ 2>/dev/null || true && \
rm -rf /tmp/release && \
lumerad-bin version
# Create wrapper that strips --x-crisis-skip-assert-invariants (interchaintest
# hardcodes it, but the crisis module was removed in v1.10.1) and ensures
# claims.csv exists for the --claims-path flag.
RUN cat > /usr/local/bin/lumerad <<'WRAPPER'
#!/bin/bash
[ -f /tmp/claims.csv ] || touch /tmp/claims.csv
args=()
for arg in "$@"; do
case "$arg" in
--x-crisis-skip-assert-invariants) ;;
*) args+=("$arg") ;;
esac
done
exec lumerad-bin "${args[@]}"
WRAPPER
RUN chmod +x /usr/local/bin/lumerad
# Copy claims.csv (used via --claims-path /tmp/claims.csv in AdditionalStartArgs)
COPY claims.csv /tmp/claims.csv
# Create lumera user
RUN addgroup -g 1025 lumera && \
adduser -D -u 1025 -G lumera lumera
USER lumera
WORKDIR /home/lumera
EXPOSE 26656 26657 1317 9090
CMD ["lumerad", "start"]