forked from Alfresco/acs-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
executable file
·79 lines (69 loc) · 4.67 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
# 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 has been built, it 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.
#
# 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
# comP - acs-community-packaging
# entP - acs-packaging
#
# Aliases to build projects including DOCKER images and TAS tests jars
# comRD - alfresco-community-repo
# entRD - alfresco-enterprise-repo
# 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
export TAG=latest
alias comR='(cd alfresco-community-repo && mvn clean install -DskipTests=true -Dversion.edition=Community)'
alias entR='(cd alfresco-enterprise-repo && mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true )'
alias entP='(cd acs-packaging && mvn clean install)'
alias comP='(cd acs-community-packaging && mvn clean install -Dmaven.javadoc.skip=true)'
alias comRD="(cd alfresco-community-repo && mvn clean install -PcommunityDocker -Pall-tas-tests -DskipTests=true -Dimage.tag=$TAG -Dversion.edition=Community)"
alias entRD="(cd alfresco-enterprise-repo && mvn clean install -PenterpriseDocker -Pall-tas-tests -DskipTests=true -Dimage.tag=$TAG -Dmaven.javadoc.skip=true )"
alias comPD="(cd acs-community-packaging && mvn clean install -PcommunityDocker -Pall-tas-tests -DskipTests=true -Dimage.tag=$TAG -Drepo.image.tag=$TAG -Dmaven.javadoc.skip=true)"
alias entPD="(cd acs-packaging && mvn clean install -PenterpriseDocker -Pall-tas-tests -DskipTests=true -Dimage.tag=$TAG -Drepo.image.tag=$TAG)"
alias comT=' (cd acs-community-packaging && mvn clean install -Prun,withShare)'
alias comTDebug='(cd acs-community-packaging && mvnDebug clean install -Prun,withShare)'
alias comO=' (cd acs-community-packaging && mvn install -Prun,withShare -rf dev/dev-acs-amps-overlay)'
alias comODebug='(cd acs-community-packaging && mvnDebug install -Prun,withShare -rf dev/dev-acs-amps-overlay)'
alias entT=' (cd acs-packaging && mvn clean install -Prun,withShare)'
alias entTDebug='(cd acs-packaging && mvnDebug clean install -Prun,withShare)'
alias entO=' (cd acs-packaging && mvn install -Prun,withShare -rf dev/dev-acs-amps-overlay)'
alias entODebug='(cd acs-packaging && mvnDebug install -Prun,withShare -rf dev/dev-acs-amps-overlay)'
alias com='comR && comP && comT'
alias ent='comR && entR && entP && entT'
alias comD='comRD && comPD'
alias entD='comR && entRD && entPD'
alias comX='comR && comP'
alias entX='comR && entR && 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='docker-compose -f acs-packaging/dev/docker-compose.yml up'
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'