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 2 commits
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.linux_swap_size is defined %}
mikemhenry marked this conversation as resolved.
Show resolved Hide resolved
- script: |
sudo fallocate -l {{ azure.linux_swap_size }} /swapfile || true
sudo chmod 600 /swapfile || true
sudo mkswap /swapfile || true
sudo swapon /swapfile
displayName: Create swap file
{%- 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>