From 0f3fcb29177a464613a01f554f961646e45cbe5f Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 24 May 2017 14:38:53 +0200 Subject: [PATCH 1/6] fix(templates): fix an issue with the maximum number of templates displayed (#883) --- app/components/templates/templates.html | 4 ++-- app/components/templates/templatesController.js | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/components/templates/templates.html b/app/components/templates/templates.html index 4cadd180c..8b273388c 100644 --- a/app/components/templates/templates.html +++ b/app/components/templates/templates.html @@ -250,7 +250,7 @@
-
+
@@ -289,7 +289,7 @@
Loading...
-
+
No templates available.
diff --git a/app/components/templates/templatesController.js b/app/components/templates/templatesController.js index 57fb2515a..5ead966ac 100644 --- a/app/components/templates/templatesController.js +++ b/app/components/templates/templatesController.js @@ -5,7 +5,6 @@ function ($scope, $q, $state, $stateParams, $anchorScroll, $filter, Config, Cont selectedTemplate: null, showAdvancedOptions: false, hideDescriptions: $stateParams.hide_descriptions, - pagination_count: Pagination.getPaginationCount('templates'), formValidationError: '', filters: { Categories: '!', @@ -18,10 +17,6 @@ function ($scope, $q, $state, $stateParams, $anchorScroll, $filter, Config, Cont name: '' }; - $scope.changePaginationCount = function() { - Pagination.setPaginationCount('templates', $scope.state.pagination_count); - }; - $scope.addVolume = function () { $scope.state.selectedTemplate.Volumes.push({ containerPath: '', name: '', readOnly: false, type: 'auto' }); }; From de2818de4c7e74a98388a87e133028e011a5626f Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 25 May 2017 11:08:26 +0200 Subject: [PATCH 2/6] chore(codefresh): add codefresh.yml (#887) --- .dockerignore | 1 + codefresh.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 codefresh.yml diff --git a/.dockerignore b/.dockerignore index 0d0d4f0c6..3765648b1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ * !dist +!build diff --git a/codefresh.yml b/codefresh.yml new file mode 100644 index 000000000..25413098b --- /dev/null +++ b/codefresh.yml @@ -0,0 +1,36 @@ +version: '1.0' +steps: + + build_backend: + image: portainer/golang-builder:ci + working_directory: ${{main_clone}} + commands: + - mkdir -p /go/src/github.com/${{CF_REPO_OWNER}} + - ln -s /codefresh/volume/${{CF_REPO_NAME}}/api /go/src/github.com/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}} + - /build.sh api/cmd/portainer + + build_frontend: + image: portainer/angular-builder:latest + working_directory: ${{build_backend}} + commands: + - npm install -g bower grunt grunt-cli && npm install + - bower install --allow-root + - grunt build-webapp + - mv api/cmd/portainer/portainer dist/ + + build_image: + type: build + working_directory: ${{build_frontend}} + dockerfile: ./build/linux/Dockerfile + image_name: portainer/portainer + tag: ${{CF_BRANCH}} + + push_image: + type: push + candidate: '${{build_image}}' + tag: '${{CF_BRANCH}}' + registry: dockerhub + when: + branch: + only: + - develop From 949f14b11922924c9622a3a2c703f4165d33a05a Mon Sep 17 00:00:00 2001 From: Thomas Krzero Date: Thu, 25 May 2017 11:13:29 +0200 Subject: [PATCH 3/6] fix(service-creation) - issue with bind mount (#882) --- app/components/createService/createServiceController.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/components/createService/createServiceController.js b/app/components/createService/createServiceController.js index 02924bf44..5ba874fb7 100644 --- a/app/components/createService/createServiceController.js +++ b/app/components/createService/createServiceController.js @@ -176,12 +176,7 @@ function ($scope, $state, Service, ServiceHelper, Volume, Network, ImageHelper, function prepareVolumes(config, input) { input.Volumes.forEach(function (volume) { if (volume.Source && volume.Target) { - var mount = {}; - mount.Type = volume.Bind ? 'bind' : 'volume'; - mount.ReadOnly = volume.ReadOnly ? true : false; - mount.Source = volume.Source; - mount.Target = volume.Target; - config.TaskTemplate.ContainerSpec.Mounts.push(mount); + config.TaskTemplate.ContainerSpec.Mounts.push(volume); } }); } From 6dab3eddea4d6b401d44bb6aa14d93abb43758e7 Mon Sep 17 00:00:00 2001 From: Renno Reinurm Date: Thu, 25 May 2017 13:16:14 +0300 Subject: [PATCH 4/6] feat(task-details): show state message --- app/components/task/task.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/components/task/task.html b/app/components/task/task.html index a657fa63d..16db1a274 100644 --- a/app/components/task/task.html +++ b/app/components/task/task.html @@ -22,6 +22,10 @@ State {{ task.Status.State }} + + State Message + {{ task.Status.Message }} + Error message {{ task.Status.Err }} From 49b79aadfd7791778e2c7afc8ff9790513e6c607 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 25 May 2017 12:17:51 +0200 Subject: [PATCH 5/6] docs(README): add codefresh badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 56193adf7..9cade71eb 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![Docker Pulls](https://img.shields.io/docker/pulls/portainer/portainer.svg)](https://hub.docker.com/r/portainer/portainer/) [![Microbadger](https://images.microbadger.com/badges/image/portainer/portainer.svg)](http://microbadger.com/images/portainer/portainer "Image size") [![Documentation Status](https://readthedocs.org/projects/portainer/badge/?version=stable)](http://portainer.readthedocs.io/en/latest/?badge=stable) +[![Codefresh build status]( https://g.codefresh.io/api/badges/build?repoOwner=portainer&repoName=portainer&branch=develop&pipelineName=portainer-ci&accountName=deviantony&type=cf-1)]( https://g.codefresh.io/repositories/portainer/portainer/builds?filter=trigger:build;branch:develop;service:5922a08a3a1aab000116fcc6~portainer-ci) [![Gitter](https://badges.gitter.im/portainer/Lobby.svg)](https://gitter.im/portainer/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHXZJQNJQ36H6) From de9be4bbe0e506696c0e37f1cb3127f45537ef2f Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 25 May 2017 12:20:43 +0200 Subject: [PATCH 6/6] chore(version): bump version number --- api/portainer.go | 2 +- app/app.js | 2 +- bower.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/portainer.go b/api/portainer.go index ff38b8b5a..c0315ecaf 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -252,7 +252,7 @@ type ( const ( // APIVersion is the version number of the Portainer API. - APIVersion = "1.13.0" + APIVersion = "1.13.1" // DBVersion is the version number of the Portainer database. DBVersion = 2 ) diff --git a/app/app.js b/app/app.js index 9cfa606fc..82fa21625 100644 --- a/app/app.js +++ b/app/app.js @@ -631,4 +631,4 @@ angular.module('portainer', [ .constant('ENDPOINTS_ENDPOINT', 'api/endpoints') .constant('TEMPLATES_ENDPOINT', 'api/templates') .constant('PAGINATION_MAX_ITEMS', 10) - .constant('UI_VERSION', 'v1.13.0'); + .constant('UI_VERSION', 'v1.13.1'); diff --git a/bower.json b/bower.json index 9bc5f84b7..e06c0615a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "portainer", - "version": "1.13.0", + "version": "1.13.1", "homepage": "https://github.com/portainer/portainer", "authors": [ "Anthony Lapenna " diff --git a/package.json b/package.json index 6f93e8a86..71c62f3ea 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Portainer.io", "name": "portainer", "homepage": "http://portainer.io", - "version": "1.13.0", + "version": "1.13.1", "repository": { "type": "git", "url": "git@github.com:portainer/portainer.git"