-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:AudiusProject/audius-protocol into …
…jd/harmony-text-input
- Loading branch information
Showing
107 changed files
with
1,928 additions
and
602 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,57 @@ | ||
#!/bin/env bash | ||
set -ex | ||
|
||
# See https://circleci.com/docs/runner-installation-linux/ | ||
# Self-hosted runners should link to this file as the startup script. | ||
|
||
apt install -y git coreutils curl | ||
|
||
# download and run circleci agent installer script | ||
curl -L https://raw.githubusercontent.com/CircleCI-Public/runner-installation-files/main/download-launch-agent.sh -o download-launch-agent.sh | ||
export platform=linux/amd64 && sh ./download-launch-agent.sh | ||
rm download-launch-agent.sh | ||
|
||
# setup user and dirs | ||
id -u circleci &>/dev/null || adduser --disabled-password --gecos GECOS circleci | ||
groupadd -f docker | ||
usermod -aG docker circleci | ||
mkdir -p /var/opt/circleci | ||
chmod 0750 /var/opt/circleci | ||
chown -R circleci /var/opt/circleci /opt/circleci | ||
|
||
# setup config | ||
mkdir -p /etc/opt/circleci && touch /etc/opt/circleci/launch-agent-config.yaml | ||
chown -R circleci: /etc/opt/circleci | ||
chmod 600 /etc/opt/circleci/launch-agent-config.yaml | ||
cat <<EOT >> /etc/opt/circleci/launch-agent-config.yaml | ||
api: | ||
auth_token: $(gcloud secrets versions access 1 --secret=circleci-auth-token) | ||
runner: | ||
name: $(hostname) | ||
working_directory: /var/opt/circleci/workdir | ||
cleanup_working_directory: true | ||
EOT | ||
|
||
# allow sudo | ||
echo "circleci ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers | ||
|
||
# enable circleci systemd service | ||
touch /usr/lib/systemd/system/circleci.service | ||
chown root: /usr/lib/systemd/system/circleci.service | ||
chmod 755 /usr/lib/systemd/system/circleci.service | ||
cat <<EOT >> /usr/lib/systemd/system/circleci.service | ||
[Unit] | ||
Description=CircleCI Runner | ||
After=network.target | ||
[Service] | ||
ExecStart=/opt/circleci/circleci-launch-agent --config /etc/opt/circleci/launch-agent-config.yaml | ||
Restart=always | ||
User=circleci | ||
NotifyAccess=exec | ||
TimeoutStopSec=18300 | ||
[Install] | ||
WantedBy = multi-user.target | ||
EOT | ||
systemctl enable circleci.service | ||
systemctl start circleci.service |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
common-lint: | ||
description: "lint @audius/common" | ||
description: 'lint @audius/common' | ||
steps: | ||
- run: | ||
name: "lint @audius/common" | ||
command: | | ||
cd packages/common | ||
npm run lint | ||
- run: | ||
name: 'lint @audius/common' | ||
command: npx turbo run lint --filter=@audius/common |
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
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
Oops, something went wrong.