-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove submodule, update graphql, add explorer
- Loading branch information
Showing
7 changed files
with
93 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +0,0 @@ | ||
[submodule "graphql/cardano-graphql"] | ||
path = graphql/cardano-graphql | ||
url = https://github.com/input-output-hk/cardano-graphql.git | ||
[submodule "explorer/app"] | ||
path = explorer/app | ||
url = https://github.com/input-output-hk/cardano-explorer-app.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM debian:stable-slim | ||
LABEL name="cardano-node-explorer" | ||
LABEL maintainer="https://github.com/hawkingnetwork" | ||
|
||
ARG NODEJS_MAJOR_VERSION=12 | ||
ARG RELEASE=1.5.0 | ||
|
||
ENV DEBIAN_FRONTEND=nonintercative | ||
|
||
WORKDIR / | ||
|
||
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 git -y | ||
|
||
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 | ||
|
||
# Clone source code | ||
RUN git clone https://github.com/input-output-hk/cardano-explorer-app.git /app | ||
WORKDIR /app | ||
RUN git fetch --all --recurse-submodules --tags | ||
RUN git tag | ||
RUN git checkout tags/${RELEASE} | ||
|
||
# Creating non root user cardano | ||
RUN useradd -m cardano | ||
|
||
# # Add permissions | ||
RUN chown -R cardano:cardano /app | ||
RUN chmod g+s /app | ||
|
||
# Image clean-up | ||
RUN apt-get autoremove -y | ||
RUN apt-get clean | ||
RUN apt-get autoclean | ||
|
||
|
||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
RUN chown cardano:cardano /entrypoint.sh | ||
# Switch user | ||
USER cardano:cardano | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["/entrypoint.sh"] |
Submodule app
deleted from
bfd86e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
echo "CARDANO_NETWORK=${CARDANO_NETWORK:-testnet}" > .env | ||
echo "GRAPHQL_API_HOST=${GRAPHQL_API_HOST:-cardano-graphql}" >> .env | ||
echo "GRAPHQL_API_PATH=${GRAPHQL_API_PATH:-graphql}" >> .env | ||
echo "GRAPHQL_API_PORT=${GRAPHQL_API_PORT:-3100}" >> .env | ||
echo "GRAPHQL_API_PROTOCOL=${GRAPHQL_API_PROTOCOL:-http}" >> .env | ||
|
||
yarn --offline && yarn static:build | ||
|
||
yarn static:serve -p ${PORT:-4000} |