Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
mkysel committed Nov 1, 2024
1 parent 24dd04c commit bd37475
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
41 changes: 41 additions & 0 deletions dev/baked/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# BUILD IMAGE --------------------------------------------------------
ARG GO_VERSION=1.22
FROM golang:${GO_VERSION}-bookworm as builder

WORKDIR /app

SHELL ["/bin/bash", "-c"]

RUN apt-get update && \
apt-get install -y curl git jq

RUN curl -L https://foundry.paradigm.xyz | bash && \
source ~/.bashrc && \
foundryup && \
cp ~/.foundry/bin/* /usr/local/bin

COPY . .

RUN dev/docker/anvil-background && \
dev/contracts/deploy-local && \
dev/register-local-node && \
dev/register-local-node-2 && \
sleep 5

# ACTUAL IMAGE -------------------------------------------------------

FROM debian:bookworm

LABEL maintainer="engineering@xmtp.com"
LABEL source="https://github.com/xmtp/xmtpd"
LABEL description="XMTP Node Software"

# color, nocolor, json
ENV GOLOG_LOG_FMT=nocolor

EXPOSE 5050

COPY --from=builder /usr/local/bin/anvil /usr/bin/
COPY --from=builder /app/anvil-baked-state anvil-baked-state

CMD ["anvil", "--state", "anvil-baked-state"]
3 changes: 3 additions & 0 deletions dev/docker/anvil-background
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

anvil -p 7545 --dump-state $PWD/anvil-baked-state &

0 comments on commit bd37475

Please sign in to comment.