Skip to content

Commit

Permalink
Update 6x init
Browse files Browse the repository at this point in the history
  • Loading branch information
martin.mueller committed Aug 9, 2020
0 parents commit 931308d
Show file tree
Hide file tree
Showing 175 changed files with 257,424 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
**.log*

# Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar

# Eclipse
.metadata
.project
.classpath
bin/
tmp/
*.tmp
.settings/
.loadpath
.recommenders

# IntelliJ IDEA
**.idea
**.iml

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# macOS
*.DS_Store
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Alfresco Sinadura 6.2 Project

This project is originated from https://github.com/zylklab/alfresco-sinadura . So please go there for specific Sinadura matters.

I would like to thank [PMGA.tech](http://www.pmga.tech/) as my sponsor to make the work possible.

It is planned to contribute back to the origin. But until then I would like to thank the creators of the Alfresco Sinadura addon for this sophisticated product.

## SDK

This project is based on Alfresco's SDK 4.1.0 to make it ACS 6.X compatible. For more details on how the SDK works visit: https://github.com/Alfresco/alfresco-sdk

## Useful Commands

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

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

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 and Share docker images, start the dockerised environment composed by ACS, Share, ASS and
PostgreSQL and tail the logs of all the containers.
* `build_start_it_supported`. Build the whole project including dependencies required for IT execution, recreate the ACS and Share docker images, start the
dockerised environment composed by ACS, Share, 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_share`. Build the Share module, recreate the Share docker image and restart the Share container.
* `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 and Share docker images, start the dockerised environment, execute the integration tests from the
`integration-tests` module and stop the environment.
* `test`. Execute the integration tests (the environment must be already started).

## Notice
* The Share image applies the fix for allowing the signature in the preview. https://github.com/zylklab/alfresco-sinadura/issues/9
38 changes: 38 additions & 0 deletions docker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
**.log*

# Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar

# Eclipse
.metadata
.project
.classpath
bin/
tmp/
*.tmp
.settings/
.loadpath
.recommenders

# IntelliJ IDEA
**.idea
**.iml

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# macOS
*.DS_Store
40 changes: 40 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Alfresco Sinadura 6.2 Project

This project is originated from https://github.com/zylklab/alfresco-sinadura . So please go there for specific Sinadura matters.

I would like to thank [PMGA.tech](http://www.pmga.tech/) as my sponsor to make the work possible.

It is planned to contribute back to the origin. But until then I would like to thank the creators of the Alfresco Sinadura addon for this sophisticated product.

## SDK

This project is based on Alfresco's SDK 4.1.0 to make it ACS 6.X compatible. For more details on how the SDK works visit: https://github.com/Alfresco/alfresco-sdk

## Useful Commands

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

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

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 and Share docker images, start the dockerised environment composed by ACS, Share, ASS and
PostgreSQL and tail the logs of all the containers.
* `build_start_it_supported`. Build the whole project including dependencies required for IT execution, recreate the ACS and Share docker images, start the
dockerised environment composed by ACS, Share, 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_share`. Build the Share module, recreate the Share docker image and restart the Share container.
* `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 and Share docker images, start the dockerised environment, execute the integration tests from the
`integration-tests` module and stop the environment.
* `test`. Execute the integration tests (the environment must be already started).

## Notice
* The Share image applies the fix for allowing the signature in the preview. https://github.com/zylklab/alfresco-sinadura/issues/9
104 changes: 104 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
version: '3.4'
services:
sinadura-6x-service:
image: alfresco-service-sinadura-6x:development
build:
dockerfile: ./Dockerfile
context: ../../../sinadura5-services-docker
volumes:
- sinadura-6x-acs-temp-volume:/usr/local/tomcat/temp
sinadura-6x-share:
image: alfresco-share-sinadura-6x:development
build:
dockerfile: ./Dockerfile
context: ../../../sinadura-6x-share-docker/target
environment:
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888"
REPO_HOST: sinadura-6x-acs
REPO_PORT: 8080
ports:
- "${share.debug.port}:8888"
sinadura-6x-acs:
image: alfresco-content-services-sinadura-6x:development
build:
dockerfile: ./Dockerfile
context: ../../../sinadura-6x-platform-docker/target
environment:
CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888"
ports:
- "${acs.debug.port}:8888"
volumes:
- sinadura-6x-acs-volume:/usr/local/tomcat/alf_data
- sinadura-6x-acs-temp-volume:/usr/local/tomcat/temp
depends_on:
- sinadura-6x-postgres

alfresco-pdf-renderer:
image: alfresco/alfresco-pdf-renderer:2.1.0-RC3
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"

imagemagick:
image: alfresco/alfresco-imagemagick:2.1.0-RC3
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"

libreoffice:
image: alfresco/alfresco-libreoffice:2.1.0-RC3
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"

tika:
image: alfresco/alfresco-tika:2.1.0-RC3
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"

transform-misc:
image: alfresco/alfresco-transform-misc:2.1.0-RC3
environment:
JAVA_OPTS: " -Xms256m -Xmx512m"

sinadura-6x-postgres:
image: postgres:9.6
environment:
POSTGRES_DB: alfresco
POSTGRES_USER: alfresco
POSTGRES_PASSWORD: alfresco
command: postgres -c max_connections=300 -c log_min_messages=LOG
volumes:
- sinadura-6x-db-volume:/var/lib/postgresql/data
sinadura-6x-ass:
image: alfresco/alfresco-search-services:1.2.0
environment:
SOLR_ALFRESCO_HOST: sinadura-6x-acs
SOLR_ALFRESCO_PORT: 8080
SOLR_SOLR_HOST: sinadura-6x-ass
SOLR_SOLR_PORT: 8983
SOLR_CREATE_ALFRESCO_DEFAULTS: alfresco,archive
volumes:
- sinadura-6x-ass-volume:/opt/alfresco-search-services/contentstore
- sinadura-6x-ass-volume:/opt/alfresco-search-services/data

proxy:
image: nginx:stable-alpine
# image: nginx-sinadura-6x:development
# build:
# dockerfile: ./Dockerfile
# context: ../../../proxy
volumes:
- ../../../proxy/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- sinadura-6x-acs
- sinadura-6x-share
- sinadura-6x-service
ports:
- "8080:8080"
volumes:
sinadura-6x-acs-volume:
external: true
sinadura-6x-acs-temp-volume:
external: true
sinadura-6x-db-volume:
external: true
sinadura-6x-ass-volume:
external: true
Loading

0 comments on commit 931308d

Please sign in to comment.