We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd0ccd2 commit 7d83efeCopy full SHA for 7d83efe
images/ansible-operator/base.Dockerfile
@@ -9,6 +9,12 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
9
ENV PATH="/root/.cargo/bin:${PATH}"
10
RUN rustc --version
11
12
+# When cross-compiling the container, cargo uncontrollably consumes memory and
13
+# gets killed by the OOM Killer when it fetches dependencies. The workaround is
14
+# to use the git executable.
15
+# See https://github.com/rust-lang/cargo/issues/10583 for details.
16
+ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
17
+
18
# Copy python dependencies (including ansible) to be installed using Pipenv
19
COPY Pipfile* ./
20
# Instruct pip(env) not to keep a cache of installed packages,
0 commit comments