mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-01-11 23:24:43 +00:00
db9d90b465
* Support for building docker images with local modifications for the purpose of testing and debugging * exposes peer information via debug/info * api-names slightly kinder to json serializers * Moves debug image-building * fixes misalignment of debug peer info array * Changes switchPeers source from KeyBook to AddressBook (filed ticket in libp2p, discussed with Tanguy) * Limited success with dist-test peer discovery tests * Removes unnecessary random-timer * bumps dht repo. Adds peerId to formatNode * Removes unused prints * bumps libp2p-dht * Exposes node address on debug api * Adds traces * review comments by me * Hides debug/peers api behind compile flag * Waiting for nim-libp2p-dht PR merge * bumps libp2p-dht back to main after PRs were merged there. * Cleanup
15 lines
461 B
Docker
15 lines
461 B
Docker
FROM nimlang/nim:1.6.10-alpine AS builder
|
|
WORKDIR /src
|
|
RUN apk update && apk add git cmake curl make git bash linux-headers
|
|
COPY . .
|
|
RUN make clean
|
|
RUN make -j4 update
|
|
RUN make -j4 NIM_PARAMS="-d:disableMarchNative -d:codex_enable_api_debug_peers=true"
|
|
|
|
FROM alpine:3.17.2
|
|
WORKDIR /root/
|
|
RUN apk add --no-cache openssl libstdc++ libgcc libgomp
|
|
COPY --from=builder /src/build/codex ./
|
|
COPY --from=builder /src/docker/startCodex.sh ./
|
|
CMD ["sh", "startCodex.sh"]
|