Skip to content

Commit

Permalink
Install python.
Browse files Browse the repository at this point in the history
  • Loading branch information
shimkiv committed Oct 5, 2023
1 parent e59e805 commit 3403057
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 32 deletions.
6 changes: 5 additions & 1 deletion buildkite/scripts/rosetta-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,15 @@ until [ $daemon_status == "Synced" ]; do
echo "Daemon Status: ${daemon_status}"
done

echo "--- Which Python? ---"
which python
which python3

send_zkapp_txn() {
local url="http://127.0.0.1:${MINA_GRAPHQL_PORT}/graphql"
local query="$1"

python <<EOF
python3 <<EOF
import requests
response = requests.post(url="$url", json={"query": "$query"})
print("zkApp txn status code:", response.status_code)
Expand Down
63 changes: 32 additions & 31 deletions dockerfiles/stages/1-build-deps
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,36 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update --quiet \
&& apt-get upgrade --quiet --yes \
&& apt-get install --no-install-recommends --quiet --yes \
libboost-dev \
libboost-program-options-dev \
libbz2-dev \
libcap-dev \
libffi-dev \
libgflags-dev \
libgmp-dev \
libgmp3-dev \
libjemalloc-dev \
liblmdb-dev \
liblmdb0 \
libpq-dev \
libprocps-dev \
libsodium-dev \
libssl-dev \
build-essential \
ca-certificates \
capnproto \
cmake \
curl \
file \
git \
'(^lld-10$|^lld-11$)' \
m4 \
pkg-config \
rsync \
sudo \
unzip \
zlib1g-dev \
libboost-dev \
libboost-program-options-dev \
libbz2-dev \
libcap-dev \
libffi-dev \
libgflags-dev \
libgmp-dev \
libgmp3-dev \
libjemalloc-dev \
liblmdb-dev \
liblmdb0 \
libpq-dev \
libprocps-dev \
libsodium-dev \
libssl-dev \
build-essential \
ca-certificates \
capnproto \
cmake \
curl \
file \
git \
'(^lld-10$|^lld-11$)' \
m4 \
pkg-config \
rsync \
sudo \
unzip \
zlib1g-dev \
python3 \
&& rm -rf /var/lib/apt/lists/*

# Symlink image-specific lld version to a single lld executable
Expand Down Expand Up @@ -119,8 +120,8 @@ RUN git clone https://github.com/facebook/rocksdb \
--depth 1 --shallow-submodules \
-b "${ROCKSDB_VERSION}" /rocksdb \
&& test $(g++ -dumpversion | cut -c 1 -) -lt 9 \
&& CXXFLAGS='' make -C /rocksdb static_lib PORTABLE=1 -j$(nproc) 2>/dev/null \
|| make -C /rocksdb static_lib PORTABLE=1 -j$(nproc) 2>/dev/null \
&& CXXFLAGS='' make -C /rocksdb static_lib PORTABLE=1 -j$(nproc) 2>/dev/null \
|| make -C /rocksdb static_lib PORTABLE=1 -j$(nproc) 2>/dev/null \
&& cp /rocksdb/librocksdb.a /usr/local/lib/librocksdb_coda.a \
&& rm -rf /rocksdb \
&& strip -S /usr/local/lib/librocksdb_coda.a
Expand Down

0 comments on commit 3403057

Please sign in to comment.