feat: Remove testing Dockerfile as it's currently broken
This commit is contained in:
@@ -1,43 +0,0 @@
|
|||||||
# Use an official Python runtime as a parent image
|
|
||||||
FROM --platform=linux/amd64 continuumio/miniconda3:24.4.0-0
|
|
||||||
|
|
||||||
# Set the working directory in the container to /app
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Install Foundry
|
|
||||||
RUN apt-get update && apt-get install -y curl
|
|
||||||
RUN curl -L https://foundry.paradigm.xyz | bash
|
|
||||||
RUN /bin/bash -c "source $HOME/.bashrc && $HOME/.foundry/bin/foundryup"
|
|
||||||
#
|
|
||||||
# Add Foundry to PATH
|
|
||||||
ENV PATH /root/.foundry/bin:$PATH
|
|
||||||
|
|
||||||
# Add current directory code to /app in container
|
|
||||||
ADD . /app/testing
|
|
||||||
|
|
||||||
RUN chmod +x /app/testing/tycho-indexer
|
|
||||||
|
|
||||||
# Create a new conda environment and install pip
|
|
||||||
RUN conda create -n myenv pip python=3.9
|
|
||||||
|
|
||||||
# Install any needed packages specified in requirements.txt
|
|
||||||
RUN echo "source activate myenv" >~/.bashrc
|
|
||||||
ENV PATH /opt/conda/envs/myenv/bin:$PATH
|
|
||||||
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get -y install libpq-dev gcc \
|
|
||||||
&& pip install psycopg2 \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
ARG PIP_INDEX_URL
|
|
||||||
RUN /bin/bash -c "source activate myenv && cd testing && pip install --no-cache-dir -r requirements.txt && cd -"
|
|
||||||
|
|
||||||
# Make port 80 available to the world outside this container
|
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
# Install the substreams cli
|
|
||||||
RUN wget -c https://github.com/streamingfast/substreams/releases/download/v1.8.0/substreams_linux_x86_64.tar.gz -O - | tar xzf - substreams
|
|
||||||
RUN mv substreams /usr/local/bin/substreams && chmod +x /usr/local/bin/substreams
|
|
||||||
|
|
||||||
# Run the command to start your application
|
|
||||||
CMD ["python", "testing/src/runner/cli.py", "--package", "my_substream", "--with_binary_logs", "--db_url", "postgres://postgres:mypassword@db:5432"]
|
|
||||||
@@ -13,34 +13,5 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5431:5432"
|
- "5431:5432"
|
||||||
shm_size: "1gb"
|
shm_size: "1gb"
|
||||||
app:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
args:
|
|
||||||
PIP_INDEX_URL: ${PIP_INDEX_URL}
|
|
||||||
volumes:
|
|
||||||
- ../substreams:/app/substreams
|
|
||||||
- ../proto:/app/proto
|
|
||||||
- ./tycho-indexer:/bin/tycho-indexer
|
|
||||||
- ./src/runner/runner.py:/app/testing/src.py
|
|
||||||
- ../evm:/app/evm
|
|
||||||
- ./src/runner:/app/testing/src/runner
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
env_file:
|
|
||||||
- ".env"
|
|
||||||
environment:
|
|
||||||
- DATABASE_URL=postgres://postgres:mypassword@db:5432/tycho_indexer_0
|
|
||||||
command:
|
|
||||||
- "python"
|
|
||||||
- "testing/src/runner/cli.py"
|
|
||||||
- "--package"
|
|
||||||
- ${SUBSTREAMS_PACKAGE}
|
|
||||||
- "--tycho-logs"
|
|
||||||
- "--db-url"
|
|
||||||
- "postgres://postgres:mypassword@db:5432/tycho_indexer_0"
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user