import Util from "../../helpers/Util";

import AppTypes from "../../constants/AppTypes";
import AppStatus from "../../constants/AppStatus";

const appScheme = {
  cmd: null,
  constraints: [],
  acceptedResourceRoles: [],
  container: null,
  cpus: null,
  dependencies: [],
  deployments: [],
  env: {},
  executor: "",
  healthChecks: [],
  health: [],
  healthWeight: 0,
  id: null,
  instances: 0,
  labels: {},
  lastTaskFailure: null,
  status: AppStatus.SUSPENDED,
  mem: null,
  disk: null,
  ports: [0],
  uris: [],
  user: null,
  tasks: [],
  tasksRunning: 0,
  taskStats: {},
  type: AppTypes.CGROUP
};

export default Util.deepFreeze(appScheme);

import Util from "../../helpers/Util";

import AppTypes from "../../constants/AppTypes";
import AppStatus from "../../constants/AppStatus";

const appScheme = {
  cmd: null,
  constraints: [],
  acceptedResourceRoles: [],
  container: null,
  cpus: null,
  dependencies: [],
  deployments: [],
  env: {},
  executor: "",
  healthChecks: [],
  health: [],
  healthWeight: 0,
  id: null,
  instances: 0,
  labels: {},
  lastTaskFailure: null,
  status: AppStatus.SUSPENDED,
  mem: null,
  disk: null,
  // ports: [0],
  portDefinitions: [],
  uris: [],
  user: null,
  tasks: [],
  tasksRunning: 0,
  taskStats: {},
  type: AppTypes.CGROUP
};

export default Util.deepFreeze(appScheme);

Adjust app scheme with portDefinitions
Adjust app scheme with portDefinitions
