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

Fix user data script for EC2 instance #14

Merged
merged 2 commits into from
Jan 7, 2021
Merged

Fix user data script for EC2 instance #14

merged 2 commits into from
Jan 7, 2021

Conversation

machulav
Copy link
Owner

@machulav machulav commented Jan 6, 2021

  • Run GitHub runner script using the root user. Instead of creating a new user for that purpose, which causes many issues with permissions.
  • Install and start docker to be able to run Docker container actions.
  • Install git to run actions like gitleaks-action, which requires additional git manipulations.

To reduce the scope of changes and testing I limited supported Linux distributive to only Amazon Linux 2.
In the future, I'm going to add support for the other distributive if required.

@machulav machulav force-pushed the ec2-fixes branch 2 times, most recently from fa239ec to ccbbf7e Compare January 7, 2021 11:48
@machulav machulav changed the title EC2 fixes Fix user data script for EC2 instance Jan 7, 2021
@machulav machulav linked an issue Jan 7, 2021 that may be closed by this pull request
@machulav machulav self-assigned this Jan 7, 2021
@machulav machulav added the bug Something isn't working label Jan 7, 2021
@machulav machulav force-pushed the ec2-fixes branch 2 times, most recently from 751f24f to ff9e2ae Compare January 7, 2021 19:23
@machulav machulav marked this pull request as ready for review January 7, 2021 19:35
@machulav machulav merged commit 816e24c into main Jan 7, 2021
@machulav machulav deleted the ec2-fixes branch January 7, 2021 19:37
@machulav machulav removed their assignment Jan 20, 2021
mmoriani pushed a commit to ottimis/ec2-github-runner that referenced this pull request Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permissions issue on EC2 self-hosted runner
1 participant