From bbec65837efee72f223140056e1b21d029e6b822 Mon Sep 17 00:00:00 2001 From: Matias Date: Tue, 9 Apr 2019 21:30:51 +0200 Subject: [PATCH] Updating module description and adding minio config --- client/src/views/Clone/Add/index.js | 4 ++-- client/src/views/Clone/History/index.js | 16 +++++++-------- client/src/views/Clone/List/index.js | 16 +++++++-------- client/src/views/Home.js | 27 +++++++++++++++++-------- server/src/kubernetes/createClone.js | 22 ++++++++++++++++++++ 5 files changed, 59 insertions(+), 26 deletions(-) diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index 2bacda39d..c8448728a 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -72,7 +72,7 @@ class AddClone extends Component { size='big' title='Create a bot clone' text="Please login to create a bot clone." - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else return ( @@ -81,7 +81,7 @@ class AddClone extends Component { size='medium' title='Create a bot clone' text='Create a bot clone here.' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' />
diff --git a/client/src/views/Clone/History/index.js b/client/src/views/Clone/History/index.js index 4ccaed243..170c34094 100644 --- a/client/src/views/Clone/History/index.js +++ b/client/src/views/Clone/History/index.js @@ -23,7 +23,7 @@ class HistoryClones extends Component { size='big' title='Bot Clone History' text='Loading your Bot Clones...' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else if (data.operations_HistoryClones && data.operations_HistoryClones.length > 0) { @@ -33,7 +33,7 @@ class HistoryClones extends Component { size='medium' title='Bot Clone History' text='All your Bot Clones are here.' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' />
@@ -53,7 +53,7 @@ class HistoryClones extends Component { size='big' title='Bot Clone History' text='Please login to gain access to your Bot Clones.' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else { @@ -62,7 +62,7 @@ class HistoryClones extends Component { size='big' title='Bot Clone History' text="You don't have any Clone yet. Once you create one you will find it here." - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } @@ -75,7 +75,7 @@ class HistoryClones extends Component { size='big' title='Manage your Bot Clones' text='Loading Bot Clones...' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else if (data.operations_HistoryClones && data.operations_HistoryClones.length > 0) { @@ -85,7 +85,7 @@ class HistoryClones extends Component { size='big' title='Manage your Bot Clones' text='Loading Bot Clones...' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' />
@@ -105,7 +105,7 @@ class HistoryClones extends Component { size='big' title='No Bot Clones to display' text='Please Login to access your Bot Clones.' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else { @@ -115,7 +115,7 @@ class HistoryClones extends Component { size='big' title='No Bot Clones to display' text="You don't have any Bot Clone yet. After you create a new Clone, it will be listed here." - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } diff --git a/client/src/views/Clone/List/index.js b/client/src/views/Clone/List/index.js index 6df628fa4..4cf60b48b 100644 --- a/client/src/views/Clone/List/index.js +++ b/client/src/views/Clone/List/index.js @@ -23,7 +23,7 @@ class BrowseClones extends Component { size='big' title='Your Bot Clones' text='Loading your Bot Clones...' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else if (data.operations_Clones && data.operations_Clones.length > 0) { @@ -33,7 +33,7 @@ class BrowseClones extends Component { size='medium' title='Your Bot Clones' text='All your Bot Clones are here.' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' />
@@ -53,7 +53,7 @@ class BrowseClones extends Component { size='big' title='Your Bot Clones' text='Please login to gain access to your Bot Clones.' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else { @@ -62,7 +62,7 @@ class BrowseClones extends Component { size='big' title='Your Bot Clones' text="You don't have any Bot Clone yet. Once you create one you will find it here." - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } @@ -75,7 +75,7 @@ class BrowseClones extends Component { size='big' title='Manage your Bot Clones' text='Loading Bot Clones...' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else if (data.operations_Clones && data.operations_Clones.length > 0) { @@ -85,7 +85,7 @@ class BrowseClones extends Component { size='big' title='Manage your Bot Clones' text='Loading Bot Clones...' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' />
@@ -105,7 +105,7 @@ class BrowseClones extends Component { size='big' title='No Bot Clones to display' text='Please Login to access your Bot Clones.' - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } else { @@ -115,7 +115,7 @@ class BrowseClones extends Component { size='big' title='No Bot Clones to display' text="You don't have any Bot Clone yet. After you create a new Clone, it will be listed here." - backgroundUrl='https://superalgos.org/img/photos/ecosystem.jpg' + backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg' /> ) } diff --git a/client/src/views/Home.js b/client/src/views/Home.js index 02e13a7cf..90892a4c8 100644 --- a/client/src/views/Home.js +++ b/client/src/views/Home.js @@ -4,31 +4,42 @@ import TopBar from './BannerTopBar' class Home extends Component { - render () { + render() { return (
- Welcome to the Clones Module! + Clones Module - Responsible for manage bot clones. + Creating and managing bot clones
- The Clones module allows you to create instances of your bots - that will be executed on a virtual machine. + The clones module allows creating and managing the execution of bot’s code. + It also stores the metadata information of the clones and handles the interaction + with the orchestration software. + + + It integrates with other system modules to enable secure and encapsulated execution of the + bots. On the clone creation process the encapsulation is achieved by deploying a Clone Executor + Image on a Kubernetes container.
- + + Bots are executed using the common framework called Clone Executor which provides support for commonly used resources. + + + When creating a new clone, specific execution parameters are selected, for example the exchange and the time period that the bot will operate in. +
diff --git a/server/src/kubernetes/createClone.js b/server/src/kubernetes/createClone.js index 7a748540c..00bbcd394 100644 --- a/server/src/kubernetes/createClone.js +++ b/server/src/kubernetes/createClone.js @@ -47,6 +47,28 @@ const createClone = async (clone) => { 'value': process.env.AUTH_AUDIENCE }) + // MINIO + env.push({ + 'name': 'MINIO_END_POINT', + 'value': process.env.MINIO_END_POINT + }) + env.push({ + 'name': 'MINIO_PORT', + 'value': process.env.MINIO_PORT + }) + env.push({ + 'name': 'MINIO_USE_SSL', + 'value': process.env.MINIO_USE_SSL + }) + env.push({ + 'name': 'MINIO_ACCESS_KEY', + 'value': process.env.MINIO_ACCESS_KEY + }) + env.push({ + 'name': 'MINIO_SECRET_KEY', + 'value': process.env.MINIO_SECRET_KEY + }) + logger.debug('createClone General Financial Being Configuration.') env.push({ 'name': 'DEV_TEAM',