Skip to content

Commit 6b60283

Browse files
committed
Merge remote-tracking branch 'origin/master' into add-instance-storage
2 parents 90b75f3 + 0eef5d8 commit 6b60283

File tree

10 files changed

+35
-81
lines changed

10 files changed

+35
-81
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ steps:
118118
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
119119
concurrency_group: "aws-stack-publish"
120120
concurrency: 1
121+
concurrency_method: eager
121122
artifact_paths: "build/*.yml"
122123
depends_on: "copy-ami"
123124

README.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
[Buildkite](https://buildkite.com/) is a platform for running fast, secure, and scalable continuous integration pipelines on your own infrastructure.
88

9-
The Buildkite Elastic CI Stack gives you a private, autoscaling [Buildkite Agent](https://buildkite.com/docs/agent) cluster. Use it to parallelize legacy tests across hundreds of nodes, run tests and deployments for all your Linux-based services and apps, or run AWS ops tasks.
9+
The Buildkite Elastic CI Stack for AWS gives you a private, autoscaling
10+
[Buildkite Agent](https://buildkite.com/docs/agent) cluster. Use it to parallelize
11+
large test suites across thousands of nodes, run tests and deployments for Linux or Windows
12+
based services and apps, or run AWS ops tasks.
1013

1114
## Getting started
1215

@@ -31,6 +34,30 @@ aws cloudformation create-stack \
3134
--parameters "$(cat config.json)"
3235
```
3336

37+
## Supported Features
38+
39+
Most features are supported across both Linux and Windows. See below for details
40+
of per-operating system support:
41+
42+
Feature | Linux | Windows
43+
--- | --- | ---
44+
Docker | ✅ | ✅
45+
Docker Compose | ✅ | ✅
46+
AWS CLI | ✅ | ✅
47+
S3 Secrets Bucket | ✅ | ✅
48+
ECR Login | ✅ | ✅
49+
Docker Login | ✅ | ✅
50+
CloudWatch Logs Agent | ✅ | ✅
51+
Per-Instance Bootstrap Script | ✅ | ✅
52+
🧑‍🔬 git-mirrors experiment | ✅ | ✅
53+
SSM Access | ✅ | ✅
54+
SSH Access | ✅ |
55+
Periodic authorized_keys Refresh | ✅ |
56+
Periodic Instance Health Check | ✅ |
57+
git lfs | ✅ |
58+
Additional sudo Permissions | ✅ |
59+
RDP Access | | ✅
60+
3461
## Security
3562

3663
This repository hasn't been reviewed by security researchers so exercise caution and careful thought with what credentials you make available to your builds.
@@ -71,9 +98,9 @@ make packer
7198
This will boot and image three AWS EC2 instances in your account’s `us-east-1`
7299
default VPC:
73100

74-
- Linux amd64
75-
- Linux arm64
76-
- Windows amd64
101+
- Linux (64-bit x86)
102+
- Linux (64-bit Arm)
103+
- Windows (64-bit x86)
77104

78105
## Support Policy
79106

@@ -92,9 +119,9 @@ We aim to support new regions within one month of general availability.
92119

93120
We build and deploy the following AMIs to all our supported regions:
94121

95-
- Amazon Linux 2 (x86_64)
96-
- Amazon Linux 2 (arm64)
97-
- Windows Server 2019 (x86_64)
122+
- Amazon Linux 2 (64-bit x86)
123+
- Amazon Linux 2 (64-bit Arm)
124+
- Windows Server 2019 (64-bit x86)
98125

99126
### Buildkite Agent
100127

goss.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ service:
4444
enabled: true
4545
running: true
4646

47-
lifecycled:
48-
enabled: true
49-
running: true
50-
5147
sshd:
5248
enabled: true
5349
running: true
@@ -93,9 +89,6 @@ process:
9389
buildkite-agent:
9490
running: true
9591

96-
lifecycled:
97-
running: true
98-
9992
sshd:
10093
running: true
10194

packer/linux/buildkite-ami.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
"type": "shell",
4646
"script": "scripts/install-cloudwatch-agent.sh"
4747
},
48-
{
49-
"type": "shell",
50-
"script": "scripts/install-lifecycled.sh"
51-
},
5248
{
5349
"type": "shell",
5450
"script": "scripts/install-docker.sh"

packer/linux/conf/bin/bk-install-elastic-stack.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,6 @@ if [[ -n "${BUILDKITE_ELASTIC_BOOTSTRAP_SCRIPT}" ]] ; then
193193
rm /tmp/elastic_bootstrap
194194
fi
195195

196-
cat << EOF > /etc/lifecycled
197-
AWS_REGION=${AWS_REGION}
198-
LIFECYCLED_HANDLER=/usr/local/bin/stop-agent-gracefully
199-
LIFECYCLED_CLOUDWATCH_GROUP=/buildkite/lifecycled
200-
EOF
201-
202-
systemctl enable lifecycled.service
203-
systemctl start lifecycled
204-
205196
# wait for docker to start
206197
next_wait_time=0
207198
until docker ps || [ $next_wait_time -eq 5 ]; do

packer/linux/scripts/install-lifecycled.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

packer/windows/buildkite-ami.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@
4444
"type": "powershell",
4545
"script": "scripts/install-cloudwatch-agent.ps1"
4646
},
47-
{
48-
"type": "powershell",
49-
"script": "scripts/install-lifecycled.ps1"
50-
},
5147
{
5248
"type": "powershell",
5349
"script": "scripts/install-docker.ps1"

packer/windows/conf/bin/bk-install-elastic-stack.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ disconnect-after-job=${Env:BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB}
139139
"@
140140
$OFS=" "
141141

142-
nssm set lifecycled AppEnvironmentExtra :AWS_REGION=$Env:AWS_REGION
143-
nssm set lifecycled AppEnvironmentExtra +LIFECYCLED_HANDLER="C:\buildkite-agent\bin\stop-agent-gracefully.ps1"
144-
Restart-Service lifecycled
145-
146142
# wait for docker to start
147143
$next_wait_time=0
148144
do {

packer/windows/conf/cloudwatch-agent/amazon-cloudwatch-agent.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"file_path": "C:\\buildkite-agent\\buildkite-agent.log",
2323
"log_group_name": "/buildkite/buildkite-agent",
2424
"timestamp_format": "%Y-%m-%dT%H:%M:%S.%f"
25-
},
26-
{
27-
"file_path": "C:\\lifecycled\\lifecycled.log",
28-
"log_group_name": "/buildkite/lifecycled",
29-
"timestamp_format": "%Y-%m-%dT%H:%M:%S.%f"
3025
}
3126
]
3227
},

packer/windows/scripts/install-lifecycled.ps1

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)