mirror of
https://github.com/portainer/portainer.git
synced 2025-07-29 18:29:44 +02:00
feat(templates): Support interactive templates (#819)
This commit is contained in:
parent
09aa67ba61
commit
c3363604ac
3 changed files with 16 additions and 0 deletions
|
@ -66,6 +66,18 @@ angular.module('portainer.helpers')
|
|||
return env;
|
||||
};
|
||||
|
||||
helper.getConsoleConfiguration = function(interactiveFlag) {
|
||||
var consoleConfiguration = {
|
||||
openStdin: false,
|
||||
tty: false
|
||||
};
|
||||
if (interactiveFlag === true) {
|
||||
consoleConfiguration.openStdin = true;
|
||||
consoleConfiguration.tty = true;
|
||||
}
|
||||
return consoleConfiguration;
|
||||
};
|
||||
|
||||
helper.createVolumeBindings = function(volumes, generatedVolumesPile) {
|
||||
volumes.forEach(function (volume) {
|
||||
if (volume.containerPath) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue