From 3e199416056e1704e912b7ec2c31625bb4f98224 Mon Sep 17 00:00:00 2001 From: Rene Teigen Date: Sun, 12 Mar 2023 06:34:48 +0000 Subject: [PATCH] Add patch for cargo mem leak on aarch64 --- .github/workflows/build-and-publish-docker.yml | 16 ---------------- .gitignore | 4 +++- Dockerfile | 4 +++- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-and-publish-docker.yml b/.github/workflows/build-and-publish-docker.yml index 9b7caff..2b710be 100644 --- a/.github/workflows/build-and-publish-docker.yml +++ b/.github/workflows/build-and-publish-docker.yml @@ -27,12 +27,6 @@ jobs: id-token: write steps: - #Add swap for building arm64 image - - name: Set Swap Space - uses: pierotofy/set-swap-space@v1.0 - with: - swap-size-gb: 10 - - name: Checkout repository uses: actions/checkout@v3 @@ -122,11 +116,6 @@ jobs: id-token: write steps: - - name: Set Swap Space - uses: pierotofy/set-swap-space@v1.0 - with: - swap-size-gb: 10 - - name: Checkout repository uses: actions/checkout@v3 @@ -218,11 +207,6 @@ jobs: # with sigstore/fulcio when running outside of PRs. id-token: write steps: - - name: Set Swap Space - uses: pierotofy/set-swap-space@v1.0 - with: - swap-size-gb: 10 - - name: Checkout repository uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index 3411cda..5d320ce 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,6 @@ __pycache__ bot.pid usage.txt /dalleimages -/indexes \ No newline at end of file +/indexes +/audiotemp +/pickles \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index c89def1..39b965e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,9 @@ RUN apt-get install -y \ gcc \ curl RUN curl https://sh.rustup.rs -sSf | bash -s -- -y -ENV PATH="/root/.cargo/bin:${PATH}" +ARG PATH="/root/.cargo/bin:${PATH}" +# https://github.com/rust-lang/cargo/issues/10583 +ARG CARGO_NET_GIT_FETCH_WITH_CLI=true RUN mkdir /install /src WORKDIR /install