-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
amazonec2 userdata
for docker machines (#608)
Introducing support for amazonec2-userdata flag that is not mentioned on driver readme page, but it is there and useful. For example, it can be used to introduce swap for the runner instance or any other user command. Co-authored-by: Alexey Shevchenko <o.shevchenko@relay42.com> Co-authored-by: kayma <kayma@hlag.com>
- Loading branch information
1 parent
81d707c
commit be789ff
Showing
6 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
dd if=/dev/zero of=/swapfile bs=1M count=${ coalesce(swap_size, "512") } | ||
chmod 0600 /swapfile | ||
mkswap /swapfile | ||
swapon /swapfile | ||
|
||
echo '/swapfile swap swap defaults 0 0' >>/etc/fstab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters