Commit fbcbeb47 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

ADd docker build

parent 5c8b488b
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ services:
    build:
      context: ./helper
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -42,6 +43,7 @@ services:
    build:
      context: ./TS29222_CAPIF_Access_Control_Policy_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -65,6 +67,7 @@ services:
    build:
      context: ./TS29222_CAPIF_API_Invoker_Management_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -92,6 +95,7 @@ services:
    build:
      context: ./TS29222_CAPIF_API_Provider_Management_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -118,6 +122,7 @@ services:
    build:
      context: ./TS29222_CAPIF_Auditing_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -140,6 +145,7 @@ services:
    build:
      context: ./TS29222_CAPIF_Discover_Service_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -162,6 +168,7 @@ services:
    build:
      context: ./TS29222_CAPIF_Events_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -184,6 +191,7 @@ services:
    build:
      context: ./TS29222_CAPIF_Logging_API_Invocation_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -207,6 +215,7 @@ services:
    build:
      context: ./TS29222_CAPIF_Publish_Service_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -230,6 +239,7 @@ services:
    build:
      context: ./TS29222_CAPIF_Routing_Info_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -239,6 +249,7 @@ services:
    build:
      context: ./TS29222_CAPIF_Security_API
      platforms:
        - linux/arm64
        - linux/amd64
    expose:
      - "8080"
@@ -293,6 +304,7 @@ services:
    build:
      context: ./nginx
      platforms:
        - linux/arm64
        - linux/amd64
    ports:
      - "8080:8080"
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ services:
    build:
      context: ./mock_server
      platforms:
        - linux/arm64
        - linux/amd64
    ports:
      - 9090:9090
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ services:
    build:
      context: ./register
      platforms:
        - linux/arm64
        - linux/amd64
    ports:
      - 8084:8080
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ services:
    build:
      context: ./vault
      platforms:
        - linux/arm64
        - linux/amd64
    restart: unless-stopped
    ports:
+12 −4
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ if [ "$MONITORING_STATE" == "true" ] ; then
    echo '***Monitoring set as true***'
    echo '***Creating Monitoring stack***'

    DUID=$DUID DGID=$DGID docker compose -f "$SERVICES_DIR/monitoring/docker-compose.yml" build
    DUID=$DUID DGID=$DGID docker compose -f "$SERVICES_DIR/monitoring/docker-compose.yml" up --detach
    status=$?
    if [ $status -eq 0 ]; then
@@ -85,8 +86,9 @@ fi

docker network create capif-network

docker compose -f "$SERVICES_DIR/docker-compose-vault.yml"  up --detach --build

# docker compose -f "$SERVICES_DIR/docker-compose-vault.yml"  up --detach --build
docker compose -f "$SERVICES_DIR/docker-compose-vault.yml" build
docker compose -f "$SERVICES_DIR/docker-compose-vault.yml" up --detach
status=$?
if [ $status -eq 0 ]; then
    echo "*** Vault Service Runing ***"
@@ -95,7 +97,9 @@ else
    exit $status
fi

CAPIF_HOSTNAME=$HOSTNAME MONITORING=$MONITORING_STATE LOG_LEVEL=$LOG_LEVEL docker compose -f "$SERVICES_DIR/docker-compose-capif.yml" up --detach --build
# CAPIF_HOSTNAME=$HOSTNAME MONITORING=$MONITORING_STATE LOG_LEVEL=$LOG_LEVEL docker compose -f "$SERVICES_DIR/docker-compose-capif.yml" up --detach --build
CAPIF_HOSTNAME=$HOSTNAME MONITORING=$MONITORING_STATE LOG_LEVEL=$LOG_LEVEL docker compose -f "$SERVICES_DIR/docker-compose-capif.yml" build
CAPIF_HOSTNAME=$HOSTNAME MONITORING=$MONITORING_STATE LOG_LEVEL=$LOG_LEVEL docker compose -f "$SERVICES_DIR/docker-compose-capif.yml" up --detach

status=$?
if [ $status -eq 0 ]; then
@@ -107,7 +111,9 @@ fi


CAPIF_PRIV_KEY_BASE_64=$(echo "$(cat nginx/certs/server.key)")
CAPIF_PRIV_KEY=$CAPIF_PRIV_KEY_BASE_64 LOG_LEVEL=$LOG_LEVEL docker compose -f "$SERVICES_DIR/docker-compose-register.yml"  up --detach --build
# CAPIF_PRIV_KEY=$CAPIF_PRIV_KEY_BASE_64 LOG_LEVEL=$LOG_LEVEL docker compose -f "$SERVICES_DIR/docker-compose-register.yml"  up --detach --build
CAPIF_PRIV_KEY=$CAPIF_PRIV_KEY_BASE_64 LOG_LEVEL=$LOG_LEVEL docker compose -f "$SERVICES_DIR/docker-compose-register.yml" build 
CAPIF_PRIV_KEY=$CAPIF_PRIV_KEY_BASE_64 LOG_LEVEL=$LOG_LEVEL docker compose -f "$SERVICES_DIR/docker-compose-register.yml" up --detach

status=$?
if [ $status -eq 0 ]; then
@@ -121,6 +127,8 @@ if [ "$ROBOT_MOCK_SERVER" == "true" ] ; then
    echo '***Robot Mock Server set as true***'
    echo '***Creating Robot Mock Server stack***'

    # IP=$IP PORT=$PORT docker compose -f "$SERVICES_DIR/docker-compose-mock-server.yml" up --detach
    IP=$IP PORT=$PORT docker compose -f "$SERVICES_DIR/docker-compose-mock-server.yml" build
    IP=$IP PORT=$PORT docker compose -f "$SERVICES_DIR/docker-compose-mock-server.yml" up --detach
    status=$?
    if [ $status -eq 0 ]; then