Skip to content

Commit de5a140

Browse files
committed
Add WIP Containerfile for Leap + Bundle
Installing the benchmark suite works, but all benchmarks die when executed.
1 parent 5100ea5 commit de5a140

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Containerfile-39-Leap-bundle

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM registry.opensuse.org/opensuse/leap:15.3
2+
3+
RUN zypper --non-interactive addrepo \
4+
https://download.opensuse.org/repositories/home:/agraul:/bundle-benchmarks/15.0/home:agraul:bundle-benchmarks.repo
5+
RUN zypper --gpg-auto-import-keys --non-interactive install venv-salt-minion curl
6+
RUN /usr/lib/venv-salt-minion/bin/python -m pip install pyperformance
7+
8+
# Needed to use the venv-salt-minion Python interpreter in pyperformance's new venv
9+
# HACK -- begin --
10+
ENV LD_LIBRARY_PATH=/usr/lib/venv-salt-minion/lib
11+
ENV PYTHONPATH=/usr/lib/venv-salt-minion/local/lib/python3.9/site-packages/
12+
RUN sed -i "s/'venv', '--without-pip'/\0, '--copies'/" /usr/lib/venv-salt-minion/local/lib/python3.9/site-packages/pyperformance/venv.py
13+
RUN sed -i "/.*PYTHONHOME.*/d" /usr/lib/venv-salt-minion/bin/venv-exec.py
14+
# HACK -- end --
15+
16+
17+
WORKDIR /pyperformance
18+
RUN /usr/lib/venv-salt-minion/local/bin/pyperformance venv create \
19+
--venv venv \
20+
--inherit-environ LD_LIBRARY_PATH
21+
22+
23+
VOLUME /benchmarks
24+
ENTRYPOINT /usr/lib/venv-salt-minion/local/bin/pyperformance run \
25+
--venv venv \
26+
--inherit-environ LD_LIBRARY_PATH \
27+
-o /benchmarks/leap-$(venv/bin/python --version | awk '{print $2}')-bundle.json

0 commit comments

Comments
 (0)