Add instructions for macOS. #70

Merged
dboreham merged 10 commits from telackey/osx into main 2023-10-18 20:06:28 +00:00
Member

Add instructions for deploying an action runner on macOS. Also fix a small script bug on macOS that prevents deployment with SO.

Add instructions for deploying an action runner on macOS. Also fix a small script bug on macOS that prevents deployment with SO.
telackey added 1 commit 2023-10-17 21:02:04 +00:00
telackey added 1 commit 2023-10-17 21:04:10 +00:00
telackey added 1 commit 2023-10-17 21:04:49 +00:00
telackey added 1 commit 2023-10-17 21:05:10 +00:00
telackey added 1 commit 2023-10-17 21:06:00 +00:00
telackey added 1 commit 2023-10-17 21:10:55 +00:00
telackey requested review from dboreham 2023-10-17 21:11:27 +00:00
telackey self-assigned this 2023-10-17 21:11:31 +00:00
telackey added 2 commits 2023-10-17 21:15:41 +00:00
dboreham reviewed 2023-10-18 03:00:36 +00:00
@ -10,2 +10,3 @@
secure_password() {
cat /dev/urandom | tr -dc A-Za-z0-9~_- | head -c 10 && echo
# extra bytes so that even if we delete some chars we will still have plenty
openssl rand -base64 32 | tr -d '\/+=' | head -c 10 && echo
Owner

Should also change the comment in line 9 since it no longer pertains?
(but probably this change should be in a separate PR?)

Should also change the comment in line 9 since it no longer pertains? (but probably this change should be in a separate PR?)
Author
Member

Done

Done
Owner

Was the change necessary because macos doesn't have /dev/urandom ?

Was the change necessary because macos doesn't have `/dev/urandom` ?
Author
Member

No, it has /dev/urandom, but tr is not able to consume it without explicitly setting LC_CTYPE=C, otherwise it complains about invalid input. Once you get past that hurdle, the options do not behave the same way, and '-dc' ends up selecting the complement of the set rather than deleting it, so you end up with only unprintable characters.

No, it has /dev/urandom, but `tr` is not able to consume it without explicitly setting `LC_CTYPE=C`, otherwise it complains about invalid input. Once you get past that hurdle, the options do not behave the same way, and '-dc' ends up selecting the complement of the set rather than deleting it, so you end up with only unprintable characters.
Owner

Might be worthwhile adding a comment saying openssl used because it's available and works on both macos and Linux?

Might be worthwhile adding a comment saying openssl used because it's available and works on both macos and Linux?
Author
Member

Added

Added
telackey marked this conversation as resolved
telackey added 1 commit 2023-10-18 03:16:11 +00:00
telackey added 1 commit 2023-10-18 03:45:00 +00:00
dboreham merged commit 02df81a069 into main 2023-10-18 20:06:28 +00:00
dboreham deleted branch telackey/osx 2023-10-18 20:06:45 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/hosting#70
No description provided.