-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: docker block ingestor to latest
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
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
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,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" ] |