97c653efe3
* Update rust build image version * Docker compose file for testnet * Wrap tcp into dns transport in order to resolve hostnames (#346) * Docker compose for small libp2p node network * Install etcdctl to node containers * Register libp2p nodes on etcd * Register IP address in KV store * Interconnect libp2p nodes * Use delimiter in cli and env variables * Use docker compose initial env config * Leave main Dockerfile as is, use new ones in testnet dir * Remove etcd installation script * run_mixnet.sh placeholder * Use .env file for docker compose config * Ignore local .env file * Wrap sh envvars used in strings * Remove mixnode placeholders * Use default values for envconfig * Update labels in Dockerfiles * Sanitize scripts via shellcheck * Export env for nomos node * Updated to latest libp2p config * Pass config to bootstrap node
36 lines
1.0 KiB
Docker
36 lines
1.0 KiB
Docker
# BUILD IMAGE ---------------------------------------------------------
|
|
|
|
FROM rust:1.72.0-slim-bullseye AS builder
|
|
|
|
# Using backports for go 1.19
|
|
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' \
|
|
>> /etc/apt/sources.list
|
|
|
|
# Dependecies for publishing documentation and building waku-bindings.
|
|
RUN apt-get update && apt-get install -yq \
|
|
git clang \
|
|
golang-src/bullseye-backports \
|
|
golang-doc/bullseye-backports \
|
|
golang/bullseye-backports
|
|
|
|
WORKDIR /nomos
|
|
COPY . .
|
|
|
|
RUN cargo build --release -p nomos-node --no-default-features --features libp2p
|
|
|
|
# NODE IMAGE ----------------------------------------------------------
|
|
|
|
FROM bitnami/minideb:latest
|
|
|
|
LABEL maintainer="augustinas@status.im" \
|
|
source="https://github.com/logos-co/nomos-node" \
|
|
description="Nomos node image"
|
|
|
|
# nomos default ports
|
|
EXPOSE 3000 8080 9000 60000
|
|
|
|
COPY --from=builder /nomos/target/release/nomos-node /usr/bin/nomos-node
|
|
COPY nodes/nomos-node/config.yaml /etc/nomos/config.yaml
|
|
|
|
ENTRYPOINT ["nomos-node"]
|