-
Notifications
You must be signed in to change notification settings - Fork 37
/
aliases
executable file
·110 lines (101 loc) · 8.28 KB
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# The aliases in this script provide simple commands to build projects, start tomcat and combinations of these. This
# give the flexibility to only rebuild or repackage parts of the codebase that have changed.
#
# The Enterprise repo project depends on artifacts from the community repo project, but not any of its docker images.
# Once the repository component and Share have been built, they will need to be combined with other ACS components in
# one of the packaging projects.
#
# When developing code, you will normally not be creating repository docker images, or TAS test jar files, but will be
# creating war files and then running them in a local tomcat instance. To provide the environment needed to do this you
# will need to start a docker-compose environment to provide access to a databases and other ACS components.
#
# If need to create Docker images or create TAS test jar files (extended in downstream projects), use the aliases that
# end in D for Docker.
#
# By default only the share-services AMP is built by these aliases. Additional AMPS may be included by adding their
# profile to the AMPS environment variable. For example: export AMPS="-Pags" (or "-Ps3" or "-Paz").
#
# Aliases to build a sequence of projects and start tomcat - remember to start a CLEAN docker-compose environment - see envUp
# com - builds alfresco-community-repo & acs-community-packaging
# ent - builds alfresco-community-repo, alfresco-enterprise-repo & acs-packaging
#
# Aliases to build projects WITHOUT creating docker images or TAS tests jars
# comR - alfresco-community-repo
# entR - alfresco-enterprise-repo
# comS - alfresco-enterprise-share ±
# entS - alfresco-enterprise-share
# comP - acs-community-packaging
# entP - acs-packaging
#
# Note: ± the comS * aliases in acs-packaging use alfresco-enterprise-share rather than alfresco-community-share
# as the acs-packaging aliases are generally used when alfresco-enterprise-share has been cloned by a
# developer working on enterprise. The acs-community-packaging aliases use alfresco-community-share as
# that is available to a community developer.
#
# Aliases to build projects including DOCKER images and TAS tests jars
# comRD - alfresco-community-repo
# entRD - alfresco-enterprise-repo
# comSD - alfresco-enterprise-share ±
# entSD - alfresco-enterprise-share
# comPD - acs-community-packaging
# entPD - acs-packaging
# Aliases to start tomcat in a CLEAN environment - remember to start a docker-compose environment - see envUp
# comT - acs-community-packaging
# entT - acs-packaging
# comTDebug - acs-community-packaging (uses mvnDebug to allow a debugger to be attached)
# entTDebug - acs-packaging
# Aliases to start tomcat REUSING an existing environment (database and alf_data directory)
# comO - acs-community-packaging
# entO - acs-packaging
# comODebug - acs-community-packaging (uses mvnDebug to allow a debugger to be attached)
# entODebug - acs-packaging
# Set environment variables if not already set
if [ -z ${AMPS+x} ]
then
export AMPS=""
fi
alias comR='(cd alfresco-community-repo && mvn clean install $AMPS -DskipTests=true -Dversion.edition=Community)'
alias comS='(cd alfresco-enterprise-share && mvn clean install $AMPS -DskipTests -Dmaven.javadoc.skip=true)'
alias comP='(cd acs-community-packaging && mvn clean install $AMPS -Dmaven.javadoc.skip=true)'
alias entR='(cd alfresco-enterprise-repo && mvn clean install $AMPS -DskipTests=true -Dmaven.javadoc.skip=true)'
alias entS='(cd alfresco-enterprise-share && mvn clean install $AMPS -DskipTests -Dmaven.javadoc.skip=true)'
alias entP='(cd acs-packaging && mvn clean install $AMPS)'
alias comRd='(cd alfresco-community-repo && mvn clean install $AMPS -DskipTests=true -Dversion.edition=Community -Pbuild-docker-images -Dimage.tag=latest)'
alias comSd='(cd alfresco-enterprise-share && mvn clean install $AMPS -DskipTests=true -DskipTests -Dmaven.javadoc.skip=true -Pbuild-docker-images -Dimage.tag=latest -Drepo.image.tag=latest)'
alias comPd='(cd acs-community-packaging && mvn clean install $AMPS -DskipTests=true -Dmaven.javadoc.skip=true -Pbuild-docker-images -Dimage.tag=latest -Drepo.image.tag=latest -Dshare.image.tag=latest)'
alias entRd='(cd alfresco-enterprise-repo && mvn clean install $AMPS -DskipTests=true -Dmaven.javadoc.skip=true -Pbuild-docker-images -Dimage.tag=latest )'
alias entSd='(cd alfresco-enterprise-share && mvn clean install $AMPS -DskipTests=true -DskipTests -Dmaven.javadoc.skip=true -Pbuild-docker-images -Dimage.tag=latest -Drepo.image.tag=latest)'
alias entPd='(cd acs-packaging && mvn clean install $AMPS -DskipTests=true -Pbuild-docker-images -Dimage.tag=latest -Drepo.image.tag=latest -Dshare.image.tag=latest)'
alias comRD='(cd alfresco-community-repo && mvn clean install $AMPS -DskipTests=true -Dversion.edition=Community -Pall-tas-tests -Pbuild-docker-images -Dimage.tag=latest)'
alias comSD='(cd alfresco-enterprise-share && mvn clean install $AMPS -DskipTests=true -DskipTests -Dmaven.javadoc.skip=true -Pall-tas-tests -Pbuild-docker-images -Dimage.tag=latest -Drepo.image.tag=latest)'
alias comPD='(cd acs-community-packaging && mvn clean install $AMPS -DskipTests=true -Dmaven.javadoc.skip=true -Pall-tas-tests -Pbuild-docker-images -Dimage.tag=latest -Drepo.image.tag=latest -Dshare.image.tag=latest)'
alias entRD='(cd alfresco-enterprise-repo && mvn clean install $AMPS -DskipTests=true -Dmaven.javadoc.skip=true -Pall-tas-tests -Pbuild-docker-images -Dimage.tag=latest )'
alias entSD='(cd alfresco-enterprise-share && mvn clean install $AMPS -DskipTests=true -DskipTests -Dmaven.javadoc.skip=true -Pall-tas-tests -Pbuild-docker-images -Dimage.tag=latest -Drepo.image.tag=latest)'
alias entPD='(cd acs-packaging && mvn clean install $AMPS -DskipTests=true -Pall-tas-tests -Pbuild-docker-images -Dimage.tag=latest -Drepo.image.tag=latest -Dshare.image.tag=latest)'
alias comT='(cd acs-community-packaging && mvn clean install -Prun $AMPS -rf dev)'
alias comTDebug='(cd acs-community-packaging && mvnDebug clean install -Prun $AMPS -rf dev)'
alias comO='(cd acs-community-packaging && mvn install -Prun $AMPS -rf dev/dev-repo-amps-overlay)'
alias comODebug='(cd acs-community-packaging && mvnDebug install -Prun $AMPS -rf dev/dev-repo-amps-overlay)'
alias entT='(cd acs-packaging && mvn clean install -Prun $AMPS -rf dev)'
alias entTDebug='(cd acs-packaging && mvnDebug clean install -Prun $AMPS -rf dev)'
alias entO='(cd acs-packaging && mvn install -Prun $AMPS -rf dev/dev-repo-amps-overlay)'
alias entODebug='(cd acs-packaging && mvnDebug install -Prun $AMPS -rf dev/dev-repo-amps-overlay)'
alias com='comR && comS && comP && comT'
alias comD='comRD && comSD && comPD'
alias comX='comR && comS && comP'
alias comDR='comRD && comRD && comPD'
alias comXR='comR && comR && comP'
alias comXS='comS && comP'
alias ent='comR && entR && entS && entP && entT'
alias entD='comRD && entRD && entSD && entPD'
alias entX='comR && entR && entS && entP'
alias entDR='comRD && entRD && entPD'
alias entXR='comR && entR && entP'
alias entXS='entS && entP'
# Clean up of docker images and content stores (alf_data directories)
alias drm='docker rm -f $(docker ps -q)'
alias arm='rm -rf `find . -name alf_data`'
alias envUp='./acs-packaging/scripts/dev/start-compose.sh'
alias envStop='docker compose -f acs-packaging/dev/docker-compose.yml stop'
alias envKill='docker compose -f acs-packaging/dev/docker-compose.yml kill'
alias envRm='docker compose -f acs-packaging/dev/docker-compose.yml rm'