File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
circleci/images/failtester Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,23 @@ ENV PATH=/usr/lib/postgresql/$PG_MAJOR/bin/:$PATH
8181RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
8282
8383COPY ./files/etc/requirements.txt /tmp/etc/
84- RUN pip3 install -Ir /tmp/etc/requirements.txt
84+ RUN <<EOF
85+ set -eux
86+
87+ pip3 install -Ir /tmp/etc/requirements.txt
88+
89+ MITMDUMP_BIN="$(python3 -c 'import sysconfig, pathlib; print(pathlib.Path(sysconfig.get_path(" scripts")) / " mitmdump")')"
90+
91+ if [ ! -x "$MITMDUMP_BIN" ]; then
92+ echo "mitmdump executable not found at $MITMDUMP_BIN" >&2
93+ exit 1
94+ fi
95+
96+ if [ "$MITMDUMP_BIN" != "/usr/local/bin/mitmdump" ]; then
97+ ln -sf "$MITMDUMP_BIN" /usr/local/bin/mitmdump
98+ fi
99+
100+ hash mitmdump
101+ EOF
85102
86103WORKDIR /home/circleci
You can’t perform that action at this time.
0 commit comments