Get that ACS 6 Community EA dev env up and running

Get ACS 6 EA on your local environment and start exploring new features, functionalities, and services.

Install VirtualBox:

Install Docker :

Clone the ACS git project:,  or just create a docker-compose.yml file with the following contents

version: "3"

        image: alfresco/alfresco-content-repository-community:6.0.5-ea
            JAVA_OPTS : "
            - 8082:8080 #Browser port

        image: alfresco/alfresco-share:6.0.a
            - REPO_HOST=alfresco
            - REPO_PORT=8080
            - 8080:8080

        image: postgres:10.1
            - POSTGRES_PASSWORD=alfresco
            - POSTGRES_USER=alfresco
            - POSTGRES_DB=alfresco
        command: postgres -c max_connections=300 -c log_min_messages=LOG
            - 5432:5432

        image: alfresco/alfresco-search-services:1.1.1
            #Solr needs to know how to register itself with Alfresco
            - SOLR_ALFRESCO_HOST=alfresco
            - SOLR_ALFRESCO_PORT=8080
            #Alfresco needs to know how to call solr
            - SOLR_SOLR_HOST=solr6
            - SOLR_SOLR_PORT=8983
            #Create the default alfresco and archive cores
            - SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive
            - 8083:8983 #Browser port

Initialize a Docker Machine to run your stack.

docker-machine create --driver virtualbox --virtualbox-cpu-count "4" --virtualbox-memory 4096 dev-env-machine

Optionally, for Linux/Macs, create a shortcut incase you want to work with multiple machines, environment.

echo "alias docker-dev='eval \$(docker-machine env dev-env-machine); docker-machine env dev-env-machine'" >> ~/.bashrc
. ~/.bashrc

With this shortcut, you can switch docker environment machine from the command prompt, by typing docker-dev. The docker-machine env dev-env-machine will give you info on your machine.

Capture the IP Address of the DOCKER_HOST variable in this command; we’ll need it for accessing ACS.

Now in the same directory as your docker-compose.yml, run the command to start the stack

docker-compose up

You can now Access ACS using the IP address for the Docker Host.

Alfresco Repository: http://DOCKER_HOST_IP:8082/alfresco

Alfresco Search Services: http://DOCKER_HOST_IP:8083/solr

Alfresco Share: http://DOCKER_HOST_IP:8080/share

Note that the stack will run in the foreground, with all logging sent to stdout. This follows the Logs concerns for applications. In that, applications don’t concern themselves with output management.

If you didn’t capture the IP address, no worries. Open a new terminal window and run docker-dev, and it should be printed.

Log in and inspect the installation

# log into repository container
docker run -it alfresco/alfresco-content-repository-community:6.0.5-ea bash
# log into share container
docker run -it alfresco/alfresco-share:6.0.a bash
# log into postgres container
docker run -it postgres:10.1 bash
# log into search container
docker run -it alfresco/alfresco-search-services:1.1.1 bash
## or log into running instances
# First list the container ids
docker ps
# Then get a bash shell for the running container you wish to inspect
docker exec -it CONTAINER_ID /bin/bash

alex@mbp:~/workspaces/containers/acs-community-deployment/docker-compose$ docker ps
055d595c2006 alfresco/alfresco-content-repository-community:6.0.5-ea " run" 3 hours ago Up 3 hours>8080/tcp dockercompose_alfresco_1
1ef0957b1ded alfresco/alfresco-share:6.0.a "/usr/local/tomcat/s…" 3 hours ago Up 3 hours>8080/tcp dockercompose_share_1
a1c49ab0d9a0 alfresco/alfresco-search-services:1.1.1 "/opt/alfresco-searc…" 3 hours ago Up 3 hours>8983/tcp dockercompose_solr6_1
179ca4c51734 postgres:10.1 "docker-entrypoint.s…" 3 hours ago Up 3 hours>5432/tcp dockercompose_postgres_1
alex@mbp:~/workspaces/containers/acs-community-deployment/docker-compose$ docker exec -it 055d595c2006 /bin/bash

One response to “Get that ACS 6 Community EA dev env up and running”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: