-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
1348 lines (1204 loc) · 64 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="EC3 EGI LToS page">
<meta name="author" content="Amanda Calatrava">
<title>EC3 - Elastic Cloud Computing Cluster</title>
<link rel="shortcut icon" href="img/ec3-small.png">
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/agency.css" rel="stylesheet">
<!--wizard plugin -->
<!--<link href="bootstrap-wizard/bootstrap-wizard.css" rel="stylesheet"/>
<link href="bootstrap/bootstrap.min.css" rel="stylesheet" />-->
<link href="src/bootstrap-wizard.css" rel="stylesheet" />
<link href="chosen/chosen.css" rel="stylesheet" />
<style type="text/css">
.wizard-modal p {
margin: 0 0 10px;
padding: 0;
}
#wizard-ns-detail-servers, .wizard-additional-servers {
font-size: 12px;
margin-top: 10px;
margin-left: 15px;
}
#wizard-ns-detail-servers > li, .wizard-additional-servers li {
line-height: 20px;
list-style-type: none;
}
#wizard-ns-detail-servers > li > img {
padding-right: 5px;
}
.wizard-modal .chzn-container .chzn-results {
max-height: 150px;
}
.wizard-addl-subsection {
margin-bottom: 40px;
}
.create-server-agent-key {
margin-left: 15px;
width: 90%;
}
</style>
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="font-mfizz/font-mfizz.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
</head>
<body id="page-top" class="index">
<!--add analytics tracking-->
<?php include_once("analyticstracking.php") ?>
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top">
<!--<div class="container">
<div class="navbar-right page-scroll">
<button id="logout" class="navbar-welcome navbar-right page-scroll" type="button" style="color:#fed136;"> Log out </button>
<p class="navbar-welcome navbar-right page-scroll"> Welcome ATM user! | </p>
</div>
</div>-->
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand page-scroll" href="#page-top">EC3: Elastic Cloud Computing Cluster</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="hidden">
<a href="#page-top"></a>
</li>
<li>
<a class="page-scroll" href="#features">Features</a>
</li>
<li>
<a class="page-scroll" href="#services">Learn More</a>
</li>
<li>
<a class="page-scroll" href="#try">Deploy!</a>
</li>
<li>
<a class="page-scroll" href="#contact">Contact</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<!-- Header -->
<header>
<div class="container">
<div class="intro-text">
<div class="intro-lead-in">Elastic Clusters as a Service</div>
<div class="intro-heading">Deploy Virtual Elastic Clusters on the Cloud</div>
<a href="#try" class="page-scroll btn btn-xl">Deploy your cluster in Fogbow!</a>
<a href="#services" class="page-scroll btn btn-xl">Learn more about EC3</a>
</div>
</div>
</header>
<!-- Features Section class="bg-orange" -->
<section id="features" class="bg-darkest-gray">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">EC3 main features</h2>
</br>
</div>
</div>
<div class="row text-center">
<div class="col-md-4">
<span class="fa-stack fa-4x">
<!--<i class="fa fa-terminal fa-stack-1x fa-inverse"></i>-->
<i class="icon-shell" style="color:white"></i>
</span>
<h4 class="service-heading text-muted-contact">Web and CLI interfaces</h4>
<p class="text-muted">Unleash the power of EC3 by using the Command Line Interface, available at the <a href="https://github.com/grycap/ec3" target="_blank">GitHub</a> repository.</p>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
<i class="fa fa-bar-chart fa-stack-1x fa-inverse"></i>
</span>
<h4 class="service-heading text-muted-contact">Self-Managed Elasticity</h4>
<p class="text-muted">Elasticity is powered by <a href="http://www.grycap.upv.es/clues/eng/index.php" target="_blank">CLUES</a> and managed by the cluster itself. No external monitoring required.</p>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
<i class="fa fa-sellsy fa-stack-1x fa-inverse"></i>
</span>
<h4 class="service-heading text-muted-contact">Heterogeneous clusters</h4>
<p class="text-muted">Deploy clusters that are composed by different types of working nodes.</p>
</div>
</div>
<div class="row text-center">
<div class="col-md-4">
<span class="fa-stack fa-4x">
<i class="fa fa-lock fa-stack-1x fa-inverse"></i>
</span>
<h4 class="service-heading text-muted-contact">Trust-Aware</h4>
<p class="text-muted">Ensure that your data is safe in the infrastructure, thanks to the developments in the <a href="https://www.atmosphere-eubrazil.eu/" target="_blank">ATMOSPHERE</a> project.</p>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
<i class="fa fa-cloud fa-stack-1x fa-inverse"></i>
</span>
<h4 class="service-heading text-muted-contact">Cloud Agnostic</h4>
<p class="text-muted">Supercharged with the <a href="http://www.grycap.upv.es/im" target="_blank">Infrastructure Manager (IM)</a> to deploy customized clusters on your favourite Clouds.</p>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
<!--<i class="fa fa-file-code-o fa-stack-1x fa-inverse"></i>-->
<i class="icon-python" style="color:white"></i>
</span>
<h4 class="service-heading text-muted-contact">Python-powered strength</h4>
<p class="text-muted">Proudly developed in <a href="https://www.python.org/" target="_blank">Python</a> and distributed as open-source under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache 2.0 License</a>.</p>
</div>
</div>
</div>
</section>
<!-- More info Section -->
<section id="services">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Deploy a virtual elastic cluster in minutes</h2>
<h3 class="section-subheading text-muted">No registration is required. You only need valid user credentials for the Fogbow Cloud. <br> This service is offered at no additional cost thanks to the ATMOSPHERE project.</h3>
</div>
</div>
<div class="row text-center">
<div class="col-md-4">
<span class="fa-stack fa-4x">
<!--<a href="doc/index.html">-->
<a href="https://ec3.readthedocs.io/en/atmosphere/" target="_blank">
<i class="fa fa-circle fa-stack-2x text-primary"></i>
<i class="fa fa-book fa-stack-1x fa-inverse"></i>
</a>
</span>
<h4 class="service-heading">EC3 Documentation</h4>
<p class="text-muted">Check the docs to understand how the cluster will be provisioned.</p>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
<a href="https://github.com/grycap/ec3">
<i class="fa fa-circle fa-stack-2x text-primary"></i>
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
</a>
</span>
<h4 class="service-heading">EC3 @ GitHub </h4>
<p class="text-muted">Fully open-source (Apache 2 License). Contributions are very much welcome. </p>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
<a href="https://www.youtube.com/channel/UCQD6RJBs57Giz4Xm8dhDczQ">
<i class="fa fa-circle fa-stack-2x text-primary"></i>
<i class="fa fa-youtube fa-stack-1x fa-inverse"></i>
</a>
</span>
<h4 class="service-heading">EC3 @ YouTube</h4>
<p class="text-muted">Videotutorials with EC3aaS and EC3 CLI. Stay tuned for upcoming tutorials.</p>
</div>
</div>
</div>
</section>
<!-- Provider Section -->
<section id="try" class="bg-darkest-gray">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Deploy and Manage your virtual clusters with EC3</h2>
<h3 class="section-subheading text-muted-contact">You will need to provide valid credentials for the Fogbow Cloud provider. Not sure if this is safe? <a <a href="http://ec3.readthedocs.org/en/devel/ec3.html#authorization-file">Check the docs.</a>
<br>
<!--Wanted to deploy a hybrid cluster? You can do it with the <a href="https://github.com/grycap/ec3">CLI</a>.-->
</h3>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="team-member">
<!--avisar a analytics -->
<button id="open-wizard-deploy" class="btn btn-primary btn-fogbow" onclick="ga('send','event','Providers','Fogbow')"></button>
<h4 class="provider">Deploy your cluster</h4>
<p class="text-muted-contact">In the Fogbow Cloud provided by ATMOSPHERE</p>
</div>
</div>
<div class="col-sm-6">
<div class="team-member">
<button id="open-wizard-delete" class="btn btn-primary btn-delete"></button>
<h4 class="provider">Delete your cluster</h4>
<p class="text-muted-contact">And liberate the resources</p>
</div>
</div>
<!--<div class="col-sm-6">
<div class="team-member">
<button id="myBtn" class="btn btn-primary btn-list"></button>
<h4 class="provider">Manage your deployed clusters</h4>
<p class="text-muted-contact">And get info about them</p>
</div>
</div>-->
</div>
</div>
</section>
<!-- Organizations Aside -->
<aside class="clients">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-6">
<a href="https://ec.europa.eu/">
<img src="img/logos/EU.jpg" class="img-responsive img-centered" alt="">
</a>
</div>
<div class="col-md-4 col-sm-6">
<a href="http://www.brasil.gov.br/">
<img src="img/logos/br.png" class="img-responsive img-centered" alt="">
</a>
</div>
<div class="col-md-4 col-sm-6">
<a href="http://www.upv.es/index-es.html">
<img src="img/logos/upvnew.png" class="img-responsive img-centered" alt="">
</a>
</div>
</div>
</div>
</aside>
<!-- Contact Section -->
<section id="contact">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Contact Us</h2>
<h3 class="section-subheading-contact text-muted-contact">In case of problems, please send a request for support at: <a href="mailto:[email protected]">[email protected]</a> </h3>
<h3 class="section-subheading-contact text-muted-contact">Anytime the user will be notified by e-mail about the status of his/her request.</h3>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<hr>
</div>
</div>
<a href="terms.html">Terms of Service</a>
</div>
<div class="col-md-12">
<span class="copyright"> EC3 is a service provided by <a href="http://www.grycap.upv.es">GRyCAP-I3M-UPV</a>. This portal is maintained by the <a href="https://www.atmosphere-eubrazil.eu/">ATMOSPHERE</a> project. Copyright © 2018, <a href="http://www.upv.es">Universitat Politècnica de València.</a>
<br>
</span>
</div>
<div class="col-md-12">
<p>
Tel: (+34) 963 87 70 07 Ext. 88254 <br />
Camino de Vera Road, Building 8B, Door N, 1st Floor, <br />
Valencia 46022, Spain
</p>
</div>
<!--<img src="img/EGI_Logo.png" border="0" width="30" align="bottom"/> EC3 is an EGI service provided by GRyCAP UPV-->
</div>
</div>
</footer>
<!-- Wizard Fogbow section -->
<div class="wizard" id="fogbow-wizard" name="fogbow-wizard" data-title="Configure your cluster">
<!-- Step 1 Software packages -->
<div class="wizard-card wizard-card-overlay" data-cardname="swpkg-fogbow">
<h3>Software Packages</h3>
<!-- <p>
What type of cluster do you want to deploy?
</p>
</br>
<div class="form-group" style="height:120px;">
<div class="col-sm-8" style="width:350px; height:120px;" name="clusterfogbow" id="clusterfogbow">
<select name="cluster-fogbow" id="cluster-fogbow" data-placeholder="--Select one--" style="width:350px;" class="chzn-select form-control" data-validate="drop_down_validation">
<option value=""></option>
<option value="kubernetes">Kubernetes + Jupyter notebook</option>
<option value="lemonade">Kubernetes + LEMONADE</option>
<option value="lemonadegpu">Kubernetes + LEMONADE + GPUs</option>
<option value="kubernetesgpu">Kubernetes + Jupyter notebook + GPUs</option>
<option value="kubernetesvallum">Kubernetes + LEMONADE + Vallum</option>
<option value="kubernetesgpuvallum">Kubernetes + LEMONADE + GPUs + Vallum</option>
</select>
</div>
</div> -->
<div class="wizard-input-section">
<p>
Please choose the software packages you'd like EC3 to
install in your cluster. They will be automatically installed and configured.
</p>
<div class="fogbow col-sm-12" style="margin-bottom:15px;">
<p style="margin-bottom:0px; margin-top:5px;">Cluster utilities:</p>
<div class="row">
<div class="col-sm-4"><input type="checkbox" value="lemonade" name="lemonade" id="lemonade" title="Configure a shared file system"/> LEMONADE </div>
<div class="col-sm-4"><input type="checkbox" value="tma" name="tma" id="tma" title="An open-source tool to deploy applications inside software containers"/> TMA </div>
<div class="col-sm-4"><input type="checkbox" value="vallum" name="vallum" id="vallum" title="Application that implements virtual private network (VPN) techniques"/> Vallum </div>
</div>
<div class="row">
<div class="col-sm-4"><input type="checkbox" value="paf" name="paf" id="paf" title="A program to generate two- and three-dimensional plots"/> PAF </div>
<div class="col-sm-4"><input type="checkbox" value="jupyter" name="jupyter" id="jupyter" title="An open-source web server and servlet container"/> Jupyter </div>
</div>
</div>
</div>
<div class="wizard-input-section">
<p>
Optionally you can provide an URL to your YAML files to be deployed in Kubernetes:
</p>
<div class="form-group" style="height:40px;">
<div class="col-sm-10">
<input type="text" class="form-control" id="github-fogbow" name="github-fogbow" placeholder="Github URL of the repository">
</div>
</div>
</div>
<div class="wizard-input-section">
<div class="form-group">
<div class="col-sm-5">
<input type="text" class="form-control" id="folder-fogbow" name="folder-fogbow" placeholder="Folder" data-validate="">
</div>
<div class="col-sm-5">
<input type="text" class="form-control" id="branch-fogbow" name="branch-fogbow" placeholder="Branch/version" data-validate="">
</div>
</div>
</div>
<!--<p style="padding-top:180px; padding-right:160px; margin-top:55px;">Is your favourite software not available? <a href="mailto:[email protected]?Subject=[EC3]%20Unsupported%20Software" target="_top">Let us know!</a></p>-->
</div>
<!-- Step 2 Cloud provider credentials -->
<div class="wizard-card" data-cardname="provider-fogbow">
<h3>Provider Account</h3>
<div class="wizard-input-section">
<p>
Fogbow Username:
</p>
<div class="form-group">
<div class="col-sm-8">
<input type="text" class="form-control" id="user-fogbow" name="user-fogbow" placeholder="Your Fogbow user" data-validate="validateValue">
</div>
</div>
</div>
<div class="wizard-input-section">
<p>
Fogbow Password:
</p>
<div class="form-group">
<div class="col-sm-8">
<input type="password" class="form-control" id="pass-fogbow" name="pass-fogbow" placeholder="Your Fogbow password" data-validate="validateValue">
</div>
</div>
</div>
<!--<div class="wizard-input-section">
<p>
Domain ID:
</p>
<div class="form-group">
<div class="col-sm-8">
<input type="text" class="form-control" id="domain-fogbow" name="domain-fogbow" placeholder="domain" data-validate="validateValue">
</div>
</div>
</div>-->
<!--<div class="wizard-input-section">
<p>
Project name:
</p>
<div class="form-group">
<div class="col-sm-8">
<input type="text" class="form-control" id="project-fogbow" name="project-fogbow" placeholder="projectid" data-validate="validateValue">
</div>
</div>
</div>-->
</div>
<!-- Step 3 - Operating System -->
<!--<div class="wizard-card wizard-card-overlay" data-cardname="os-fogbow">
<h3>Operating System</h3>
<div class="wizard-input-section">
<p>
What OS distribution do you like your cluster to have?
</p>
</br>
<div class="form-group" style="height:250px;">
<div class="col-sm-6" style="width:350px; height:250px;" name="vmifogbow" id="vmifogbow">
<p> Loading options from the provider... </p>
</div>
</div>
</div>
</div>-->
<!-- Step 4 instance characteristics -->
<div class="wizard-card wizard-card-overlay" data-cardname="instance-details-fogbow">
<h3>Instance details</h3>
<div class="wizard-input-section">
<p>
Frontend CPU and RAM memory:
</p>
<select name="front-details" id="front-details" data-placeholder="--Select one--" style="width:350px;" class="form-control" data-validate="drop_down_validation">
<option value=""></option>
<option value="2;4096">2 CPU, 4GB RAM</option>
<option value="2;8192">2 CPU, 8GB RAM</option>
<option value="4;8192">4 CPU, 8GB RAM</option>
</select>
<!--<div class="form-group">
<div class="col-sm-5">
<input type="text" class="form-control" id="front-cpu-fogbow" name="front-cpu-fogbow" placeholder="frontend CPU" data-validate="validateNumber">
</div>
<div class="col-sm-5">
<input type="text" class="form-control" id="front-mem-fogbow" name="front-mem-fogbow" placeholder="frontend memory" data-validate="validateNumber">
</div>
</div>-->
</div>
</br>
<div class="wizard-input-section">
<p>
Working node type 1 CPU/GPU and RAM memory:
</p>
<select name="wn1-details" id="wn1-details" data-placeholder="--Select one--" style="width:350px;" class="form-control" data-validate="drop_down_validation">
<option value=""></option>
<option value="2;4096">2 CPU, 4GB RAM</option>
<option value="2;8192">2 CPU, 8GB RAM</option>
<option value="4;8192">4 CPU, 8GB RAM</option>
<option value="1;4096;g">1 GPU, 4GB RAM</option>
<option value="2;4096;g">2 GPU, 4GB RAM</option>
<option value="4;8192;g">4 GPU, 8GB RAM</option>
</select>
<!--<div class="form-group">
<div class="col-sm-4">
<input type="text" class="form-control" id="wn-cpu-fogbow" name="wn-cpu-fogbow" placeholder="WN CPU/GPU" data-validate="validateNumber">
</div>
<div class="col-sm-4">
<input type="text" class="form-control" id="wn-mem-fogbow" name="wn-mem-fogbow" placeholder="WN memory" data-validate="validateNumber">
</div>
<div class="col-sm-4">
<input type="checkbox" value="sgx" name="sgx" id="sgx" title="Check this box if you need nodes with SGX support"/> SGX
</div>
</div>-->
</div>
</br>
<div class="wizard-input-section">
<p>
Working node type 2 CPU/GPU and RAM memory:
</p>
<!--<div class="form-group">
<div class="col-sm-4">
<input type="text" class="form-control" id="wn-cpu-fogbow" name="wn-cpu-fogbow" placeholder="WN CPU/GPU" data-validate="validateNumber">
</div>
<div class="col-sm-4">
<input type="text" class="form-control" id="wn-mem-fogbow" name="wn-mem-fogbow" placeholder="WN memory" data-validate="validateNumber">
</div>
</div>-->
<select name="wn2-details" id="wn2-details" data-placeholder="--Select one--" style="width:350px;" class="form-control" data-validate="drop_down_validation">
<option value=""></option>
<option value="2;4096">2 CPU, 4GB RAM</option>
<option value="2;8192">2 CPU, 8GB RAM</option>
<option value="4;8192">4 CPU, 8GB RAM</option>
<option value="2;4096;s">2 CPU, 4GB RAM, SGX support</option>
<option value="4;8192;s">4 CPU, 8GB RAM, SGX support</option>
</select>
</div>
</div>
<!-- Step 5 Local Resource Management System -->
<!--<div class="wizard-card wizard-card-overlay" data-cardname="lrms-fogbow">
<h3>LRMS Selection</h3>
<div class="wizard-input-section">
<p>
Please choose the LRMS (Local Resource Management System) of your cluster
</p>
<select name="lrms-fogbow" id="lrms-fogbow" data-placeholder="--Select one--" style="width:350px;" class="chzn-select form-control" data-validate="drop_down_validation">
<option value=""></option>
<option>SLURM</option>
<option>Torque</option>
<option>SGE</option>
<option>Mesos</option>
<option>Kubernetes</option>
</select>
</div>
</div>-->
<!-- Step 6 Cluster's size -->
<div class="wizard-card wizard-card-overlay" data-cardname="size-fogbow">
<h3>Cluster's size & Name</h3>
<div class="wizard-input-section">
<p>
Select the maximum number of nodes (type 1 and type 2) of your cluster:
</p>
<div class="form-group">
<div class="col-sm-7">
<p> Number of nodes of type 1:</p>
</div>
<div class="col-sm-5">
<select class="form-control" id="nodes-type1" name="nodes-type1" placeholder="--Type 1 working node--" data-validate="drop_down_validation">
<option value=""></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<div class="col-sm-7">
<p> Number of nodes of type 2:</p>
</div>
<div class="col-sm-5">
<select type="text" class="form-control" id="nodes-type2" name="nodes-type2" data-placeholder="--Type 2 working node--" data-validate="drop_down_validation">
<option value=""></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<div class="col-sm-12">
</br>
<p style="font-size:12px"> <em>
Note that EC3 will initially provision only the front-end node and it will dynamically deploy additional working nodes as necessary. </em>
</p>
</div>
<div class="col-sm-12">
</br>
<p> Cluster name (must be unique): </p>
</div>
<div class="col-sm-8">
<input type="text" class="form-control" id="cluster-name" name="cluster-name" placeholder="Cluster name" data-validate="validateValue">
</div>
</div>
</div>
</div>
<!-- Step 7 Resume and launch -->
<div class="wizard-card" data-cardname="resume-fogbow" data-onSelected="showDetails_Fogbow">
<h3>Resume and launch</h3>
<div>
<p>These are the details of your cluster: </p>
</div>
<div class="wizard-resume" > <!--onshow="checkSession()"> -->
</div>
<div class="wizard-error">
<div class="alert alert-error">
<strong>There was a problem</strong> with your submission.
Please correct the errors and re-submit.
</br>
</br>
<div class="wizard-ip"></div>
</br>
<a class="btn btn-default create-another-server">Try again</a>
<a class="btn btn-primary im-done">Close the wizard</a>
</div>
</div>
<div class="wizard-failure">
<div class="alert alert-error">
<strong>There was a problem</strong> submitting the form.
Please try again in a minute.
</br>
<a class="btn btn-default create-another-server">Done</a>
</div>
</div>
<div class="wizard-success">
<div class="alert alert-success">
Cluster Front-end deployed <strong>Successfully!</strong>
</div>
<p> You can now connect to the front-end via SSH using the provided IP. The data of your cluster is: </p>
<div class="wizard-ip">
<p><strong>aqui.va.la.IP</strong></p>
</div>
</br>
<p> Notice that the cluster might still be configuring! <a href="http://ec3.readthedocs.org/en/devel/faq.html#ec3aas-webpage" target="_blank">More info.</a> </p>
</br>
<a class="btn btn-default create-another-server" onclick="reload()">Create another cluster</a>
<span style="padding:0 10px">or</span>
<a class="btn btn-success im-done" onclick="reload()">Done</a>
</div>
</div>
</div>
<!-- End of wizard Fogbow section -->
<!-- Wizard Delete section -->
<div class="wizard" id="delete-wizard" name="delete-wizard" data-title="Destroy your cluster">
<!-- Step 1 - obtain the name of the cluster -->
<div class="wizard-card" data-cardname="cluster-id" data-onValidated="setClusterName">
<h3>Destroy the cluster</h3>
<div class="wizard-input-section">
<p> Please, introduce the unique name of the cluster provided in the deployment process and the user credentials used: </p>
<div class="form-group">
<div class="col-sm-10">
<input type="text" class="form-control" id="clustername-delete" name="clustername-delete" placeholder="Cluster name" data-validate="validateValue">
</div>
</div>
</div>
<div class="wizard-input-section">
<p>
Username:
</p>
<div class="form-group">
<div class="col-sm-10">
<input type="text" class="form-control" id="user-fogbow-delete" name="user-fogbow-delete" placeholder="Your Fogbow user" data-validate="validateValue">
</div>
</div>
</div>
<div class="wizard-input-section">
<p>
Password:
</p>
<div class="form-group">
<div class="col-sm-10">
<input type="password" class="form-control" id="pass-fogbow-delete" name="pass-fogbow-delete" placeholder="Your Fogbow password" data-validate="validateValue">
</div>
</div>
</div>
<!--<div class="wizard-input-section">
<p>
Domain ID:
</p>
<div class="form-group">
<div class="col-sm-10">
<input type="text" class="form-control" id="domain-fogbow-delete" name="domain-fogbow-delete" placeholder="domain" data-validate="validateValue">
</div>
</div>
</div>-->
<!--<div class="wizard-input-section">
<p>
Project name:
</p>
<div class="form-group">
<div class="col-sm-10">
<input type="text" class="form-control" id="project-fogbow-delete" name="project-fogbow-delete" placeholder="projectid" data-validate="validateValue">
</div>
</div>
</div>-->
<div class="wizard-error">
<div class="alert alert-error">
<strong>There was a problem</strong> deleting your cluster.
Please, revise the cluster name and/or the token and try again or shutdown your virtual machines manually.
</br>
</br>
<div class="wizard-delete"></div>
</br>
<a class="btn btn-default create-another-server">Try again</a>
<a class="btn btn-primary im-done">Close the wizard</a>
</div>
</div>
<div class="wizard-failure">
<div class="alert alert-error">
<strong>There was a problem</strong> submitting the form.
Please try again in a minute.
</br>
<a class="btn btn-primary im-done">Close the wizard</a>
</div>
</div>
<div class="wizard-success">
<div class="alert alert-success">
Cluster <strong class="create-cluster-name"></strong> deleted <strong>successfully!</strong>
</div>
</br>
</br>
<a class="btn btn-default create-another-server">Delete another cluster</a>
<span style="padding:0 10px">or</span>
<a class="btn btn-primary im-done">Close the wizard</a>
</div>
</div>
</div>
<!-- End of wizard Delete section -->
<!-- The List Modal -->
<div id="myModal" class="modallist">
<!-- Modal content -->
<div class="modallist-content">
<!-- Header del Modal -->
<div class="modallist-header">
<span class="close">×</span>
<h2>Details of your deployed clusters</h2>
</div>
<!-- Tabla -->
<div class="wizard-list" style="overflow-x:auto;">
<p> Loading... </p>
</div>
<!-- Footer del Modal -->
<div class="modallist-footer">
</div>
<!--Fin del modal content -->
</div>
<!--Fin del modal-->
</div>
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="chosen/chosen.jquery.js"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/prettify.js" type="text/javascript"></script>
<script src="src/bootstrap-wizard.js" type="text/javascript"></script>
<!-- Wizard plugin Fogbow -->
<script type="text/javascript">
$(document).ready(function() {
$.fn.wizard.logging = true;
var wizard = $('#fogbow-wizard').wizard({
keyboard : false,
contentHeight : 520,
contentWidth : 700,
backdrop: 'static',
submitUrl: "ec3-server-process.php"
});
$(".chzn-select").chosen();
wizard.on('closed', function() {
wizard.reset();
});
wizard.on("reset", function() {
wizard.modal.find(':input').val('').removeAttr('disabled');
wizard.modal.find('input:checkbox').val('').removeAttr('checked');
wizard.modal.find('.form-group').removeClass('has-error').removeClass('has-succes');
wizard.modal.find('.chzn-select').val('').trigger("liszt:updated");
});
wizard.on("submit", function(wizard) {
//avisar de evento a analytics
ga('send','event','Submit','Fogbow');
$.ajax({
type: "POST",
url: wizard.args.submitUrl,
data: "cloud=fogbow&" + wizard.serialize(),
dataType: "json",
success: function(response, status, data){
wizard.submitSuccess(); // displays the success card
var obj = jQuery.parseJSON(JSON.stringify(response));
var name = obj.name;
//De momento devolvemos el nombre completo, cuando tengamos gestion de usuarios se puede omitir el ID
/*var index = obj.name.indexOf("__");
if (index > -1){
name = obj.name.substring(0, obj.name.indexOf("__"));
}*/
var retValue = "<div> Cluster name: <b> " + name + " </b></div> <div> Frontend IP: <b> " + obj.ip + " </b></div> <div> Username: <b> " + obj.username + " </b></div>";
retValue += "<div> Secret key: <textarea id='private_key_value' name='private_key_value' style='display:none;'>" + decodeURIComponent(obj.secretkey) + "</textarea>" +
"<a class='download' href='javascript:download(\"private_key_value\", \"key.pem\");'>Download</a> </div>";
$('.wizard-ip').html(retValue);
wizard.hideButtons(); // hides the next and back buttons
wizard.updateProgressBar(0); // sets the progress meter to 0
},
error: function(response, status, error){
var obj = jQuery.parseJSON(JSON.stringify(response));
var retValue = "<div> <b> " + obj.responseText + " </b></div> ";
//retValue = "<div> <b> " + JSON.stringify(response) + " </b></div> ";
//retValue += "<div> <b> " + JSON.stringify(status) + " </b></div> ";
//retValue += "<div> <b> " + JSON.stringify(error) + " </b></div> ";
$('.wizard-ip').html(retValue);
//$('.wizard-ip').append(retValue).hide().show();
wizard.submitError(); // display the error card
wizard.hideButtons(); // hides the next and back buttons
}
});
});
wizard.el.find(".wizard-success .im-done").click(function() {
wizard.hide();
setTimeout(function() {
wizard.reset();
}, 2);
});
wizard.el.find(".wizard-success .create-another-server").click(function() {
wizard.reset();
});
wizard.el.find(".wizard-error .create-another-server").click(function() {
wizard.reset();
});
wizard.el.find(".wizard-error .im-done").click(function() {
wizard.hide();
setTimeout(function() {
wizard.reset();
}, 2);
});
wizard.el.find(".wizard-failure .create-another-server").click(function() {
wizard.hide();
setTimeout(function() {
wizard.reset();
}, 250);
});
$(".wizard-group-list").click(function() {
alert("Disabled for demo.");
});
$('#open-wizard-deploy').click(function(e) {
e.preventDefault();
wizard.show();
});
});
function download(id, filename) {
var dataToDownload = document.getElementById(id).value;
var textFileAsBlob = new Blob([dataToDownload], {type:'text/plain'});
var link = document.createElement("a");
link.download = filename;
window.URL = window.URL || window.webkitURL;
link.href = window.URL.createObjectURL(textFileAsBlob);
link.style.display = "none";
document.body.appendChild(link);
link.click();
}
function validateValue(el) {
var name = el.val();
var retValue = {};
if (name == "") {
retValue.status = false;
retValue.msg = "Please enter a value";
} else {
retValue.status = true;
}
return retValue;
};
function validateNumber(el) {
var number = el.val();
var retValue = {};
if (number == "" || !$.isNumeric(number)) {
retValue.status = false;
retValue.msg = "Please enter an integer value";
} else {
retValue.status = true;
}
return retValue;
};
// We call the Fogbow API script to obtain the list of images
$.each(["show", "toggle", "toggleClass", "addClass", "removeClass"], function(){
var _oldFn = $.fn[this];
$.fn[this] = function(){
var hidden = this.find(":hidden").add(this.filter(":hidden"));
var result = _oldFn.apply(this, arguments);
hidden.filter(":visible").each(function(){
$(this).triggerHandler("show"); //No bubbling
});
return result;
}
});
$('#vmifogbow').bind("show", function() {
//var post_data = "&user=" + $('#user-fogbow').val() + "&pass=" + $('#pass-fogbow').val() + "&domain=" + $('#domain-fogbow').val() + "&project=" + $('#project-fogbow').val();
var post_data = "&user=" + $('#user-fogbow').val() + "&pass=" + $('#pass-fogbow').val() + "&domain=d" + "&project=p";
//Send cloud provider selected to the server to obtain OS
$.ajax({
method: "POST",
url: "print_select_os.php",
data: post_data,
success : function(text)
{
$('#vmifogbow').html(text);
}
});
});
var chk1 = $("input[type='checkbox'][value='paf']");
var chk2 = $("input[type='checkbox'][value='lemonade']");
chk1.on('change', function(){
chk2.prop('checked',this.checked);
});
function drop_down_validation(el){
var name = el.val();
var retValue = {};
if (name == "") {
retValue.status = false;
retValue.msg = "Please select a value";
//alert("Please select a value");
//wizard.errorPopover(el, retValue.msg);
} else {
retValue.status = true;
}
return retValue;
}
function showDetails_Fogbow() {
var retValue = ' '
//obtener el SW
var sw = '';
if( $('.fogbow.col-sm-12 #vallum').prop('checked') ) sw += "Vallum ";
if( $('.fogbow.col-sm-12 #lemonade').prop('checked') ) sw += "LEMONADE ";
if( $('.fogbow.col-sm-12 #paf').prop('checked') ) sw += "PAF ";
if( $('.fogbow.col-sm-12 #tma').prop('checked') ) sw += "TMA ";
if( $('.fogbow.col-sm-12 #jupyter').prop('checked') ) sw += "Jupyter ";