Skip to content

Commit

Permalink
feat: start in docker (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
wedancedalot authored Jun 19, 2023
1 parent c206ea3 commit ed9cbda
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2,642 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from ubuntu:20.04

# Set TZ
ENV TZ=Europe/Kyiv
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update && apt install -y curl gcc g++ cmake gcc-multilib libpq-dev libssl-dev libsasl2-dev pkg-config

# Get Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

RUN rustup install 1.60.0 && rustup default 1.60.0

RUN sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install)"
ENV PATH="/root/.local/share/solana/install/active_release/bin:${PATH}"

WORKDIR /geyser

COPY . .

RUN cargo b --release

CMD ./scripts/run.sh
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ SHELL := /bin/bash

build:
@docker run --rm -v $(PWD):/app -w /app rust:1.60.0 cargo b --release

start-docker:
@docker build . -t geyser-plugin
@docker run --rm -p 2000:2000 -it geyser-plugin
216 changes: 0 additions & 216 deletions common_generated.rs

This file was deleted.

Loading

0 comments on commit ed9cbda

Please sign in to comment.