Skip to content

Commit

Permalink
Add temporary build for aem compose only
Browse files Browse the repository at this point in the history
  • Loading branch information
bdhoine committed Nov 21, 2024
1 parent e20998e commit e009c95
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Create and publish a Docker image
on:
push:
branches: ["main"]
workflow_dispatch:

env:
REGISTRY: ghcr.io
Expand All @@ -19,6 +20,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout AEM SDK artifacts repository
uses: actions/checkout@v4
with:
name: orbinson/aem-sdk-artifacts
token: ${{ secrets.GITHUB_PRIVATE_TOKEN }} # Required for private repositories, setup with https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down
25 changes: 15 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
FROM azul/zulu-openjdk:11-jre-headless as installer

ARG AEMC_VERSION=1.9.0
ARG PLATFORM=linux
ARG ARCH=arm64

EXPOSE 4502
ARG AEMC_VERSION=2.0.1
ARG TARGETOS=linux
ARG TARGETARCH=arm64

RUN apt-get update &&\
apt-get install -y --no-install-recommends curl

RUN curl -L https://github.com/wttech/aemc/releases/download/v${AEMC_VERSION}/aemc-cli_${PLATFORM}_${ARCH}.tar.gz | tar -xz -C /usr/local/bin
RUN curl -L https://github.com/wttech/aemc/releases/download/v${AEMC_VERSION}/aemc-cli_${TARGETOS}_${TARGETARCH}.tar.gz | tar -xz -C /usr/local/bin

FROM azul/zulu-openjdk:11-jre-headless

COPY --from=installer /usr/local/bin/aem /usr/local/bin/aem

EXPOSE 4502

WORKDIR /opt

COPY aem-start.sh /usr/local/bin/aem-start

COPY aem-sdk-*.zip aem/home/lib/
#COPY aem-sdk-*.zip aem/home/lib/

RUN chmod +x /usr/local/bin/aem-start

ENV AEM_JAVA_HOME_DIR=$JAVA_HOME
ENV AEM_VENDOR_JAVA_HOME_DIR=$JAVA_HOME

RUN aem instance -A launch && aem instance down
#RUN aem instance -A launch && aem instance down

CMD ["/usr/local/bin/aem-start"]
#CMD ["/usr/local/bin/aem-start"]
ENTRYPOINT ["/usr/local/bin/aem"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AEM SDK

Docker images with AEMaaCS SDK.

## How to use

### Pull the image

```shell
docker pull ghcr.io/orbinson/aem-sdk:main
```

0 comments on commit e009c95

Please sign in to comment.