Add initialization-block to tycho runner, fix docker and improve docs

This commit is contained in:
Thales
2024-08-01 01:35:55 -03:00
committed by tvinagre
parent 67f10e777a
commit 11619bf8be
9 changed files with 60 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ WORKDIR /app
# Add current directory code to /app in container
ADD . /app/testing
RUN chmod +x /app/testing/tycho-indexer-linux-x64
RUN chmod +x /app/testing/tycho-indexer
# Create a new conda environment and install pip
RUN conda create -n myenv pip python=3.9
@@ -21,7 +21,8 @@ RUN apt-get update \
&& pip install psycopg2 \
&& apt-get clean
RUN /bin/bash -c "source activate myenv && cd testing && pip install --no-cache-dir -r requirements.txt && cd -"
ARG PIP_INDEX_URL
RUN /bin/bash -c "source activate myenv && cd testing && pip install --no-cache-dir -r src/requirements.txt && cd -"
# Make port 80 available to the world outside this container
EXPOSE 80
@@ -31,4 +32,4 @@ RUN wget -c https://github.com/streamingfast/substreams/releases/download/v1.8.0
RUN mv substreams /usr/local/bin/substreams && chmod +x /usr/local/bin/substreams
# Run the command to start your application
CMD ["python", "testing/cli.py", "--test_yaml_path", "/app/substreams/my_substream/test_assets.yaml", "--with_binary_logs", "--db_url", "postgres://postgres:mypassword@db:5432"]
CMD ["python", "testing/src/runner/cli.py", "--package", "my_substream", "--with_binary_logs", "--db_url", "postgres://postgres:mypassword@db:5432"]