-
Notifications
You must be signed in to change notification settings - Fork 550
/
Copy pathDockerfile-txn-burst
49 lines (40 loc) · 1.54 KB
/
Dockerfile-txn-burst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#build with:
# docker build --build-arg deb_version=<version>
#or directly run with:
# docker run -v <local keypath>:/keys --entrypoint ./_build/default/src/app/batch_txn_tool/batch_txn_tool.exe txn_burst_util --num-txn-per-acct 10 --origin-sender-sk-path "/keys/<origin key path>" --origin-sender-sk-pw "some password" --returner-sk-path "/keys/<origin key path>" --returner-sk-pw "some password"
ARG image=debian:bullseye-slim
FROM ${image}
ARG deb_version
ARG deb_codename=bullseye
ARG deb_release=unstable
ARG network=mainnet
ARG deb_repo="http://packages.o1test.net"
ENV DEBIAN_FRONTEND noninteractive
RUN echo "Building image with version $deb_codename $deb_release $deb_version"
# Dependencies
RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get -y install \
procps \
curl \
jq \
dumb-init \
libssl1.1 \
apt-transport-https \
ca-certificates \
dnsutils \
apt-utils \
man \
&& rm -rf /var/lib/apt/lists/*
#install mina and txn burst tool
RUN echo "deb [trusted=yes] ${deb_repo} $deb_codename $deb_release" | tee /etc/apt/sources.list.d/mina.list \
&& apt-get update\
&& apt-get install --quiet --yes --allow-downgrades "mina-$network=$deb_version" \
&& apt-get install --quiet --yes --allow-downgrades "mina-batch-txn=$deb_version" \
&& rm -rf /var/lib/apt/lists/*
USER root
# prepare the key directories
RUN mkdir /keys && chmod 700 /keys
ENV MINA_PRIVKEY_PASS ""
ENTRYPOINT ["sleep", "infinity"]
CMD ["./_build/default/src/app/batch_txn_tool/batch_txn_tool.exe"]