Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jlopez
wicopa
Commits
8cdae3b9
Commit
8cdae3b9
authored
May 20, 2019
by
remy
Browse files
adding an execline box
parent
1ec4abf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
inc/js/wicopa.js
View file @
8cdae3b9
...
...
@@ -113,6 +113,8 @@ function generate_container() {
var
pythonversion
=
document
.
getElementById
(
"
selectedPython
"
).
value
;
var
execline
=
document
.
getElementById
(
"
ExecLineInput
"
).
value
;
var
nrow
=
2
;
//HEADER
...
...
@@ -470,19 +472,33 @@ function generate_container() {
nrow
+=
3
;
//END
if
(
isSingularity
)
{
PREVIEW
+=
"
%apprun run
\n
"
;
PREVIEW
+=
"
\t
exec /bin/bash
\"
$@
\"\n
"
;
PREVIEW
+=
"
\n
"
;
PREVIEW
+=
"
%runscript
\n
"
;
PREVIEW
+=
"
\t
exec /bin/bash
\"
$@
\"\n
"
;
PREVIEW
+=
"
\n
"
;
nrow
+=
6
;
}
else
{
PREVIEW
+=
"
CMD exec /bin/bash
\"
$@
\"\n
"
;
PREVIEW
+=
"
\n
"
;
nrow
+=
2
;
if
(
execline
!=
""
)
{
if
(
isSingularity
)
{
PREVIEW
+=
"
%runscript
\n
"
;
PREVIEW
+=
"
\t
"
+
execline
+
"
\n
"
;
PREVIEW
+=
"
\n
"
;
nrow
+=
6
;
}
else
{
PREVIEW
+=
"
CMD
"
+
execline
+
"
\n
"
;
PREVIEW
+=
"
\n
"
;
nrow
+=
2
;
}
}
else
{
if
(
isSingularity
)
{
PREVIEW
+=
"
%apprun run
\n
"
;
PREVIEW
+=
"
\t
exec /bin/bash
\"
$@
\"\n
"
;
PREVIEW
+=
"
\n
"
;
PREVIEW
+=
"
%runscript
\n
"
;
PREVIEW
+=
"
\t
exec /bin/bash
\"
$@
\"\n
"
;
PREVIEW
+=
"
\n
"
;
nrow
+=
6
;
}
else
{
PREVIEW
+=
"
CMD exec /bin/bash
\"
$@
\"\n
"
;
PREVIEW
+=
"
\n
"
;
nrow
+=
2
;
}
}
...
...
index.php
View file @
8cdae3b9
...
...
@@ -216,6 +216,24 @@ foreach ($db->getAllActiveSectionParent() as $s){
</div>
</div>
</div>
<br/>
<div
class=
"col-12"
>
<div
class=
"card border border-dark"
>
<div
class=
"card-header bg-dark text-light"
>
Exec line (%Runscript / CMD) :
</div>
<div
class=
"card-body"
>
<div
class=
"form-group"
>
<label
for=
"ExecLineInput"
class=
"font-weight-bold"
>
Exec Line :
</label>
<input
type=
"text"
class=
"form-control"
id=
"ExecLineInput"
value=
'exec /bin/bash "$@"'
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-8"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment