Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ RUN apt-get install -qq \
git \
libzstd1 \
libzstd-dev \
python3-pytest \
python3-pytest-asyncio \
python3-websockets \
sudo \
zlib1g \
zlib1g-dev \
Expand Down Expand Up @@ -46,15 +43,14 @@ RUN mkdir /usr/bin/sdk/bpf/dependencies \
USER pyth
WORKDIR /home/pyth

# Install poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="${PATH}:/home/pyth/.local/bin:/home/pyth/pyth-client/build"

#Install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y


RUN echo "\n\
export PATH=\"\${PATH}:\${HOME}/pyth-client/build:\${HOME}/.cargo/bin\"\n\
export PYTHONPATH=\"\${PYTHONPATH:+\$PYTHONPATH:}\${HOME}/pyth-client\"\n\
" >> .profile

COPY --chown=pyth:pyth . pyth-client/

# Build off-chain binaries.
Expand All @@ -69,7 +65,7 @@ RUN cd pyth-client && ./scripts/build-bpf.sh .
RUN cd pyth-client && ./scripts/check-size.sh
# Run aggregation logic tests
RUN cd pyth-client && ./scripts/run-aggregation-tests.sh
RUN /bin/bash -l -c "pytest-3 --pyargs pyth"
RUN cd pyth-client/pyth && poetry install && poetry run python -m pytest

ENTRYPOINT []
CMD []
39 changes: 0 additions & 39 deletions pctest/add_publisher.py

This file was deleted.

68 changes: 0 additions & 68 deletions pctest/create_products.py

This file was deleted.

32 changes: 0 additions & 32 deletions pctest/get_product_list.py

This file was deleted.

62 changes: 0 additions & 62 deletions pctest/get_products.py

This file was deleted.

42 changes: 0 additions & 42 deletions pctest/init_prices.py

This file was deleted.

Loading