Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switch to make a swap file #1751

Merged
merged 17 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions conda_smithy/templates/azure-pipelines-linux.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
sudo docker image prune --all --force
df -h
displayName: Manage disk space
{%- endif %}
{%- if azure.make_10G_swap %}
mikemhenry marked this conversation as resolved.
Show resolved Hide resolved
- script: |
sudo fallocate -l 10G /swapfile || true
mikemhenry marked this conversation as resolved.
Show resolved Hide resolved
sudo chmod 600 /swapfile || true
sudo mkswap /swapfile || true
sudo swapon /swapfile
displayName: Create 10G swap file
mikemhenry marked this conversation as resolved.
Show resolved Hide resolved
{%- endif %}
# configure qemu binfmt-misc running. This allows us to run docker containers
# embedded qemu-static
Expand Down
23 changes: 23 additions & 0 deletions news/make_swap.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* Create toggle to make a 10G swap file on the default linux image on Azure Pipelines
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update this


**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
Loading