forked from jmzkChain/jmzk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pyevt and add pysdk Dockerfile
- Loading branch information
Showing
6 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM everitoken/pyevt:latest as pyevt | ||
|
||
RUN git clone -b $branch https://github.com/everitoken/evt.git | ||
RUN python /pyevt/setup.py bdist_wheel | ||
|
||
|
||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive && apt-get install -y python3 python3-pip openssl libssl1.1 && rm -rf /var/lib/apt/lists/* | ||
RUN pip3 install cffi wheel | ||
|
||
WORKDIR /pysdk | ||
|
||
COPY --from=pyevt /pyevt/dist/*.whl ./ | ||
RUN pip install *.whl | ||
RUN del -y *.whl | ||
|
||
COPY --from=pyevt /usr/local/lib/*.so* /usr/local/lib/ | ||
COPY --from=pyevt /evt/sdks/pysdk ./ | ||
|
||
ENV LD_LIBRARY_PATH /usr/local/lib | ||
ENV PATH /usr/sbin:/usr/bin:/sbin:/bin | ||
|
||
ENTRYPOINT ["python3", "/pysdk/pysdk/unit_test.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters