Skip to content

Commit

Permalink
fix(tezosqa): refactoring dockerfile and update dind version
Browse files Browse the repository at this point in the history
  • Loading branch information
bonnai.djicko committed Nov 28, 2023
1 parent 43df91d commit 9fc5e37
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Versions
========

2023-11-30
----------
* Tezosqa : fix pytezos installation error

2023-10-31
----------
* AWS : bumping Trivy version. Bumping kubernetes tooling versions.
Expand Down
45 changes: 25 additions & 20 deletions tezosqa/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
FROM docker:20.10.24-dind
FROM docker:24.0.6-dind

WORKDIR /tezos

RUN echo "Install python3 and pip3" \
&& apk --no-cache --update add python3 py3-pip\
&& echo "Done!" \
&& echo "Install basics Python tools" \
&& pip3 install -U pipenv \
&& echo "Done!" \
&& echo "Install crypto libs and various tools" \
&& apk add -q libsodium-dev pkgconfig libsecp256k1-dev gmp-dev python3-dev libffi-dev gcc git g++ make wget bash musl-dev linux-headers\
&& echo "Done!" \
&& echo "Install SmartPyDev" \
RUN echo "Install basics Python tools" \
apk update && \
apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --no-cache --upgrade pip setuptools

RUN echo "Install crypto libs and various tools" \
&& apk --no-cache add -q libsodium-dev pkgconfig libsecp256k1-dev gmp-dev python3-dev wget build-base libffi-dev \
&& echo "Done!"

RUN echo "Install SmartPyDev" \
&& wget https://smartpy.io/smartpy \
&& chmod +x smartpy && mv smartpy /usr/local/bin \
&& echo "Done!" \
&& echo "Install ligo" \
&& wget https://gitlab.com/ligolang/ligo/-/jobs/4260236028/artifacts/raw/ligo \
&& chmod +x ./ligo && mv ligo /usr/bin \
&& echo "Done!" \
&& echo "Install Pytezos and other python libs" \
&& pip install pytezos pytest ipython fire pysodium secp256k1 \
&& echo "Done!" \
&& echo "Cleanup" \
&& echo "Done!"

RUN echo "Install ligo" \
&& wget https://gitlab.com/ligolang/ligo/-/jobs/5419828800/artifacts/raw/ligo \
&& chmod +x ./ligo && cp ligo /usr/bin \
&& echo "Done!"

RUN echo "Install Pytezos and other python libs" \
&& pip install pytezos \
&& echo "Done!"

RUN echo "Cleanup" \
&& rm -rf /var/cache/apk/* && pip cache purge \
&& echo "Done!"
1 change: 1 addition & 0 deletions tezosqa/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ versions:
cmd:
- ligo --version
- pytezos --version
- python --version

0 comments on commit 9fc5e37

Please sign in to comment.