File tree Expand file tree Collapse file tree 12 files changed +31
-67
lines changed Expand file tree Collapse file tree 12 files changed +31
-67
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Colors
4+ BLUE=' \E[1;34m'
5+ CYAN=' \E[1;36m'
6+ GREEN=' \E[1;32m'
7+ RED=' \E[1;31m'
8+ RESET=' \E[0m'
9+ YELLOW=' \E[1;33m'
10+
11+ export BLUE CYAN GREEN RED RESET YELLOW
12+
13+ # Docker Compose
14+ COMPOSE_PROJECT_NAME=" npmdev"
15+ COMPOSE_FILE=" docker/docker-compose.dev.yml"
16+
17+ export COMPOSE_FILE COMPOSE_PROJECT_NAME
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- CYAN=' \E[1;36m'
4- YELLOW=' \E[1;33m'
5- BLUE=' \E[1;34m'
6- GREEN=' \E[1;32m'
7- RESET=' \E[0m'
3+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4+ . " $DIR /.common.sh"
85
96echo -e " ${BLUE} ❯ ${CYAN} Building docker multiarch: ${YELLOW}${* }${RESET} "
107
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
33DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4-
5- CYAN=' \E[1;36m'
6- BLUE=' \E[1;34m'
7- RED=' \E[1;31m'
8- RESET=' \E[0m'
9-
10- COMPOSE_PROJECT_NAME=" npmdev"
11- COMPOSE_FILE=" docker/docker-compose.dev.yml"
12- export COMPOSE_FILE COMPOSE_PROJECT_NAME
4+ . " $DIR /.common.sh"
135
146# Ensure docker-compose exists
157# Make sure docker exists
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
33DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4-
5- CYAN=' \E[1;36m'
6- BLUE=' \E[1;34m'
7- RED=' \E[1;31m'
8- GREEN=' \E[1;32m'
9- RESET=' \E[0m'
4+ . " $DIR /.common.sh"
105
116# Ensure docker-compose exists
127if hash docker 2> /dev/null; then
Original file line number Diff line number Diff line change 22
33# Note: This script is designed to be run inside CI builds
44
5- CYAN=' \E[1;36m'
6- YELLOW=' \E[1;33m'
7- BLUE=' \E[1;34m'
8- GREEN=' \E[1;32m'
9- RESET=' \E[0m'
5+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
6+ . " $DIR /.common.sh"
107
118echo -e " ${BLUE} ❯ ${CYAN} Uploading docs in: ${YELLOW} $1 ${RESET} "
129
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
33DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4-
5- CYAN=' \E[1;36m'
6- BLUE=' \E[1;34m'
7- RED=' \E[1;31m'
8- GREEN=' \E[1;32m'
9- RESET=' \E[0m'
4+ . " $DIR /.common.sh"
105
116DOCKER_IMAGE=jc21/alpine-nginx-full:node
127
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
33DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4-
5- CYAN=' \E[1;36m'
6- BLUE=' \E[1;34m'
7- YELLOW=' \E[1;33m'
8- RED=' \E[1;31m'
9- RESET=' \E[0m'
10-
11- COMPOSE_PROJECT_NAME=" npmdev"
12- COMPOSE_FILE=" docker/docker-compose.dev.yml"
13- export COMPOSE_FILE COMPOSE_PROJECT_NAME
4+ . " $DIR /.common.sh"
145
156# Ensure docker-compose exists
167if hash docker-compose 2> /dev/null; then
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
33DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4-
5- CYAN=' \E[1;36m'
6- BLUE=' \E[1;34m'
7- RED=' \E[1;31m'
8- RESET=' \E[0m'
9-
10- COMPOSE_PROJECT_NAME=" npmdev"
11- COMPOSE_FILE=" docker/docker-compose.dev.yml"
12- export COMPOSE_FILE COMPOSE_PROJECT_NAME
4+ . " $DIR /.common.sh"
135
146# Ensure docker-compose exists
157# Make sure docker exists
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
33DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4-
5- CYAN=' \E[1;36m'
6- BLUE=' \E[1;34m'
7- RED=' \E[1;31m'
8- RESET=' \E[0m'
9-
10- COMPOSE_PROJECT_NAME=" npmdev"
11- COMPOSE_FILE=" docker/docker-compose.dev.yml"
12- export COMPOSE_FILE COMPOSE_PROJECT_NAME
4+ . " $DIR /.common.sh"
135
146# Ensure docker-compose exists
157if hash docker-compose 2> /dev/null; then
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- CYAN=' \E[1;36m'
4- YELLOW=' \E[1;33m'
5- BLUE=' \E[1;34m'
6- GREEN=' \E[1;32m'
7- RED=' \E[1;31m'
8- RESET=' \E[0m'
3+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
4+ . " $DIR /.common.sh"
95
106if [ " $1 " == " " ]; then
117 echo " Waits for a docker container to be healthy."
You can’t perform that action at this time.
0 commit comments