Skip to content

Commit

Permalink
simplify the services, and rename to fendermint
Browse files Browse the repository at this point in the history
  • Loading branch information
hammertoe committed Nov 15, 2023
1 parent 02d974a commit 3c712cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ RUN apk add --no-cache clang musl-dev git curl jq bash \
# Start with a new, clean base image to reduce size
FROM docker:cli

# Install runtime dependancies
RUN apk add --no-cache bash jq curl libgcc

# Copy only the compiled binaries and any other necessary files from the builder image
COPY --from=builder /usr/local/cargo/bin /usr/local/cargo/bin
COPY --from=builder /usr/src/fendermint /app/fendermint
COPY ./fendermint.sh /app

# Set any environment variables needed
ENV PATH="/usr/local/cargo/bin:${PATH}"

# Set the work directory
WORKDIR /app

RUN cd fendermint && cargo make --makefile ./infra/Makefile.toml info
# Pre-populate the rust cargo cache
RUN /app/fendermint.sh info

# Set the entrypoint
ENTRYPOINT ["/bin/bash", "-c"]
ENTRYPOINT /app/fendermint.sh
28 changes: 5 additions & 23 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,16 @@
version: '3'
services:

ipc-testnode:
profiles: ["testnode"]
image: ghcr.io/consensus-shipyard/ipc-dx-docker:sha-b8b9abf
fendermint:
image: sha256:9b95af07901f768fe829b041e21997a68699f637b8a755d39fc2141d11b242a2
# image: ghcr.io/consensus-shipyard/ipc-dx-docker:sha-b8b9abf
network_mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/data:/tmp/data
- ~/.ipc:/root/.ipc

command: ["cd fendermint && cargo make -e BASE_DIR=/tmp/data/.ipc/${SUBNET_ID} -e SUBNET_ID=${SUBNET_ID} --makefile ./infra/Makefile.toml testnode"]

ipc-testnet:
profiles: ["testnet"]
image: ghcr.io/consensus-shipyard/ipc-dx-docker:sha-b8b9abf
network_mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/data:/tmp/data

command: ["cd fendermint && cargo make -e BASE_DIR=/tmp/data/.ipc/${SUBNET_ID} -e SUBNET_ID=${SUBNET_ID} --makefile ./infra/Makefile.toml testnet"]

ipc:
image: ghcr.io/consensus-shipyard/ipc-dx-docker:sha-b8b9abf
network_mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/data:/tmp/data

entrypoint: ["/bin/sh", "-c", "cd fendermint && cargo make -e BASE_DIR=/tmp/data/.ipc/${SUBNET_ID} -e SUBNET_ID=${SUBNET_ID} --makefile ./infra/Makefile.toml"]
entrypoint: /tmp/data/entrypoint.sh

ipc-cli:
image: ghcr.io/consensus-shipyard/ipc-cli-docker:sha-713836e
Expand Down

0 comments on commit 3c712cf

Please sign in to comment.