-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
77 additions
and
20 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.idea | ||
aem-sdk-*.zip | ||
aem-sdk-artifacts |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,62 @@ | ||
# AEM SDK | ||
|
||
Docker images with AEMaaCS SDK. | ||
AEM author and publish docker images for AEMaaCS using the AEM SDK. | ||
|
||
## How to use | ||
## Pull the image | ||
|
||
### Pull the image | ||
The `version` should be in the original format like `2024.10.18459.20241031T210302Z-241000`. | ||
|
||
To pull the author image | ||
|
||
```shell | ||
docker pull ghcr.io/orbinson/aem-sdk:author-<version> | ||
``` | ||
|
||
To pull the publish image | ||
|
||
```shell | ||
docker pull ghcr.io/orbinson/aem-sdk:publish-<version> | ||
``` | ||
|
||
## Development | ||
|
||
First you need to get the artifacts from the private [aem-sdk-artifacts](https://github.com/orbinson/aem-sdk-artifacts) repository. | ||
|
||
```shell | ||
git clone [email protected]:orbinson/aem-sdk-artifacts.git | ||
git lfs pull | ||
``` | ||
|
||
Or create the `aem-sdk-artifacts` directory and copy the artifacts there from your Downloads folder for example. | ||
|
||
```shell | ||
docker pull ghcr.io/orbinson/aem-sdk:main | ||
mkdir aem-sdk-artifacts | ||
mv ~/Downloads/aem-sdk-*.zip aem-sdk-artifacts/ | ||
``` | ||
|
||
Afterward you can build the image, by default and author is built. | ||
|
||
```shell | ||
docker build . -t aem-sdk:author | ||
``` | ||
|
||
And run the image | ||
|
||
```shell | ||
docker run -p 4502:4502 aem-sdk:author | ||
``` | ||
|
||
To build the publish image, you need to specify the correct build arguments. | ||
|
||
```shell | ||
docker build \ | ||
--build-arg RUNMODE=publish \ | ||
--build-arg PORT=4503 \ | ||
. -t aem-sdk:publish | ||
``` | ||
|
||
And run the image | ||
|
||
```shell | ||
docker run -p 4503:4503 aem-sdk:publish | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/usr/bin/env sh | ||
|
||
aem_stop() { | ||
/usr/local/bin/aem instance -A stop | ||
/usr/local/bin/aem instance --instance-${RUNMODE} stop | ||
exit 0 | ||
} | ||
|
||
trap aem_stop INT TERM | ||
|
||
/usr/local/bin/aem instance -A start | ||
/usr/local/bin/aem instance --instance-${RUNMODE} start | ||
|
||
tail -F /opt/aem/home/var/instance/author/crx-quickstart/logs/error.log | ||
tail -F /opt/aem/home/var/instance/${RUNMODE}/crx-quickstart/logs/error.log |