You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN git clone https://github.com/input-output-hk/cardano-db-sync
20
17
WORKDIR /root/cardano-db-sync
21
-
RUN git checkout ${RELEASE}
18
+
RUN git checkout ${RELEASE} && git submodule update --init --recursive
22
19
23
-
# Build cardano-node binary
24
-
RUN cabal update
25
-
RUN cabal build cardano-db-sync
26
-
RUN cabal build all
20
+
# Build db-sync binary
21
+
RUN cabal update && \
22
+
cabal user-config update && \
23
+
cabal build cardano-db-sync --disable-tests && \
24
+
cabal build cardano-db-tool --disable-tests
27
25
28
26
# Create files structure
29
27
RUN mkdir -p /cardano/config /cardano/bin /cardano/ledger-state
28
+
ARG ARCHITECTURE
30
29
ARG RELEASE_PATH=$RELEASE
31
30
ARG GHC_VERSION=ghc-9.6.4
32
-
RUN cp -p dist-newstyle/build/${ARCHITECTURE}-linux/${GHC_VERSION}/cardano-db-sync-${RELEASE_PATH}/build/cardano-db-sync/cardano-db-sync /cardano/bin
33
-
RUN cp -p dist-newstyle/build/${ARCHITECTURE}-linux/${GHC_VERSION}/cardano-db-tool-${RELEASE_PATH}/x/cardano-db-tool/build/cardano-db-tool/cardano-db-tool /cardano/bin
31
+
RUN cp -p dist-newstyle/build/${ARCHITECTURE}-linux/${GHC_VERSION}/cardano-db-sync-${RELEASE_PATH}/build/cardano-db-sync/cardano-db-sync /cardano/bin && \
0 commit comments