Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alfresco 6 #55

Merged
merged 2 commits into from
Oct 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions pdf-toolkit-repo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Alfresco ACS JAR Module - SDK 4.0

This is an ACS project for Alfresco SDK 4.0.

Run with `./run.sh build_start` or `./run.bat build_start` and verify that it

* Runs Alfresco Content Service (ACS)
* (Optional) Runs Alfresco Share
* Runs Alfresco Search Service (ASS)
* Runs PostgreSQL database
* Deploys the JAR assembled module

All the services of the project are now run as docker containers. The run script offers the next tasks:

* `build_start`. Build the whole project, recreate the ACS docker image, start the dockerised environment composed by ACS, Share (optional), ASS
and PostgreSQL and tail the logs of all the containers.
* `start`. Start the dockerised environment without building the project and tail the logs of all the containers.
* `stop`. Stop the dockerised environment.
* `purge`. Stop the dockerised container and delete all the persistent data (docker volumes).
* `tail`. Tail the logs of all the containers.
* `reload_acs`. Build the ACS module, recreate the ACS docker image and restart the ACS container.
* `build_test`. Build the whole project, recreate the ACS docker image, start the dockerised environment, execute the integration tests and stop
the environment.
* `test`. Execute the integration tests (the environment must be already started).

# Few things to notice

* No parent pom
* No WAR projects, the jars are included in the custom docker images
* No runner project - the Alfresco environment is now managed through [Docker](https://www.docker.com/)
* Standard JAR packaging and layout
* Works seamlessly with Eclipse and IntelliJ IDEA
* JRebel for hot reloading, JRebel maven plugin for generating rebel.xml [JRebel integration documentation]
* AMP as an assembly
* Persistent test data through restart thanks to the use of Docker volumes for ACS, ASS and database data
* Resources loaded from META-INF
* Web Fragment (this includes a sample servlet configured via web fragment)

# TODO

* Abstract assembly into a dependency so we don't have to ship the assembly in the archetype
* Functional/remote unit tests
54 changes: 54 additions & 0 deletions pdf-toolkit-repo/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
version: '3.4'
services:
# Optional
# pdf-toolkit-repo-share:
# image: ${docker.share.image}:${alfresco.share.version}
# environment:
# REPO_HOST: pdf-toolkit-repo-acs
# REPO_PORT: 8080
# ports:
# - "${share.port}:8080"
pdf-toolkit-repo-acs:
image: alfresco-content-services-pdf-toolkit-repo:development
build:
dockerfile: ./Dockerfile
context: ../../../target
environment:
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8888"
ports:
- "${acs.port}:8080"
- "${acs.debug.port}:8888"
volumes:
- pdf-toolkit-repo-acs-volume:/usr/local/tomcat/alf_data
depends_on:
- pdf-toolkit-repo-postgres
pdf-toolkit-repo-postgres:
image: postgres:9.6
environment:
POSTGRES_DB: alfresco
POSTGRES_USER: alfresco
POSTGRES_PASSWORD: alfresco
ports:
- "${postgres.port}:5432"
volumes:
- pdf-toolkit-repo-db-volume:/var/lib/postgresql/data
pdf-toolkit-repo-ass:
image: alfresco/alfresco-search-services:1.2.0
environment:
SOLR_ALFRESCO_HOST: pdf-toolkit-repo-acs
SOLR_ALFRESCO_PORT: 8080
SOLR_SOLR_HOST: pdf-toolkit-repo-ass
SOLR_SOLR_PORT: 8983
SOLR_CREATE_ALFRESCO_DEFAULTS: alfresco,archive
ports:
- "8983:8983"
volumes:
- pdf-toolkit-repo-ass-volume:/opt/alfresco-search-services/contentstore
- pdf-toolkit-repo-ass-volume:/opt/alfresco-search-services/data
volumes:
pdf-toolkit-repo-acs-volume:
external: true
pdf-toolkit-repo-db-volume:
external: true
pdf-toolkit-repo-ass-volume:
external: true
Loading