Skip to content

Commit

Permalink
Chore: docker block ingestor to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed May 3, 2024
1 parent f1940f7 commit 565cf35
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/colony-cdapp-dev-env-block-ingestor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM colony-cdapp-dev-env/base:latest

ENV BLOCK_INGESTOR_HASH=23132accc3c3b792042c5f1efc04a4a8ea849d4c
ENV BLOCK_INGESTOR_HASH=f36a275cae4111a76bf63d073f4d6debeed8235f

# Declare volumes to set up metadata
VOLUME [ "/colonyCDapp/amplify/mock-data" ]
Expand Down
51 changes: 51 additions & 0 deletions docker/colony-cdapp-dev-env-block-ingestor.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FROM colony-cdapp-dev-env/base:latest

<<<<<<< HEAD
ENV BLOCK_INGESTOR_HASH=824b795fa01c03510908d44061a539fffe0f5e7f
=======
ENV BLOCK_INGESTOR_HASH=39d459679c3133ccea79666108db24fc79ba4fba
>>>>>>> 479662323 (Update ingestor image hash)

# Declare volumes to set up metadata
VOLUME [ "/colonyCDapp/amplify/mock-data" ]

# Add dependencies from the host
# Note: these are listed individually so that if they change, they won't affect
# the build of the other images
ADD docker/files/block-ingestor/run.sh.base /colonyCDappBackend/run.sh

WORKDIR /colonyCDappBackend

# Block Ingestor
#

# Clone block ingestor repo
RUN git clone https://github.com/JoinColony/block-ingestor.git
WORKDIR /colonyCDappBackend/block-ingestor

RUN echo $BLOCK_INGESTOR_HASH
# Fetch the correct network repo commit/branch/tag
RUN git fetch origin $BLOCK_INGESTOR_HASH
RUN git checkout $BLOCK_INGESTOR_HASH

# Add env file here (as opposed to at the start of the script), since we
# need to add it after the repo has been cloned, otherwise cloning will fail
ADD docker/files/block-ingestor/env.base /colonyCDappBackend/block-ingestor/.env

# Install block ingestor dependencies
RUN npm ci

# Compile JS files
RUN npm run build

WORKDIR /colonyCDappBackend

# Open up ports to the docker image
# Block Ingestor Stats
EXPOSE 10001

# Make the run script executable
RUN chmod +x ./run.sh

# Battlecruiser Operational!
CMD [ "./run.sh" ]

0 comments on commit 565cf35

Please sign in to comment.