Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Scripts Execution

Avatar

Level 2

One of my client requirment is as follow's

  1. Start with a fresh Amazon Unix AMI
  2. execute a script that will Download the CQ JARs from S3 or any storage space, Install CQ
  3. Install the Configuration Package (Clean Up package, Content Package for the UI pages, Permissions Package, etc)
  4. If we can, even update the admin password as part of the script.

Can any  one help out like how to write those scripts (3rd point ) and how to execute those scripts automatically. 

1 Accepted Solution

Avatar

Correct answer by
Level 6

As Sham states in his reply, all the uploading, installation and replication can be done using the cURL commands.

Another way is to use a Continuous Integration environment, such as Jenkins or TeamCity, and have a Maven action that uses the content-package plugin (http://dev.day.com/docs/en/cq/current/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html) to do the same as you can do with the cURL command. The benefit of that is that if you have a common repository that you release your application to, you can easily just point to the corresponding artifact using the Maven "coordinate system".

If you install Maven in the target environment, you can even do it using "localhost:<port>" as target.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

As Sham states in his reply, all the uploading, installation and replication can be done using the cURL commands.

Another way is to use a Continuous Integration environment, such as Jenkins or TeamCity, and have a Maven action that uses the content-package plugin (http://dev.day.com/docs/en/cq/current/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html) to do the same as you can do with the cURL command. The benefit of that is that if you have a common repository that you release your application to, you can easily just point to the corresponding artifact using the Maven "coordinate system".

If you install Maven in the target environment, you can even do it using "localhost:<port>" as target.