Commit db41bdfc authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Updating AWS task definition.

parent f42f23ab
Loading
Loading
Loading
Loading
+515 −372
Original line number Diff line number Diff line
{
    "taskDefinition": {
        "status": "ACTIVE", 
        "networkMode": "bridge", 
        "family": "EsgfMasterNodeTask", 
        "placementConstraints": [
            {
                "expression": "attribute:esgf_type == master_node", 
                "type": "memberOf"
            }
        ], 
        "volumes": [
            {
                "host": {
                    "sourcePath": "/home/ec2-user/esgf_config/httpd/certs"
                }, 
                "name": "esgf_certs"
            }, 
            {
                "host": {
                    "sourcePath": "/home/ec2-user/esgf_config/grid-security/certificates"
                }, 
                "name": "esgf_grid_security_certs"
            }, 
            {
                "host": {
                    "sourcePath": "/home/ec2-user/esgf_config/esg/config"
                }, 
                "name": "esgf_config"
            }, 
            {
                "host": {
                    "sourcePath": "/home/ec2-user/esgf_config/httpd/conf"
                }, 
                "name": "esgf_httpd_conf"
            }, 
            {
                "host": {
                    "sourcePath": "/home/ec2-user/esgf_config/esg/config/tomcat"
                }, 
                "name": "esgf_tomcat_config"
            }, 
            {
                "host": {
                    "sourcePath": "/esgf_data/cog_data"
                }, 
                "name": "cog_data"
            }, 
            {
                "host": {
                    "sourcePath": "/esgf_data/solr_data"
                }, 
                "name": "solr_data"
            }, 
            {
                "host": {
                    "sourcePath": "/esgf_data/tds_data"
                }, 
                "name": "tds_data"
            }, 
            {
                "host": {
                    "sourcePath": "/esgf_data/esgf_data"
                }, 
                "name": "esgf_data"
            }, 
            {
                "host": {
                    "sourcePath": "/home/ec2-user/esgf_config/webapps/thredds/WEB-INF/web.xml"
                }, 
                "name": "tds_web_xml"
            }
        ], 
  "requiresAttributes": [],
  "taskDefinitionArn": "arn:aws:ecs:us-west-2:031003439974:task-definition/EsgfMasterNodeTask:37",
  "networkMode": "bridge",
  "status": "ACTIVE",
  "revision": 37,
  "taskRoleArn": null,
  "containerDefinitions": [
    {
                "environment": [], 
                "name": "config", 
      "volumesFrom": [],
      "memory": 128,
      "extraHosts": null,
      "dnsServers": null,
      "disableNetworking": null,
      "dnsSearchDomains": null,
      "portMappings": [],
      "hostname": null,
      "essential": true,
      "entryPoint": [],
      "mountPoints": [
        {
          "containerPath": "/etc/certs",
          "sourceVolume": "esgf_certs",
                        "containerPath": "/etc/certs"
          "readOnly": null
        },
        {
          "containerPath": "/etc/httpd/conf.d",
          "sourceVolume": "esgf_httpd_conf",
                        "containerPath": "/etc/httpd/conf.d"
          "readOnly": null
        },
        {
          "containerPath": "/etc/grid-security/certificates",
          "sourceVolume": "esgf_grid_security_certs",
                        "containerPath": "/etc/grid-security/certificates"
          "readOnly": null
        },
        {
          "containerPath": "/esg/config",
          "sourceVolume": "esgf_config",
                        "containerPath": "/esg/config"
          "readOnly": null
        },
        {
          "containerPath": "/esg/config/tomcat",
          "sourceVolume": "esgf_tomcat_config",
                        "containerPath": "/esg/config/tomcat"
          "readOnly": null
        }
      ],
      "name": "config",
      "ulimits": null,
      "dockerSecurityOptions": null,
      "environment": [],
      "links": null,
      "workingDirectory": null,
      "readonlyRootFilesystem": null,
      "image": "centos:6",
                "cpu": 0, 
                "portMappings": [], 
                "entryPoint": [], 
                "memory": 128, 
      "command": [
        "tail",
        "-f",
        "/dev/null"
      ],
                "essential": true, 
                "volumesFrom": []
      "user": null,
      "dockerLabels": null,
      "logConfiguration": null,
      "cpu": 0,
      "privileged": null,
      "memoryReservation": null
    },
    {
      "volumesFrom": [
        {
          "readOnly": null,
          "sourceContainer": "config"
        }
      ],
      "memory": 1024,
      "extraHosts": null,
      "dnsServers": null,
      "disableNetworking": null,
      "dnsSearchDomains": null,
      "portMappings": [
        {
          "hostPort": 8000,
          "containerPort": 8000,
          "protocol": "tcp"
        }
      ],
      "hostname": null,
      "essential": false,
      "entryPoint": null,
      "mountPoints": [
        {
          "containerPath": "/usr/local/cog/cog_config",
          "sourceVolume": "cog_data",
          "readOnly": null
        }
      ],
      "name": "cog",
      "ulimits": null,
      "dockerSecurityOptions": null,
      "environment": [
        {
                        "name": "COG_DIR", 
                        "value": "/usr/local/cog"
          "name": "COG_CONFIG_DIR",
          "value": "/usr/local/cog/cog_config"
        },
        {
                        "name": "ESGF_HOSTNAME", 
                        "value": "airborne-elb1.dyndns.org"
          "name": "COG_DIR",
          "value": "/usr/local/cog"
        },
        {
          "name": "COG_INSTALL_DIR",
          "value": "/usr/local/cog/cog_install"
        },
        {
                        "name": "COG_CONFIG_DIR", 
                        "value": "/usr/local/cog/cog_config"
          "name": "ESGF_HOSTNAME",
          "value": "airborne-elb1.dyndns.org"
        }
      ],
                "name": "cog", 
      "links": [
        "postgres:esgf-postgres"
      ],
                "mountPoints": [
                    {
                        "sourceVolume": "cog_data", 
                        "containerPath": "/usr/local/cog/cog_config"
                    }
                ], 
      "workingDirectory": null,
      "readonlyRootFilesystem": null,
      "image": "esgfhub/esgf-cog:1.2",
                "essential": false, 
                "portMappings": [
                    {
                        "protocol": "tcp", 
                        "containerPort": 8000, 
                        "hostPort": 8000
                    }
                ], 
      "command": [
        "airborne-elb1.dyndns.org",
        "true",
        "false"
      ],
                "memory": 1024, 
      "user": null,
      "dockerLabels": null,
      "logConfiguration": null,
      "cpu": 0,
                "volumesFrom": [
                    {
                        "sourceContainer": "config"
                    }
                ]
      "privileged": null,
      "memoryReservation": null
    },
    {
                "environment": [], 
                "name": "postgres", 
      "volumesFrom": [],
      "memory": 512,
      "extraHosts": null,
      "dnsServers": null,
      "disableNetworking": null,
      "dnsSearchDomains": null,
      "portMappings": [
        {
          "hostPort": 5432,
          "containerPort": 5432,
          "protocol": "tcp"
        }
      ],
      "hostname": null,
      "essential": true,
      "entryPoint": null,
      "mountPoints": [],
      "name": "postgres",
      "ulimits": null,
      "dockerSecurityOptions": null,
      "environment": [],
      "links": null,
      "workingDirectory": null,
      "readonlyRootFilesystem": null,
      "image": "esgfhub/esgf-postgres:1.2",
      "command": null,
      "user": null,
      "dockerLabels": null,
      "logConfiguration": null,
      "cpu": 0,
      "privileged": null,
      "memoryReservation": null
    },
    {
      "volumesFrom": [
        {
          "readOnly": null,
          "sourceContainer": "cog"
        },
        {
          "readOnly": null,
          "sourceContainer": "config"
        }
      ],
      "memory": 2048,
      "extraHosts": null,
      "dnsServers": null,
      "disableNetworking": null,
      "dnsSearchDomains": null,
      "portMappings": [
        {
                        "protocol": "tcp", 
                        "containerPort": 5432, 
                        "hostPort": 5432
          "hostPort": 80,
          "containerPort": 80,
          "protocol": "tcp"
        },
        {
          "hostPort": 443,
          "containerPort": 443,
          "protocol": "tcp"
        }
      ],
                "memory": 512, 
      "hostname": null,
      "essential": true,
                "volumesFrom": []
            }, 
      "entryPoint": [
        "/usr/local/bin/docker-entrypoint.sh"
      ],
      "mountPoints": [
        {
          "containerPath": "/usr/local/cog/cog_config",
          "sourceVolume": "cog_data",
          "readOnly": null
        }
      ],
      "name": "httpd",
      "ulimits": null,
      "dockerSecurityOptions": null,
      "environment": [
        {
          "name": "COG_CONFIG_DIR",
          "value": "/usr/local/cog/cog_config"
        },
        {
          "name": "ESGF_HOSTNAME",
          "value": "airborne-elb1.dyndns.org"
@@ -188,13 +221,8 @@
        {
          "name": "SSL_CERT_DIR",
          "value": "/etc/grid-security/certificates"
                    }, 
                    {
                        "name": "COG_CONFIG_DIR", 
                        "value": "/usr/local/cog/cog_config"
        }
      ],
                "name": "httpd", 
      "links": [
        "postgres:esgf-postgres",
        "solr:esgf-solr",
@@ -202,174 +230,289 @@
        "data-node:esgf-data-node",
        "idp-node:esgf-idp-node"
      ],
                "mountPoints": [
                    {
                        "sourceVolume": "cog_data", 
                        "containerPath": "/usr/local/cog/cog_config"
                    }
                ], 
      "workingDirectory": null,
      "readonlyRootFilesystem": null,
      "image": "esgfhub/esgf-httpd:1.2",
                "essential": true, 
                "portMappings": [
                    {
                        "protocol": "tcp", 
                        "containerPort": 80, 
                        "hostPort": 80
      "command": null,
      "user": null,
      "dockerLabels": null,
      "logConfiguration": null,
      "cpu": 0,
      "privileged": null,
      "memoryReservation": null
    },
    {
                        "protocol": "tcp", 
                        "containerPort": 443, 
                        "hostPort": 443
                    }
                ], 
                "entryPoint": [
                    "/usr/local/bin/docker-entrypoint.sh"
                ], 
                "memory": 2048, 
                "cpu": 0, 
                "volumesFrom": [
      "volumesFrom": [],
      "memory": 4096,
      "extraHosts": null,
      "dnsServers": null,
      "disableNetworking": null,
      "dnsSearchDomains": null,
      "portMappings": [
        {
                        "sourceContainer": "cog"
          "hostPort": 8983,
          "containerPort": 8983,
          "protocol": "tcp"
        },
        {
                        "sourceContainer": "config"
          "hostPort": 8984,
          "containerPort": 8984,
          "protocol": "tcp"
        }
                ]
            }, 
            {
                "environment": [], 
                "name": "solr", 
      ],
      "hostname": null,
      "essential": true,
      "entryPoint": null,
      "mountPoints": [
        {
          "containerPath": "/esg/solr-index",
          "sourceVolume": "solr_data",
                        "containerPath": "/esg/solr-index"
          "readOnly": null
        }
      ],
      "name": "solr",
      "ulimits": null,
      "dockerSecurityOptions": null,
      "environment": [],
      "links": null,
      "workingDirectory": null,
      "readonlyRootFilesystem": null,
      "image": "esgfhub/esgf-solr:1.2",
      "command": null,
      "user": null,
      "dockerLabels": null,
      "logConfiguration": null,
      "cpu": 0,
      "privileged": null,
      "memoryReservation": null
    },
    {
      "volumesFrom": [
        {
          "readOnly": null,
          "sourceContainer": "config"
        }
      ],
      "memory": 2048,
      "extraHosts": null,
      "dnsServers": null,
      "disableNetworking": null,
      "dnsSearchDomains": null,
      "portMappings": [
        {
                        "protocol": "tcp", 
                        "containerPort": 8983, 
                        "hostPort": 8983
          "hostPort": 8081,
          "containerPort": 8080,
          "protocol": "tcp"
        },
        {
                        "protocol": "tcp", 
                        "containerPort": 8984, 
                        "hostPort": 8984
          "hostPort": 8444,
          "containerPort": 8443,
          "protocol": "tcp"
        }
      ],
                "memory": 4096, 
      "hostname": null,
      "essential": true,
                "volumesFrom": []
            }, 
            {
                "environment": [], 
      "entryPoint": [],
      "mountPoints": [],
      "name": "index-node",
      "ulimits": null,
      "dockerSecurityOptions": null,
      "environment": [],
      "links": [
        "solr:esgf-solr"
      ],
                "mountPoints": [], 
      "workingDirectory": null,
      "readonlyRootFilesystem": null,
      "image": "esgfhub/esgf-index-node:1.2",
                "essential": true, 
      "command": null,
      "user": null,
      "dockerLabels": null,
      "logConfiguration": null,
      "cpu": 0,
      "privileged": null,
      "memoryReservation": null
    },
    {
      "volumesFrom": [
        {
          "readOnly": null,
          "sourceContainer": "config"
        }
      ],
      "memory": 2048,
      "extraHosts": null,
      "dnsServers": null,
      "disableNetworking": null,
      "dnsSearchDomains": null,
      "portMappings": [
        {
                        "protocol": "tcp", 
          "hostPort": 8080,
          "containerPort": 8080,
                        "hostPort": 8081
          "protocol": "tcp"
        },
        {
                        "protocol": "tcp", 
          "hostPort": 8443,
          "containerPort": 8443,
                        "hostPort": 8444
          "protocol": "tcp"
        }
      ],
                "entryPoint": [], 
                "memory": 2048, 
                "cpu": 0, 
                "volumesFrom": [
      "hostname": null,
      "essential": true,
      "entryPoint": null,
      "mountPoints": [
        {
                        "sourceContainer": "config"
                    }
                ]
          "containerPath": "/esg/content/thredds",
          "sourceVolume": "tds_data",
          "readOnly": null
        },
        {
          "containerPath": "/esg/data",
          "sourceVolume": "esgf_data",
          "readOnly": null
        },
        {
          "containerPath": "/usr/local/tomcat/webapps/thredds/WEB-INF/web.xml",
          "sourceVolume": "tds_web_xml",
          "readOnly": null
        }
      ],
      "name": "data-node",
      "ulimits": null,
      "dockerSecurityOptions": null,
      "environment": [
        {
          "name": "ESGF_HOSTNAME",
          "value": "airborne-elb1.dyndns.org"
        }
      ],
                "name": "data-node", 
      "links": [
        "postgres:esgf-postgres"
      ],
                "mountPoints": [
                    {
                        "sourceVolume": "tds_data", 
                        "containerPath": "/esg/content/thredds"
      "workingDirectory": null,
      "readonlyRootFilesystem": null,
      "image": "esgfhub/esgf-data-node:1.2",
      "command": null,
      "user": null,
      "dockerLabels": null,
      "logConfiguration": null,
      "cpu": 0,
      "privileged": null,
      "memoryReservation": null
    },
    {
                        "sourceVolume": "esgf_data", 
                        "containerPath": "/esg/data"
                    }, 
      "volumesFrom": [
        {
                        "sourceVolume": "tds_web_xml", 
                        "containerPath": "/usr/local/tomcat/webapps/thredds/WEB-INF/web.xml"
          "readOnly": null,
          "sourceContainer": "config"
        }
      ],
                "image": "esgfhub/esgf-data-node:1.2", 
                "essential": true, 
      "memory": 1024,
      "extraHosts": null,
      "dnsServers": null,
      "disableNetworking": null,
      "dnsSearchDomains": null,
      "portMappings": [
        {
                        "protocol": "tcp", 
          "hostPort": 8082,
          "containerPort": 8080,
                        "hostPort": 8080
          "protocol": "tcp"
        },
        {
                        "protocol": "tcp", 
          "hostPort": 8445,
          "containerPort": 8443,
                        "hostPort": 8443
          "protocol": "tcp"
        }
      ],
                "memory": 2048, 
                "cpu": 0, 
                "volumesFrom": [
                    {
                        "sourceContainer": "config"
                    }
                ]
            }, 
            {
                "environment": [], 
      "hostname": null,
      "essential": true,
      "entryPoint": null,
      "mountPoints": [],
      "name": "idp-node",
      "ulimits": null,
      "dockerSecurityOptions": null,
      "environment": [],
      "links": [
        "postgres:esgf-postgres"
      ],
                "mountPoints": [], 
      "workingDirectory": null,
      "readonlyRootFilesystem": null,
      "image": "esgfhub/esgf-idp-node:1.2",
                "essential": true, 
                "portMappings": [
                    {
                        "protocol": "tcp", 
                        "containerPort": 8080, 
                        "hostPort": 8082
                    }, 
                    {
                        "protocol": "tcp", 
                        "containerPort": 8443, 
                        "hostPort": 8445
      "command": null,
      "user": null,
      "dockerLabels": null,
      "logConfiguration": null,
      "cpu": 0,
      "privileged": null,
      "memoryReservation": null
    }
  ],
                "memory": 1024, 
                "cpu": 0, 
                "volumesFrom": [
  "placementConstraints": [
    {
                        "sourceContainer": "config"
                    }
                ]
      "expression": "attribute:esgf_type == master_node",
      "type": "memberOf"
    }
  ],
        "revision": 37
  "volumes": [
    {
      "host": {
        "sourcePath": "/home/ec2-user/esgf_config/httpd/certs"
      },
      "name": "esgf_certs"
    },
    {
      "host": {
        "sourcePath": "/home/ec2-user/esgf_config/grid-security/certificates"
      },
      "name": "esgf_grid_security_certs"
    },
    {
      "host": {
        "sourcePath": "/home/ec2-user/esgf_config/esg/config"
      },
      "name": "esgf_config"
    },
    {
      "host": {
        "sourcePath": "/home/ec2-user/esgf_config/httpd/conf"
      },
      "name": "esgf_httpd_conf"
    },
    {
      "host": {
        "sourcePath": "/home/ec2-user/esgf_config/esg/config/tomcat"
      },
      "name": "esgf_tomcat_config"
    },
    {
      "host": {
        "sourcePath": "/esgf_data/cog_data"
      },
      "name": "cog_data"
    },
    {
      "host": {
        "sourcePath": "/esgf_data/solr_data"
      },
      "name": "solr_data"
    },
    {
      "host": {
        "sourcePath": "/esgf_data/tds_data"
      },
      "name": "tds_data"
    },
    {
      "host": {
        "sourcePath": "/esgf_data/esgf_data"
      },
      "name": "esgf_data"
    },
    {
      "host": {
        "sourcePath": "/home/ec2-user/esgf_config/webapps/thredds/WEB-INF/web.xml"
      },
      "name": "tds_web_xml"
    }
  ],
  "family": "EsgfMasterNodeTask"
}