-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the build-and-deploy-webapp shell script (#377)
Changes: - Added different flags to the build-and-deploy-webapp.sh shell script to be able to build only front or back-end part of the application or both of them. - Also added a usage/help file to the script. - Added its usage to the README.
- Loading branch information
Showing
5 changed files
with
127 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: "3.6" | ||
|
||
services: | ||
node-webpack: | ||
image: node:16 | ||
volumes: | ||
- ..:/root/project | ||
working_dir: /root/project | ||
command: ["sh", "-c", "export CPPFLAGS=-DPNG_ARM_NEON_OPT=0 && npm install -g npm-check-updates && ./compile-front-end-packages.sh -ui" ] | ||
|
||
gradle-build: | ||
depends_on: | ||
node-webpack: | ||
condition: service_completed_successfully | ||
extends: | ||
service: gradle | ||
file: docker-compose-gradle.yml | ||
|
||
gradle-shell: | ||
extends: | ||
service: gradle | ||
file: docker-compose-gradle.yml | ||
tty: true | ||
stdin_open: true | ||
command: [ "sh", "-c", "gradle && /bin/bash" ] | ||
depends_on: | ||
gradle-build: | ||
condition: service_completed_successfully | ||
|
||
tomcat: | ||
extends: | ||
service: tomcat | ||
file: docker-compose-tomcat.yml | ||
depends_on: | ||
gradle-build: | ||
condition: service_completed_successfully | ||
postgres: | ||
condition: service_started | ||
solrcloud-0: | ||
condition: service_started | ||
solrcloud-1: | ||
condition: service_started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version: "3.6" | ||
|
||
services: | ||
gradle-build: | ||
extends: | ||
service: gradle | ||
file: docker-compose-gradle.yml | ||
command: ["sh", "-c", "gradle clean :app:war"] | ||
|
||
gradle-shell: | ||
extends: | ||
service: gradle | ||
file: docker-compose-gradle.yml | ||
tty: true | ||
stdin_open: true | ||
command: [ "sh", "-c", "gradle && /bin/bash" ] | ||
depends_on: | ||
gradle-build: | ||
condition: service_completed_successfully | ||
|
||
tomcat: | ||
extends: | ||
service: tomcat | ||
file: docker-compose-tomcat.yml | ||
depends_on: | ||
gradle-build: | ||
condition: service_completed_successfully | ||
postgres: | ||
condition: service_started | ||
solrcloud-0: | ||
condition: service_started | ||
solrcloud-1: | ||
condition: service_started |