Skip to content

Commit

Permalink
Merge pull request #218 from Hikari-Haru/fix-docker-aarch64
Browse files Browse the repository at this point in the history
Add patch for cargo mem leak on aarch64
  • Loading branch information
cherryroots authored Mar 12, 2023
2 parents 680416e + 1582470 commit 894af27
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/build-and-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ __pycache__
bot.pid
usage.txt
/dalleimages
/indexes
/indexes
/audiotemp
/pickles
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gpt3discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from models.openai_model import Model


__version__ = "11.0.0"
__version__ = "11.0.1"


PID_FILE = Path("bot.pid")
Expand Down

0 comments on commit 894af27

Please sign in to comment.