From e009c956df1192a438a9a40e76d8ff0a20efaaf4 Mon Sep 17 00:00:00 2001 From: Barry d'Hoine Date: Thu, 21 Nov 2024 23:47:52 +0100 Subject: [PATCH] Add temporary build for aem compose only --- .github/workflows/build.yml | 6 ++++++ Dockerfile | 25 +++++++++++++++---------- README.md | 11 +++++++++++ 3 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 README.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54d5593..93ad256 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,7 @@ name: Create and publish a Docker image on: push: branches: ["main"] + workflow_dispatch: env: REGISTRY: ghcr.io @@ -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 diff --git a/Dockerfile b/Dockerfile index caeefb5..68ab572 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..9be3146 --- /dev/null +++ b/README.md @@ -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 +```