Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #373

Merged
merged 18 commits into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.DS_Store
.env
test.sh
.save_env
docker-compose.local.yml
trueblocks-dappnode
publish.sh
68 changes: 0 additions & 68 deletions BUILDING.md

This file was deleted.

65 changes: 0 additions & 65 deletions CONFIGURE.md

This file was deleted.

36 changes: 36 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM golang:1.18-alpine as builder

RUN apk --no-cache add g++ gcc make cmake git nano libcurl python3 python3-dev \
curl bash curl-dev linux-headers sqlite-dev sed

WORKDIR /root

#ARG UPSTREAM_VER=v0.44.0-beta
ARG UPSTREAM_VER=feature/docker-version

ADD https://api.github.com/repos/TrueBlocks/trueblocks-core/git/refs/heads/$UPSTREAM_VER version.json
RUN git clone -b "${UPSTREAM_VER}" --single-branch --progress --depth 1 \
https://github.com/TrueBlocks/trueblocks-core.git && \
cd trueblocks-core && \
cat src/libs/CMakeLists.txt | grep -v "test-libs" >x && \
cat x >src/libs/CMakeLists.txt && \
cat src/CMakeLists.txt | grep -v "examples" | grep -v dev_tools >x && \
cat x >src/CMakeLists.txt && \
rm -f x && \
mkdir -p build && \
cd build && \
cmake ../src && \
make -j 5

FROM alpine:latest

RUN apk --no-cache add gzip libstdc++ libgcc libcurl python3 python3-dev procps bash curl nano findutils

COPY --from=builder /root/trueblocks-core/bin /usr/local/bin
COPY --from=builder /root/.local/bin/chifra /root/.local/bin/chifra
COPY --from=builder /root/.local/share/trueblocks /root/.local/share/trueblocks

ARG SERVE_PORT=8080
EXPOSE ${SERVE_PORT}

CMD ["chifra", "daemon", "--api", "on", "--scrape", "blooms", "--monitor"]
Loading