update os version

This commit is contained in:
Yilong Ren
2021-04-07 11:18:08 +08:00
parent 56e1c279f4
commit b51941a7b7
6 changed files with 17 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ This repository contains resources and configuration scripts for building a cust
## Supported OS
* CentOS 7.6/7.7
* CentOS 7.6/7.7/7.8/7.9
* Aliyun Linux 2 (Alibaba Cloud Linux 2)
## Setup
@@ -15,16 +15,6 @@ You must have [Packer](https://www.packer.io/) installed on your local system. F
For more information, see [Alibaba Cloud builder](https://www.packer.io/docs/builders/alicloud-ecs.html) in the Packer documentation.
## Building the OS Image
Execute following scripts in your shell
```
export ALICLOUD_ACCESS_KEY=XXX
export ALICLOUD_SECRET_KEY=XXX
packer build examples/ack-centos.json
```
## Build ACK-Optimized-OS image
Execute following scripts in your shell
@@ -35,6 +25,16 @@ export ALICLOUD_SECRET_KEY=XXX
packer build examples/ack-optimized-os.json
```
## Building the OS Image
Execute following scripts in your shell
```
export ALICLOUD_ACCESS_KEY=XXX
export ALICLOUD_SECRET_KEY=XXX
packer build examples/ack-centos.json
```
## Building in the kubernetes
```shell script

View File

@@ -2,7 +2,7 @@
"variables": {
"region": "cn-hangzhou",
"image_name": "test_image{{timestamp}}",
"source_image": "aliyun_2_1903_x64_20G_alibase_20200904.vhd",
"source_image": "aliyun_2_1903_x64_20G_alibase_20210120.vhd",
"instance_type": "ecs.g6.large",
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}"

View File

@@ -2,7 +2,7 @@
"variables": {
"region": "cn-hangzhou",
"image_name": "test_image{{timestamp}}",
"source_image": "centos_7_7_x64_20G_alibase_20200426.vhd",
"source_image": "centos_7_9_x64_20G_alibase_20210128.vhd",
"instance_type": "ecs.g6.large",
"vpc_id": "vpc-xxxxxx",
"vswitch_id": "vsw-xxxxxx",

View File

@@ -2,7 +2,7 @@
"variables": {
"region": "cn-hangzhou",
"image_name": "test_image{{timestamp}}",
"source_image": "centos_7_7_x64_20G_alibase_20200426.vhd",
"source_image": "centos_7_9_x64_20G_alibase_20210128.vhd",
"instance_type": "ecs.g6.large",
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}"

View File

@@ -2,7 +2,7 @@
"variables": {
"region": "{{env `REGION`}}",
"image_name": "test_image{{timestamp}}",
"source_image": "centos_7_7_x64_20G_alibase_20200426.vhd",
"source_image": "centos_7_9_x64_20G_alibase_20210128.vhd",
"instance_type": "ecs.g6.large",
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}",
@@ -42,4 +42,4 @@
]
}
]
}
}

View File

@@ -2,7 +2,7 @@
"variables": {
"region": "cn-hangzhou",
"image_name": "ack-optimized_image{{timestamp}}",
"source_image": "aliyun_2_1903_x64_20G_alibase_20200904.vhd",
"source_image": "aliyun_2_1903_x64_20G_alibase_20210120.vhd",
"instance_type": "ecs.g6.large",
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}"