2022-07-06 06:08:45 +00:00
|
|
|
<page-header title="'Import image'" breadcrumbs="[{label:'Images', link:'docker.images'}, 'Import image']"> </page-header>
|
2018-07-26 13:09:48 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-body>
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<!-- upload -->
|
2022-01-17 05:53:32 +00:00
|
|
|
<div class="col-sm-12 form-section-title"> Upload </div>
|
2018-07-26 13:09:48 +00:00
|
|
|
<div class="form-group">
|
2022-01-17 05:53:32 +00:00
|
|
|
<span class="col-sm-12 text-muted small"> You can upload a tar archive containing your images. </span>
|
2018-07-26 13:09:48 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2022-08-01 20:19:07 +00:00
|
|
|
<div class="col-sm-12 vertical-center">
|
2021-12-03 01:34:45 +00:00
|
|
|
<button type="button" class="btn btn-sm btn-primary" ngf-select ngf-min-size="10" ng-model="formValues.UploadFile">Select file</button>
|
2022-08-01 20:19:07 +00:00
|
|
|
<span class="ml-1">
|
2018-07-26 13:09:48 +00:00
|
|
|
{{ formValues.UploadFile.name }}
|
2022-11-28 02:00:28 +00:00
|
|
|
<pr-icon icon="'x'" mode="'danger'" ng-if="!formValues.UploadFile"></pr-icon>
|
2018-07-26 13:09:48 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- !upload -->
|
|
|
|
<div ng-if="applicationState.endpoint.mode.agentProxy && applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE'">
|
2022-01-17 05:53:32 +00:00
|
|
|
<div class="col-sm-12 form-section-title"> Deployment </div>
|
2018-07-26 13:09:48 +00:00
|
|
|
<!-- node-selection -->
|
2022-11-02 11:29:26 +00:00
|
|
|
<node-selector model="formValues.NodeName" endpoint-id="endpoint.Id"> </node-selector>
|
2018-07-26 13:09:48 +00:00
|
|
|
<!-- !node-selection -->
|
|
|
|
</div>
|
2021-11-17 21:58:38 +00:00
|
|
|
<div class="row" authorization="DockerImageCreate">
|
|
|
|
<div class="col-lg-12 col-md-12 col-xs-12">
|
|
|
|
<rd-widget>
|
2022-11-28 02:00:28 +00:00
|
|
|
<rd-widget-header icon="tag" title-text="Tag the image"></rd-widget-header>
|
2021-11-17 21:58:38 +00:00
|
|
|
<rd-widget-body>
|
2021-12-03 01:34:45 +00:00
|
|
|
<!-- image-and-registry -->
|
|
|
|
<por-image-registry
|
|
|
|
model="formValues.RegistryModel"
|
|
|
|
label-class="col-sm-1"
|
|
|
|
input-class="col-sm-11"
|
|
|
|
endpoint="endpoint"
|
|
|
|
is-admin="isAdmin"
|
|
|
|
set-validity="setPullImageValidity"
|
|
|
|
check-rate-limits="true"
|
|
|
|
></por-image-registry>
|
2021-11-17 21:58:38 +00:00
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-26 13:09:48 +00:00
|
|
|
<!-- actions -->
|
2022-01-17 05:53:32 +00:00
|
|
|
<div class="col-sm-12 form-section-title"> Actions </div>
|
2018-07-26 13:09:48 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
2020-04-10 21:54:53 +00:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="btn btn-primary btn-sm"
|
|
|
|
ng-disabled="state.actionInProgress || !formValues.UploadFile"
|
|
|
|
ng-click="uploadImage()"
|
|
|
|
button-spinner="state.actionInProgress"
|
|
|
|
>
|
2018-07-26 13:09:48 +00:00
|
|
|
<span ng-hide="state.actionInProgress">Upload</span>
|
|
|
|
<span ng-show="state.actionInProgress">Images uploading in progress...</span>
|
|
|
|
</button>
|
2022-08-01 20:19:07 +00:00
|
|
|
<span class="text-danger ml-1" ng-if="state.formValidationError">{{ state.formValidationError }}</span>
|
2018-07-26 13:09:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- !actions -->
|
|
|
|
</form>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
2020-04-10 21:54:53 +00:00
|
|
|
</div>
|