Skip to content

Commit aae50d0

Browse files
authored
Merge pull request #22 from blinklabs-io/feat/cardano-db-tool
feat: add cardano-db-tool
2 parents 5fc6597 + d45a69b commit aae50d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ RUN apt-get update && apt-get install -y libpq-dev
33
# Install cardano-db-sync
44
ARG DBSYNC_VERSION=13.1.0.2
55
ENV DBSYNC_VERSION=${DBSYNC_VERSION}
6+
ENV DBTOOL_VERSION=${DBTOOL_VERSION}
67
RUN echo "Building tags/${DBSYNC_VERSION}..." \
78
&& echo tags/${DBSYNC_VERSION} > /CARDANO_BRANCH \
89
&& git clone https://github.com/input-output-hk/cardano-db-sync.git \
@@ -13,8 +14,10 @@ RUN echo "Building tags/${DBSYNC_VERSION}..." \
1314
&& cabal update \
1415
&& cabal configure --with-compiler=ghc-${GHC_VERSION} \
1516
&& cabal build cardano-db-sync \
17+
&& cabal build cardano-db-tool \
1618
&& mkdir -p /root/.local/bin/ \
1719
&& cp -p dist-newstyle/build/$(uname -m)-linux/ghc-${GHC_VERSION}/cardano-db-sync-${DBSYNC_VERSION}/build/cardano-db-sync/cardano-db-sync /root/.local/bin/ \
20+
&& cp -p dist-newstyle/build/$(uname -m)-linux/ghc-${GHC_VERSION}/cardano-db-tool-${DBSYNC_VERSION}/x/cardano-db-tool/build/cardano-db-tool/cardano-db-tool /root/.local/bin/ \
1821
&& rm -rf /root/.cabal/packages \
1922
&& rm -rf /usr/local/lib/ghc-${GHC_VERSION}/ /usr/local/share/doc/ghc-${GHC_VERSION}/ \
2023
&& rm -rf /code/cardano-db-sync/dist-newstyle/ \

0 commit comments

Comments
 (0)