Last active
April 19, 2016 01:32
-
-
Save gibron/852eaca9ae132dfccfffc46f414f68ad to your computer and use it in GitHub Desktop.
Foundational shell script intending to instantiate AEM against a fresh ubuntu image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Starting with a base ubuntu image | |
#### Setup Env #### | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
### JRE | |
sudo apt-get install default-jre | |
### Tools | |
sudo apt-get install unzip | |
sudo apt-get install curl #added v2 | |
### AEM | |
## Currently the zip file below was sourced via local copy from file system to image `docker cp aem62.zip {container}:/root/aem62.zip` | |
## zip source, https://livefyre.app.box.com/files/0/f/7519081809/1/f_59512124097 | |
## TODO: API or WGET to pull this down from a repository | |
unzip ~/aem62.zip | |
java -jar ~/aem62/cq-author-quickstart-6.1.0.jar -unpack -v #at this point we have AEM unpacked | |
#boot AEM quickstart author instance | |
./crx-quickstart/quickstart | |
### Installing the Livefyre Package | |
## package zip source, https://livefyre.box.com/s/ih1xhq19epqjkjsbfrefugdko5i1ih8b | |
## TODO: API or WGET to pull this down from a repository | |
curl -u admin:admin -F file=@"Livefyre-AEM-Package.zip" -F name="Livefyre" \ | |
-F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp #addev v2 | |
### Configuring the Externalizer | |
## ensuring that the external URL request come from aem.fyre:4502 versus localhost:4502 | |
curl -u admin:admin --data-binary "apply=true&action=ajaxConfigManager&$location=jcrinstall:/libs/cq/platform/install/cq-commons-5.8.32.jar&externalizer.domains=local http://aem.fyre:4502&externalizer.domains=author http://aem.fyre:4502&externalizer.domains=publish http://aem.fyre:4503&externalizer.host=&externalizer.contextpath=&propertylist=externalizer.domains,externalizer.host,externalizer.contextpath" | |
--compressed http://localhost:4502/system/console/configMgr/com.day.cq.commons.impl.ExternalizerImpl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment