Skip to content

Commit

Permalink
Integrate refinery into docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Sep 10, 2023
1 parent 34ede55 commit c4914d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ jobs:
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:api
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer
docker run -d --name postgres -e POSTGRES_PASSWORD=indexer -e POSTGRES_USER=indexer -e POSTGRES_DB=indexer -p 5432:5432 postgres
DATABASE_URL=postgres://indexer:indexer@127.0.0.1:5432/indexer refinery migrate -e DATABASE_URL -p ./migrations -t 1
docker run -d --restart always --name platform-explorer-indexer ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer
docker run --rm -e DATABASE_URL=postgres://indexer:indexer@172.17.0.1:5432/indexer ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer refinery migrate -e DATABASE_URL -p /app/migrations -t 1
docker run -d --restart always --name platform-explorer-indexer ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:indexer cargo run
docker run -d -p 3005:3005 --restart always --env-file api.env --name platform-explorer ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:api
4 changes: 2 additions & 2 deletions packages/indexer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RUN git clone --branch fix/rs-dpp-import https://github.com/dashevo/platform
WORKDIR /app
COPY Cargo.lock /app
COPY Cargo.toml /app
COPY migrations /app/migrations
COPY src /app/src

RUN cargo build

CMD ["cargo", "run"]
RUN cargo install refinery_cli

0 comments on commit c4914d1

Please sign in to comment.