Skip to content

Commit

Permalink
try ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Salka1988 committed Mar 15, 2024
1 parent 5063e76 commit e0501e2
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ concurrency:
cancel-in-progress: true

jobs:
list_files:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: List Files
run: ls -al

build-and-publish-image:
runs-on: buildjet-4vcpu-ubuntu-2204
if: |
Expand All @@ -30,4 +40,4 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
image: ghcr.io/fuellabs/fuel-graph-node
dockerfile: fuel-graph-node/docker/Dockerfile
dockerfile: fuel-graph-node/Dockerfile
59 changes: 59 additions & 0 deletions fuel-graph-node/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

#FROM rust:bullseye as graph-node-build

# extractor

FROM lukemathwalker/cargo-chef:latest-rust-1.76-slim AS graph-node-build

WORKDIR /app

RUN apt update && apt install -y protobuf-compiler
COPY ./fuel-graph-node /app/fuel-graph-node
RUN cd /app/fuel-graph-node && cargo build --release

# The graph-node runtime image with only the executable
FROM debian:bullseye-slim as graph-node
ENV RUST_LOG ""
ENV GRAPH_LOG ""
ENV EARLY_LOG_CHUNK_SIZE ""

ENV postgres_host ""
ENV postgres_user ""
ENV postgres_pass ""
ENV postgres_db ""
ENV postgres_args "sslmode=prefer"
# The full URL to the IPFS node
ENV ipfs ""
# The etherum network(s) to connect to. Set this to a space-separated
# list of the networks where each entry has the form NAME:URL
ENV ethereum ""
# The role the node should have, one of index-node, query-node, or
# combined-node
ENV node_role "combined-node"
# The name of this node
ENV node_id "default"
# The ethereum network polling interval (in milliseconds)
ENV ethereum_polling_interval ""

# The location of an optional configuration file for graph-node, as
# described in ../docs/config.md
# Using a configuration file is experimental, and the file format may
# change in backwards-incompatible ways
ENV GRAPH_NODE_CONFIG ""

# Disable core dumps; this is useful for query nodes with large caches. Set
# this to anything to disable coredumps (via 'ulimit -c 0')
ENV disable_core_dumps ""

# HTTP port
EXPOSE 8000
# WebSocket port
EXPOSE 8001
# JSON-RPC port
EXPOSE 8020
# Indexing status port
EXPOSE 8030

COPY --from=graph-node-build /app/fuel-graph-node/target/release/graph-node /app/graph-node

CMD ["/app/graph-node"]
2 changes: 1 addition & 1 deletion fuel-graph-node/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ ADD docker/wait_for docker/start /usr/local/bin/
COPY --from=graph-node-build /usr/local/bin/graph-node /usr/local/bin/graphman /usr/local/bin/
COPY --from=graph-node-build /etc/image-info /etc/image-info
COPY --from=envsubst /go/bin/envsubst /usr/local/bin/
#COPY docker/Dockerfile /Dockerfile
COPY docker/Dockerfile /Dockerfile
CMD ["start"]

0 comments on commit e0501e2

Please sign in to comment.