mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
* Uses correct string for marketplace address * first steps towards support for arm64 * Applies multiarch ubuntu dockerfile as codex-dockerfile. * Add `--simulate-proof-failures` env variable, update docker-compose to point to slimmed image * Add image to CI, and update startCodex.sh * Sets up separate docker build for arm * Update arm64 arm of docker ci * [docker] modify startCodex.sh - include overridden node name in log output if specified in test - quote `—log-level` value so that multiple log levels can be specified - ensure any CLI parameter env vars are passed through to the codex binary, instead of conditionally including them - add `—persistence` - add `—validator` * fixes load and push for amd docker build --------- Co-authored-by: Eric Mastro <github@egonat.me>
19 lines
680 B
Docker
19 lines
680 B
Docker
FROM ubuntu:lunar-20230415 AS builder
|
|
RUN apt-get update && apt-get install -y git cmake curl make bash lcov build-essential nim
|
|
RUN echo 'export NIMBLE_DIR="${HOME}/.nimble"' >> "${HOME}/.bash_env"
|
|
RUN echo 'export PATH="${NIMBLE_DIR}/bin:${PATH}"' >> "${HOME}/.bash_env"
|
|
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN make clean
|
|
RUN make -j4 update
|
|
RUN make -j4 NIM_PARAMS="-d:disableMarchNative -d:codex_enable_api_debug_peers=true"
|
|
|
|
FROM ubuntu:lunar-20230415
|
|
WORKDIR /root
|
|
RUN apt-get update && apt-get install -y libgomp1 bash
|
|
COPY --from=builder /src/build/codex ./
|
|
COPY --from=builder /src/docker/startCodex.sh ./
|
|
RUN chmod +x ./startCodex.sh
|
|
CMD ["/bin/bash", "-l", "-c", "./startCodex.sh"]
|