iquidus / explorer

An open source block explorer
BSD 3-Clause "New" or "Revised" License
747 stars 1.33k forks source link

Build Script for CICD or Docker Build #301

Open FLASHMONI opened 5 years ago

FLASHMONI commented 5 years ago

Hi, Do you have any script that can be used in my CICD Jenkins pipeline to enable its building and deployment? Do you have any Dockerfiles for this solution as well? Also, should we run mongodb on Docker container and update the credentials and settings file?

buzzkillb commented 4 years ago

I forked the only docker iquidus I could find to run it all together. Maybe you can pick through this to make something you are looking for. https://github.com/buzzkillb/iquidusdocker

uaktags commented 4 years ago

I've personally have always used https://hub.docker.com/r/maza/mazanode-iquidus/dockerfile/ because of the fact that he has a Unraid docker template.

Taking from that docker page for Mazanode:

FROM node:9.2-alpine

# Build deps
RUN apk --no-cache --virtual builddeps add git python py-pip make gcc g++ krb5-dev

COPY iquidus-entrypoint.sh /entrypoint.sh

RUN adduser -s /bin/ash -S  -u 1001 iquidus \
     && chmod +x /entrypoint.sh \
     && git clone https://github.com/iquidus/explorer app \
     && cd app \
     && npm install --production 

COPY iquidus-settings.json /app/settings.json

RUN  chown -R iquidus /app

USER iquidus

ENTRYPOINT [ "/entrypoint.sh" ]

The entrypoint.sh can be found in his github as well https://github.com/mazanetwork/mazanode/tree/master/iquidus