shinesolutions / packer-aem

Adobe Experience Manager (AEM) machine images builder using Packer
Apache License 2.0
20 stars 20 forks source link
aem aem-opencloud ami docker-image machine-images packer

Build Status Known Vulnerabilities

Packer AEM

Packer AEM is a set of Packer templates for creating Adobe Experience Manager (AEM) machine and container images, which include the following components:

Machine Images Diagram

The AMIs produced by Packer AEM will then be used by AEM AWS Stack Builder to create an AEM environment on AWS.

Learn more about Packer AEM:

Packer AEM is part of AEM OpenCloud platform.

Installation

Usage

To retrieve the latest AMI IDs for all AEM AWS Stack Builder components, run the command make ami-ids config_path=<path/to/config/dir>, and the AMI IDs will be written into stage/stack-builder-configs/<aem_profile>-<os_type>-stack-builder-ami-ids.yaml file(s). These files can then be dropped in to AEM AWS Stack Builder configuration path.

Testing

Testing with remote dependencies

You can run integration test for creating the AMIs for all components using the command make test-integration test_id=<sometestid>, which downloads the dependencies from the Internet.

Testing with local dependencies

If you're working on the dependencies of Packer AEM and would like to test them as part of machine images creation before pushing the changes upstream, you need to:

Debugging

If you want to jump on the environment that Packer launched and you want to debug/troubleshoot it, you can modify the Makefile and set Packer to build in debug mode by replacing packer build command with packer build -debug, and then run the image creation again. With debug enabled, Packer will prompt you before terminating the EC2 instance / Docker container, giving you the chance to check it.

When running in debug mode, Packer will make the private key available on the repo directory for you to use, e.g. ssh -i ec2.pem ec2-user@<ip-address>

Please read Packer Debugging for further information.