mirror of https://github.com/portainer/portainer
EE-2681 fix(docker): fix message format (#7784)
parent
1722257d68
commit
66fd039933
|
@ -183,10 +183,12 @@
|
||||||
<div ng-show="state.BuildType === 'url'">
|
<div ng-show="state.BuildType === 'url'">
|
||||||
<div class="col-sm-12 form-section-title"> URL </div>
|
<div class="col-sm-12 form-section-title"> URL </div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<span class="col-sm-12 text-muted small vertical-center">
|
<span class="col-sm-12 small vertical-center">
|
||||||
<pr-icon icon="'info'" mode="'primary'" feather="true"></pr-icon>
|
<pr-icon icon="'info'" mode="'primary'" feather="true"></pr-icon>
|
||||||
Specify the URL to a Dockerfile, a tarball or a public Git repository (suffixed by <b>.git</b>). When using a Git repository URL, build contexts can be
|
<span class="text-muted"
|
||||||
specified as in the <a href="https://docs.docker.com/engine/reference/commandline/build/#git-repositories">Docker documentation.</a>
|
>Specify the URL to a Dockerfile, a tarball or a public Git repository (suffixed by <b>.git</b>). When using a Git repository URL, build contexts can be
|
||||||
|
specified as in the <a href="https://docs.docker.com/engine/reference/commandline/build/#git-repositories">Docker documentation.</a></span
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
<ng-form name="pathForm">
|
<ng-form name="pathForm">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<span class="col-sm-12 text-muted small vertical-center">
|
<span class="col-sm-12 text-muted small vertical-center">
|
||||||
<pr-icon icon="'info'" mode="'primary'" feather="true"></pr-icon> Indicate the path to the {{ $ctrl.deployMethod == 'compose' ? 'Compose' : 'Manifest' }} file from the root
|
<pr-icon icon="'info'" mode="'primary'" feather="true"></pr-icon>
|
||||||
of your repository. To enable rebuilding of an image if already present on Docker standalone environments, include<code>pull_policy: build</code>in your compose file as per<a
|
<span
|
||||||
href="https://docs.docker.com/compose/compose-file/#pull_policy"
|
>Indicate the path to the {{ $ctrl.deployMethod == 'compose' ? 'Compose' : 'Manifest' }} file from the root of your repository.
|
||||||
>Docker documentation</a
|
<span ng-if="$ctrl.isDockerStandalone">
|
||||||
>.
|
To enable rebuilding of an image if already present on Docker standalone environments, include<code>pull_policy: build</code>in your compose file as per
|
||||||
|
<a href="https://docs.docker.com/compose/compose-file/#pull_policy">Docker documentation</a>.</span
|
||||||
|
></span
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -4,5 +4,6 @@ export const gitFormComposePathField = {
|
||||||
deployMethod: '@',
|
deployMethod: '@',
|
||||||
value: '<',
|
value: '<',
|
||||||
onChange: '<',
|
onChange: '<',
|
||||||
|
isDockerStandalone: '<',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
export default class GitFormController {
|
export default class GitFormController {
|
||||||
/* @ngInject */
|
/* @ngInject */
|
||||||
constructor() {
|
constructor(StateManager) {
|
||||||
this.onChangeField = this.onChangeField.bind(this);
|
this.onChangeField = this.onChangeField.bind(this);
|
||||||
this.onChangeURL = this.onChangeField('RepositoryURL');
|
this.onChangeURL = this.onChangeField('RepositoryURL');
|
||||||
this.onChangeRefName = this.onChangeField('RepositoryReferenceName');
|
this.onChangeRefName = this.onChangeField('RepositoryReferenceName');
|
||||||
this.onChangeComposePath = this.onChangeField('ComposeFilePathInRepository');
|
this.onChangeComposePath = this.onChangeField('ComposeFilePathInRepository');
|
||||||
|
this.isDockerStandalone = StateManager.getState().endpoint.mode.provider === 'DOCKER_STANDALONE';
|
||||||
}
|
}
|
||||||
|
|
||||||
onChangeField(field) {
|
onChangeField(field) {
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
value="$ctrl.model.ComposeFilePathInRepository"
|
value="$ctrl.model.ComposeFilePathInRepository"
|
||||||
on-change="($ctrl.onChangeComposePath)"
|
on-change="($ctrl.onChangeComposePath)"
|
||||||
deploy-method="{{ $ctrl.deployMethod }}"
|
deploy-method="{{ $ctrl.deployMethod }}"
|
||||||
|
is-docker-standalone="$ctrl.isDockerStandalone"
|
||||||
></git-form-compose-path-field>
|
></git-form-compose-path-field>
|
||||||
|
|
||||||
<git-form-additional-files-panel ng-if="$ctrl.additionalFile" model="$ctrl.model" on-change="($ctrl.onChange)"></git-form-additional-files-panel>
|
<git-form-additional-files-panel ng-if="$ctrl.additionalFile" model="$ctrl.model" on-change="($ctrl.onChange)"></git-form-additional-files-panel>
|
||||||
|
|
|
@ -126,8 +126,10 @@
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<span class="small text-muted vertical-center">
|
<span class="small text-muted vertical-center">
|
||||||
<pr-icon class="vertical-center" icon="'alert-circle'" feather="true" aria-hidden="true" mode="'primary'" size="'md'"></pr-icon>
|
<pr-icon class="vertical-center" icon="'alert-circle'" feather="true" aria-hidden="true" mode="'primary'" size="'md'"></pr-icon>
|
||||||
Note: non-administrator users who aren't in a team don't have access to any environments by default. Head over to the
|
<span
|
||||||
<a ui-sref="portainer.endpoints">Environments view</a> to manage their accesses.
|
>Note: non-administrator users who aren't in a team don't have access to any environments by default. Head over to the
|
||||||
|
<a ui-sref="portainer.endpoints">Environments view</a> to manage their accesses.</span
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,13 +27,15 @@ export function TextTip({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<p className="text-muted small vertical-center">
|
<p className="small vertical-center">
|
||||||
<Icon
|
<i className="icon-container">
|
||||||
icon="alert-circle"
|
<Icon
|
||||||
feather
|
icon="alert-circle"
|
||||||
className={clsx(`${iconClass}`, 'space-right')}
|
feather
|
||||||
/>
|
className={clsx(`${iconClass}`, 'space-right')}
|
||||||
{children}
|
/>
|
||||||
|
</i>
|
||||||
|
<span className="text-muted">{children}</span>
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue