squeaknode/docker/test/Dockerfile
Jonathan Zernik 74817948cc
Use new squeak protocol (#64)
* Use new squeak protocol with encryption/decryption key instead of data key hash.

* Use from_bytes method for encrypted decryption key

* Undo changes to use temporary local install of squeaklib
2020-07-03 21:51:47 -07:00

36 lines
989 B
Docker

FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3-pip \
curl \
git
# Download the rpc files.
RUN git clone https://github.com/googleapis/googleapis.git
RUN curl -o rpc.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/rpc.proto
COPY requirements-itest.txt /
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements-itest.txt
Run mkdir /app
COPY ./squeakserver/common/rpc/squeak_server.proto /app
RUN cp -r googleapis /app
RUN cp rpc.proto /app/lnd.proto
WORKDIR /app
RUN python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. lnd.proto
RUN python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. squeak_server.proto
# Copy the lighting client
COPY "squeakserver/common/lnd_lightning_client.py" .
# Copy the entrypoint script.
COPY "itests/test.sh" .
COPY "itests/test.py" .
RUN chmod +x test.sh
CMD ["bash", "test.sh"]