mirror of
https://github.com/outbackdingo/ack-image-builder.git
synced 2026-01-27 18:18:10 +00:00
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.idea
|
||||
@@ -2,7 +2,7 @@
|
||||
"variables": {
|
||||
"region": "cn-hangzhou",
|
||||
"image_name": "test_image{{timestamp}}",
|
||||
"source_image": "centos_7_06_64_20G_alibase_20190711.vhd",
|
||||
"source_image": "centos_7_06_64_20G_alibase_20190619.vhd",
|
||||
"instance_type": "ecs.g6.large",
|
||||
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
|
||||
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}"
|
||||
@@ -17,6 +17,7 @@
|
||||
"source_image": "{{user `source_image`}}",
|
||||
"ssh_username": "root",
|
||||
"instance_type": "{{user `instance_type`}}",
|
||||
"skip_image_validation": "true",
|
||||
"io_optimized": "true"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"variables": {
|
||||
"region": "cn-hangzhou",
|
||||
"image_name": "test_image{{timestamp}}",
|
||||
"source_image": "centos_7_06_64_20G_alibase_20190711.vhd",
|
||||
"source_image": "centos_7_06_64_20G_alibase_20190619.vhd",
|
||||
"instance_type": "ecs.g6.large",
|
||||
"vpc_id": "vpc-xxxxxx",
|
||||
"vswitch_id": "vsw-xxxxxx",
|
||||
@@ -21,6 +21,7 @@
|
||||
"instance_type": "{{user `instance_type`}}",
|
||||
"vpc_id": "{{user `vpc_id`}}",
|
||||
"vswitch_id": "{{user `vswitch_id`}}",
|
||||
"skip_image_validation": "true",
|
||||
"io_optimized": "true"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"variables": {
|
||||
"region": "cn-hangzhou",
|
||||
"image_name": "test_image{{timestamp}}",
|
||||
"source_image": "centos_7_06_64_20G_alibase_20190711.vhd",
|
||||
"source_image": "centos_7_06_64_20G_alibase_20190619.vhd",
|
||||
"instance_type": "ecs.g6.large",
|
||||
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
|
||||
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}"
|
||||
@@ -17,6 +17,7 @@
|
||||
"source_image": "{{user `source_image`}}",
|
||||
"ssh_username": "root",
|
||||
"instance_type": "{{user `instance_type`}}",
|
||||
"skip_image_validation": "true",
|
||||
"io_optimized": "true"
|
||||
}
|
||||
],
|
||||
|
||||
8
hotfix/hotfix-issue-19/README.md
Normal file
8
hotfix/hotfix-issue-19/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
This is the template for ack base image to fix issue [#19](https://github.com/AliyunContainerService/ack-image-builder/issues/19)
|
||||
|
||||
Commands to build image:
|
||||
```
|
||||
export ALICLOUD_ACCESS_KEY=XXX
|
||||
export ALICLOUD_SECRET_KEY=XXX
|
||||
packer build ack-centos-issue-19.json
|
||||
```
|
||||
34
hotfix/hotfix-issue-19/ack-centos-issue-19.json
Normal file
34
hotfix/hotfix-issue-19/ack-centos-issue-19.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"variables": {
|
||||
"region": "cn-hangzhou",
|
||||
"image_name": "test_image{{timestamp}}",
|
||||
"source_image": "centos_7_06_64_20G_alibase_20190619.vhd",
|
||||
"instance_type": "ecs.g6.large",
|
||||
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
|
||||
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}"
|
||||
},
|
||||
"builders": [
|
||||
{
|
||||
"type": "alicloud-ecs",
|
||||
"access_key": "{{user `access_key`}}",
|
||||
"secret_key": "{{user `secret_key`}}",
|
||||
"region": "{{user `region`}}",
|
||||
"image_name": "{{user `image_name`}}",
|
||||
"source_image": "{{user `source_image`}}",
|
||||
"ssh_username": "root",
|
||||
"instance_type": "{{user `instance_type`}}",
|
||||
"skip_image_validation": "true",
|
||||
"io_optimized": "true"
|
||||
}
|
||||
],
|
||||
"provisioners": [
|
||||
{
|
||||
"type": "shell",
|
||||
"scripts": [
|
||||
"scripts/updateSystemd.sh",
|
||||
"scripts/updateContainerd.sh"
|
||||
],
|
||||
"expect_disconnect": true
|
||||
}
|
||||
]
|
||||
}
|
||||
7
hotfix/hotfix-issue-19/scripts/updateContainerd.sh
Executable file
7
hotfix/hotfix-issue-19/scripts/updateContainerd.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
curl -LO https://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/daemon-build/centos/containerd.io-1.2.10-3.2.el7.x86_64.rpm containerd.io-1.2.10-3.2.el7.x86_64.rpm
|
||||
|
||||
yum localinstall -y containerd.io-1.2.10-3.2.el7.x86_64.rpm
|
||||
|
||||
rm -rf containerd.io-1.2.10-3.2.el7.x86_64.rpm
|
||||
3
hotfix/hotfix-issue-19/scripts/updateSystemd.sh
Executable file
3
hotfix/hotfix-issue-19/scripts/updateSystemd.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
yum install -y systemd-219-67.el7_7.3.x86_64
|
||||
Reference in New Issue
Block a user