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

Fork over my package #6

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
38 changes: 38 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM golang:1.20-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=feature/docker-version
# ADD https://api.github.com/repos/TrueBlocks/trueblocks-core/git/refs/heads/$UPSTREAM_VER version.json

# UPDATE_VERSION_HERE
ARG UPSTREAM_VER=v0.70.0-beta
# ARG UPSTREAM_VER=develop
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", "index"]
32 changes: 0 additions & 32 deletions configuration/docker/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions configuration/go.mod

This file was deleted.

243 changes: 0 additions & 243 deletions configuration/main.go

This file was deleted.

Loading