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

SLES 15 SP3 w/ Docker 20.10.6 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions ami_sles15_sp3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"variables": {
"name": "suse-sles-15-sp3-docker-20.10.6-gp2",
"source_ami": "ami-0c75f1fdabc7cc5f4",
"access_key": "",
"secret_key": "",
"region": "us-east-2"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `access_key`}}",
"secret_key": "{{user `secret_key`}}",
"ami_name": "{{user `name`}}",
"region": "{{user `region`}}",
"ami_regions": [
"us-east-2"
],
"launch_block_device_mappings": [
{
"device_name": "/dev/sda1",
"volume_size": 12,
"volume_type": "gp2",
"delete_on_termination": true
}
],
"source_ami": "{{user `source_ami`}}",
"instance_type": "t2.medium",
"communicator": "ssh",
"ssh_username": "ec2-user",
"force_deregister": true,
"run_tags": {
"Name": "packer-image"
}
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"sudo usermod -aG docker ec2-user"
]
},
{
"type": "shell",
"inline": [
"cat /etc/docker/daemon.json | jq 'del(.\"storage-driver\")' 2> /dev/null | sudo tee /etc/docker/daemon.json"
]
}
]
}