dashboard/config/demos.js

54 lines
1.3 KiB
JavaScript

import { RIO } from './types';
export default {
serviceFromGit: {
resource: RIO.SERVICE,
title: 'Create service from Dockerfile',
description: 'Learn how to use a Dockerfile in our Create Service.',
spec: {
replicas: 1,
build: {
repo: 'https://github.com/ibuildthecloud/rancher-demo.git',
revision: '8272e76852edcb94e1ce501eb555f9e47f892221',
branch: 'master',
dockerfile: 'Dockerfile'
},
ports: [
{
port: 80,
targetPort: 8080,
protocol: 'TCP',
expose: true,
},
]
}
},
stackFromGit: {
resource: RIO.STACK,
title: 'Create stack from Riofile',
description: 'Learn how to fill out Create Stack and deploy multiple resources using a Riofile.',
spec: {
build: {
repo: 'https://github.com/daxmc99/rio-demo.git',
revision: 'cb86f2ae38426001ed024db73864e482beedf5ad',
riofile: 'Riofile'
}
}
},
autoScaling: {
title: 'Auto-Scaling',
description: '',
createPath: null,
spec: null,
},
serviceMesh: {
title: 'Service Mesh',
description: '',
createPath: null,
spec: null,
}
};