Pablo Solar VilariƱo
2020-06-15 e6ddfc9cbadc65de2de16dd2bdc695d7149cb9c6
Renamed comp review project (#51)

6 files modified
24 ■■■■ changed files
adopt-a-pup/Readme.MD 6 ●●●● patch | view | raw | blame | history
adopt-a-pup/kubefiles/frontend-template.yaml 4 ●●●● patch | view | raw | blame | history
adopt-a-pup/scripts/deploy-frontend.sh 6 ●●●● patch | view | raw | blame | history
adopt-a-pup/scripts/deploy-mongo.sh 2 ●●● patch | view | raw | blame | history
adopt-a-pup/web-app/.env.example 2 ●●● patch | view | raw | blame | history
adopt-a-pup/web-app/Dockerfile 4 ●●●● patch | view | raw | blame | history
adopt-a-pup/Readme.MD
@@ -18,7 +18,7 @@
1. Create a project for the news service.
    ```
    oc new-project comprehensive-review-news
    oc new-project adoptapup-news
    ```
2. Deploy the news service.
@@ -28,7 +28,7 @@
3. Create a project for the Adopt a Pup application.
    ```
    oc new-project comprehensive-review
    oc new-project adoptapup
    ```
4. Add the project to the list of SMMR members.
@@ -41,7 +41,7 @@
   ...
   spec:
     members:
     - comprehensive-review
     - adoptapup
   ...
   ```
adopt-a-pup/kubefiles/frontend-template.yaml
@@ -93,8 +93,8 @@
  - name: REACT_APP_NEWS_SERVICE_URL
    description: "News endpoint"
    required: false
    value: "http://news-comprehensive-review-news.apps.ocp4.example.com"
    value: "http://news-adoptapup-news.apps.ocp4.example.com"
  - name: REACT_APP_EMAIL_APP_URL
    description: "Email dashboard URL"
    required: false
    value: "http://email-comprehensive-review.apps.ocp4.example.com/"
    value: "http://email-adoptapup.apps.ocp4.example.com/"
adopt-a-pup/scripts/deploy-frontend.sh
@@ -15,13 +15,13 @@
default_ingress_endpoint="http://istio-ingressgateway-istio-system.apps.ocp4.example.com/"
namespace=${1:-comprehensive-review}
namespace=${1:-adoptapup}
adoption_endpoint=${2:-${default_ingress_endpoint}}
animal_endpoint=${3:-${default_ingress_endpoint}}
shelter_endpoint=${4:-${default_ingress_endpoint}}
news_enabled=${5:-1}
news_endpoint=${6:-"http://news-comprehensive-review-news.apps.ocp4.example.com"}
email_endpoint=${7:-"http://email-comprehensive-review.apps.ocp4.example.com/"}
news_endpoint=${6:-"http://news-adoptapup-news.apps.ocp4.example.com"}
email_endpoint=${7:-"http://email-adoptapup.apps.ocp4.example.com/"}
oc process -n ${namespace} -f ./kubefiles/frontend-template.yaml \
  -p REACT_APP_ADOPTION_SERVICE_URL=${adoption_endpoint} \
adopt-a-pup/scripts/deploy-mongo.sh
@@ -12,7 +12,7 @@
#     - database: Database to be created. (Optional)
#     - admin-password: Password to be assigned to the MongoDB admin user. (Optional)
namespace=${1:-comprehensive-review}
namespace=${1:-adoptapup}
mongodb_user=${2:-developer}
mongodb_password=${3:-developer}
mongodb_database=${4:-adopt-a-pup}
adopt-a-pup/web-app/.env.example
@@ -3,4 +3,4 @@
REACT_APP_SHELTER_SERVICE_URL=http://localhost:8082
REACT_APP_NEWS_ENABLED=1
REACT_APP_NEWS_SERVICE_URL=http://localhost:5000/
REACT_APP_EMAIL_APP_URL=http://email-comprehensive-review.apps.ocp4.example.com/
REACT_APP_EMAIL_APP_URL=http://email-adoptapup.apps.ocp4.example.com/
adopt-a-pup/web-app/Dockerfile
@@ -12,8 +12,8 @@
    REACT_APP_ANIMAL_SERVICE_URL=http://istio-ingressgateway-istio-system.apps.ocp4.example.com/ \
    REACT_APP_SHELTER_SERVICE_URL=http://istio-ingressgateway-istio-system.apps.ocp4.example.com/ \
    REACT_APP_NEWS_ENABLED=1 \
    REACT_APP_NEWS_SERVICE_URL=http://news-comprehensive-review-news.apps.ocp4.example.com \
    REACT_APP_EMAIL_APP_URL=http://email-comprehensive-review.apps.ocp4.example.com/
    REACT_APP_NEWS_SERVICE_URL=http://news-adoptapup-news.apps.ocp4.example.com \
    REACT_APP_EMAIL_APP_URL=http://email-adoptapup.apps.ocp4.example.com/
EXPOSE 8080