You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/docker/rest/build.js

29 lines
784 B

import { API_ENDPOINT_ENDPOINTS } from '@/constants';
import { jsonObjectsToArrayHandler } from './response/handlers';
angular.module('portainer.docker').factory('Build', [
'$resource',
function BuildFactory($resource) {
'use strict';
return $resource(
API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/build',
{},
{
buildImage: {
method: 'POST',
ignoreLoadingBar: true,
transformResponse: jsonObjectsToArrayHandler,
isArray: true,
headers: { 'Content-Type': 'application/x-tar' },
},
buildImageOverride: {
method: 'POST',
ignoreLoadingBar: true,
transformResponse: jsonObjectsToArrayHandler,
isArray: true,
},
}
);
},
]);