parent
edc2bc8b93
commit
e85a1bce0a
13 changed files with 541 additions and 369 deletions
|
@ -1,48 +1,32 @@
|
|||
<div class="dockerfile-build-form-element">
|
||||
<div class="cor-loader" ng-show="building"></div>
|
||||
<div ng-show="uploading">
|
||||
<span class="message">Uploading file {{ upload_file }}</span>
|
||||
<div class="progress progress-striped active">
|
||||
<div class="progress-bar" role="progressbar" aria-valuenow="{{ upload_progress }}" aria-valuemin="0" aria-valuemax="100" style="{{ 'width: ' + upload_progress + '%' }}">
|
||||
<div ng-show="state == 'starting-build'" class="starting-build">
|
||||
<div class="cor-loader-inline"></div>
|
||||
<div>Please wait while <span class="registry-name" short="true"></span> starts the build</div>
|
||||
</div>
|
||||
<div ng-show="state != 'starting-build'">
|
||||
<div class="file-upload-box"
|
||||
select-message="Please select a Dockerfile or an archive (.tar.gz or .zip) containing a Dockerfile at the root directory"
|
||||
files-cleared="handleFilesCleared()"
|
||||
files-selected="handleFilesSelected(files, callback)"
|
||||
files-validated="handleFilesValidated(uploadFiles)"></div>
|
||||
|
||||
<div class="robot-permission" ng-show="privateBaseRepository && state != 'uploading-files'">
|
||||
<div class="help-text">
|
||||
<p>The selected Dockerfile contains a <code>FROM</code> that refers to private repository <strong>{{ privateBaseRepository }}</strong>.</p>
|
||||
<p>
|
||||
A robot account with read access to that repository is required for the build:
|
||||
</p>
|
||||
</div>
|
||||
<div class="entity-search" namespace="repository.namespace"
|
||||
placeholder="'Select robot account for pulling'"
|
||||
current-entity="pullEntity"
|
||||
pull-right="true"
|
||||
allowed-entities="['robot']"></div>
|
||||
<div class="co-alert co-alert-danger"
|
||||
ng-if="currentRobotHasPermission === false">
|
||||
Robot account <strong>{{ pullEntity.name }}</strong> does not have
|
||||
read permission on repository <strong>{{ privateBaseRepository }}</strong>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-show="!uploading && !building">
|
||||
<dl>
|
||||
<dt>Dockerfile or <code>.tar.gz</code> or <code>.zip</code>:</dt>
|
||||
<dd>
|
||||
<div class="co-alert co-alert-danger" ng-if="dockerfileState == 'error'">
|
||||
{{ dockerfileError }}
|
||||
</div>
|
||||
|
||||
<input id="file-drop" class="file-drop" type="file" files-changed="handleFilesChanged(files)">
|
||||
<div class="help-text">Note: If an archive, the Dockerfile must be in the root directory.</div>
|
||||
<div ng-if="dockerfileState == 'loading'">
|
||||
Reading Dockerfile: <span class="cor-loader-inline"></span>
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<dl ng-show="privateBaseRepository">
|
||||
<dt>Base Image Pull Credentials:</dt>
|
||||
<dd>
|
||||
<div class="co-alert co-alert-warning"
|
||||
ng-if="currentRobotHasPermission === false">
|
||||
Warning: Robot account <strong>{{ pullEntity.name }}</strong> does not have
|
||||
read permission on repository <strong>{{ privateBaseRepository }}</strong>, so
|
||||
this build will fail with an authorization error.
|
||||
</div>
|
||||
<div class="entity-search" namespace="repository.namespace"
|
||||
placeholder="'Select robot account for pulling'"
|
||||
current-entity="pullEntity"
|
||||
allowed-entities="['robot']"></div>
|
||||
<div class="help-text">
|
||||
The selected Dockerfile contains a <code>FROM</code> that refers to the private
|
||||
<span class="registry-name"></span> repository <strong>{{ privateBaseRepository }}</strong>.
|
||||
A robot account with read access to that repository is required for the build.
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue