Code Monkey home page Code Monkey logo

docker-aem-alpine's Introduction

Dockerized AEM setup using Alpine linux

Lets you run AEM author, publish and dispatcher in separate containers. Everything gets linked together with Docker Compose and configured in docker-compose.yml.

Prerequisites

There are few prerequisites that must be met before building and running.

Docker

You must have Docker installed before you can run this. Check Docker instructions. For Docker Compose, check instructions.

AEM files

Next we need to copy AEM files to the root folder where they can be copied to Docker images.

Use file names exactly as given.

  1. Save AEM quickstart JAR as aem-quickstart.jar - it can be any version!
  2. Save license.properties as license.properties

Usage

To build everything and start the environment, run in project root:

docker-compose -d up <optional service name>

To stop all services and leave containers, run in project root:

docker-compose stop <optional service name>

To start all services again, run in project root:

docker-compose start <optional service name>

To tail docker logs with follow:

docker-compose logs -f -t

If you wish to start everything clean (will remove all changes done in AEM), run in project root:

docker-compose down
rm -r docker-data

After everything is up and running

You should change replication settings to match the environment.

Default Agent (publish) Change localhost to publish:4503.

Starting up dispatcher

You must configure dispatcher separately.

Technical details

Here's some technical details that might help with running or debugging AEM on docker containers.

Docker volumes

Containers will use a data volume located at ./docker-data/ for data persistence. This way crx-quickstart doesn't need to be unpacked after removing containers. Also it might help with debugging as all AEM files are easily accessible.

Troubleshooting

Handy command for attaching a terminal to a running docker container, use:

docker-compose exec <service> /bin/bash

Or if you prefer fish (pre-installed in container):

docker-compose exec <service> /usr/bin/fish

Manually building images

Remember to copy aem-quickstart.jar and license.properties files to project root with exactly these names before building. To build a specific image, you can use for example:

docker build --no-cache -f aem/Dockerfile -t arkki/aem:6.2-alpine .

Enjoy!

docker-aem-alpine's People

Contributors

arkki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.