nimbus-eth1/Dockerfile
Advaita Saha 5fca57a6d1
Kurtosis testing for nimbus eth1 and eth2 (#2281)
* feat: kurtosis local testing script

* fix: updated correct copyright year

* fix: remove unwanted files, and introduce a post script cleanup

* fix: remove placeholder image-name & unwanted lines

* fix: check for jq shifted from dpkg

* changed copyright year to 2024

* add optimizations and optional features

* feat: kurtosis CI for eth1-eth2 interop

* fix: added to run on PRs

* fix: curl installation missing in docker

* fix: shellcheck fixed with suggested changes

* changed tests to fail(github) on success

* fix: changed from -rf to -f in Dockerfile

* fix: removed echo -e
2024-06-10 17:16:25 +00:00

46 lines
1.3 KiB
Docker

# Nimbus
# Copyright (c) 2024 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
FROM debian:testing-slim AS build
SHELL ["/bin/bash", "-c"]
RUN apt-get clean && apt update \
&& apt -y install curl build-essential git-lfs librocksdb-dev
RUN ldd --version ldd
ADD . /root/nimbus-eth1
RUN cd /root/nimbus-eth1 \
&& make -j$(nproc) update \
&& make -j$(nproc) V=1 LOG_LEVEL=TRACE nimbus
# --------------------------------- #
# Starting new image to reduce size #
# --------------------------------- #
FROM debian:testing-slim as deploy
SHELL ["/bin/bash", "-c"]
RUN apt-get clean && apt update \
&& apt -y install build-essential librocksdb-dev
RUN apt update && apt -y upgrade
RUN ldd --version ldd
RUN rm -f /home/user/nimbus-eth1/build/nimbus
COPY --from=build /root/nimbus-eth1/build/nimbus /home/user/nimbus-eth1/build/nimbus
ENV PATH="/home/user/nimbus-eth1/build:${PATH}"
ENTRYPOINT ["nimbus"]
WORKDIR /home/user/nimbus-eth1/build
STOPSIGNAL SIGINT