mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(image-build): add the ability to build images (#1672)
This commit is contained in:
parent
e065bd4a47
commit
81de2a5afb
16 changed files with 607 additions and 15 deletions
18
app/docker/rest/build.js
Normal file
18
app/docker/rest/build.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
angular.module('portainer.docker')
|
||||
.factory('Build', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function BuildFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
|
||||
'use strict';
|
||||
return $resource(API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/build', {
|
||||
endpointId: EndpointProvider.endpointID
|
||||
},
|
||||
{
|
||||
buildImage: {
|
||||
method: 'POST', ignoreLoadingBar: true,
|
||||
transformResponse: jsonObjectsToArrayHandler, isArray: true,
|
||||
headers: { 'Content-Type': 'application/x-tar' }
|
||||
},
|
||||
buildImageOverride: {
|
||||
method: 'POST', ignoreLoadingBar: true,
|
||||
transformResponse: jsonObjectsToArrayHandler, isArray: true
|
||||
}
|
||||
});
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue