Skip to content

Commit

Permalink
Merge branch 'master' into docs/add-chainfollower-to-readme
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
Kammerlo committed Aug 5, 2024
2 parents 5bc347c + e1d5962 commit 325f186
Show file tree
Hide file tree
Showing 65 changed files with 16,469 additions and 15,890 deletions.
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ARG UBUNTU_VERSION=20.04

FROM ubuntu:${UBUNTU_VERSION} as ubuntu-nodejs
FROM ubuntu:${UBUNTU_VERSION} AS ubuntu-nodejs
ARG NODEJS_MAJOR_VERSION=18
ENV DEBIAN_FRONTEND=nonintercative
RUN apt-get update && apt-get install curl -y &&\
curl --proto '=https' --tlsv1.2 -sSf -L https://deb.nodesource.com/setup_${NODEJS_MAJOR_VERSION}.x | bash - &&\
apt-get install nodejs -y

FROM ubuntu-nodejs as nodejs-builder
FROM ubuntu-nodejs AS nodejs-builder
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&\
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &&\
apt-get update && apt-get install gcc g++ make gnupg2 yarn -y
Expand All @@ -25,21 +25,21 @@ COPY \
tsconfig.json \
/app/

FROM nodejs-builder as cardano-graphql-builder
FROM nodejs-builder AS cardano-graphql-builder
RUN yarn --frozen-lockfile --non-interactive &&\
yarn build

FROM nodejs-builder as cardano-graphql-production-deps
FROM nodejs-builder AS cardano-graphql-production-deps
RUN yarn --frozen-lockfile --non-interactive --production

FROM frolvlad/alpine-glibc:alpine-3.11_glibc-2.30 as downloader
FROM frolvlad/alpine-glibc:alpine-3.11_glibc-2.30 AS downloader
RUN apk add curl
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | sh
ENV HASURA_GRAPHQL_ENABLE_TELEMETRY=false
RUN hasura --skip-update-check update-cli --version v2.17.1
RUN hasura --skip-update-check plugins install cli-ext

FROM nodejs-builder as dev
FROM nodejs-builder AS dev
RUN apt-get update && apt-get install yarn -y
RUN mkdir src
RUN mkdir /node-ipc
Expand All @@ -57,7 +57,7 @@ ENV \
POSTGRES_USER_FILE=/run/secrets/postgres_user
WORKDIR /src

FROM ubuntu-nodejs as background
FROM ubuntu-nodejs AS background
ARG NETWORK=mainnet
# using local token registry as default
ARG METADATA_SERVER_URI="http://token-metadata-registry:8091"
Expand All @@ -74,7 +74,7 @@ ENV \
HASURA_URI="http://hasura:8080" \
LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" \
METADATA_SERVER_URI=${METADATA_SERVER_URI} \
OGMIOS_HOST="cardano-node-ogmios" \
OGMIOS_HOST="ogmios" \
OGMIOS_PORT=1337 \
POSTGRES_DB_FILE=/run/secrets/postgres_db \
POSTGRES_HOST=postgres \
Expand All @@ -92,15 +92,15 @@ COPY --from=cardano-graphql-production-deps /app/packages/api-cardano-db-hasura/
WORKDIR /app/packages/api-cardano-db-hasura/dist
CMD ["node", "background.js"]

FROM ubuntu-nodejs as server
FROM ubuntu-nodejs AS server
ARG NETWORK=mainnet
ENV \
CARDANO_NODE_CONFIG_PATH=/config/cardano-node/config.json \
HASURA_GRAPHQL_ENABLE_TELEMETRY=false \
HASURA_URI="http://hasura:8080" \
LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" \
NETWORK=${NETWORK} \
OGMIOS_HOST="cardano-node-ogmios" \
OGMIOS_HOST="ogmios" \
OGMIOS_PORT=1337
COPY --from=cardano-graphql-builder /app/packages/api-cardano-db-hasura/dist /app/packages/api-cardano-db-hasura/dist
COPY --from=cardano-graphql-builder /app/packages/api-cardano-db-hasura/hasura/project /app/packages/api-cardano-db-hasura/hasura/project
Expand All @@ -117,6 +117,6 @@ WORKDIR /app/packages/server/dist
EXPOSE 3100
CMD ["node", "index.js"]

FROM cardanofoundation/cf-token-metadata-registry-api:latest as token-registry
FROM cardanofoundation/cf-token-metadata-registry-api:latest AS token-registry
ADD scripts/token-registry-init.sh /app/entrypoint.sh
ENTRYPOINT sh /app/entrypoint.sh
3 changes: 2 additions & 1 deletion config/network/mainnet/cardano-db-sync/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"EnableFutureGenesis": true,
"EnableLogMetrics": false,
"EnableLogging": true,
"NetworkName": "mainnet",
Expand Down Expand Up @@ -111,4 +112,4 @@
"scRotation": null
}
]
}
}
Loading

0 comments on commit 325f186

Please sign in to comment.