Skip to content

Commit ad95899

Browse files
committed
fix to rabbitmq
- personal spaces would crash an upload - images now pushed to ghcr.io
1 parent 1a42013 commit ad95899

File tree

6 files changed

+45
-28
lines changed

6 files changed

+45
-28
lines changed

.github/workflows/docker.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,36 +93,44 @@ jobs:
9393
# build the docker image, this will always run to make sure
9494
# the Dockerfile still works.
9595
- name: Build image
96-
run: |
97-
docker build \
98-
--build-arg BRANCH=${GITHUB_BRANCH} \
99-
--build-arg VERSION=${CLOWDER_VERSION} \
100-
--build-arg BUILDNUMBER=${{ github.run_number }} \
101-
--build-arg GITSHA1=${{ github.sha }} \
102-
--tag image ${{ matrix.FOLDER }}
103-
104-
# this will publish to the actor (person) github packages
105-
- name: Publish to GitHub
106-
if: github.event_name == 'push'
107-
uses: elgohr/[email protected]
96+
uses: elgohr/[email protected]
10897
env:
10998
BRANCH: ${{ env.GITHUB_BRANCH }}
11099
VERSION: ${{ env.CLOWDER_VERSION }}
111100
BUILDNUMBER: ${{ github.run_number }}
112101
GITSHA1: ${{ github.sha }}
113102
with:
114-
name: ${{ github.repository_owner }}/clowder/${{ matrix.IMAGE }}
103+
registry: docker.pkg.github.com
104+
name: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ matrix.IMAGE }}
115105
username: ${{ github.actor }}
116106
password: ${{ secrets.GITHUB_TOKEN }}
117107
context: ${{ matrix.FOLDER }}
108+
tags: "${{ env.TAGS }}"
109+
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
110+
no_push: true
111+
112+
# this will publish to github container registry
113+
- name: Publish to GitHub
114+
if: github.event_name != 'pull_request' && github.repository == env.MASTER_REPO
115+
uses: elgohr/[email protected]
116+
env:
117+
BRANCH: ${{ env.GITHUB_BRANCH }}
118+
VERSION: ${{ env.CLOWDER_VERSION }}
119+
BUILDNUMBER: ${{ github.run_number }}
120+
GITSHA1: ${{ github.sha }}
121+
with:
122+
registry: ghcr.io
123+
name: ${{ github.repository_owner }}/${{ matrix.IMAGE }}
124+
username: ${{ secrets.GHCR_USERNAME }}
125+
password: ${{ secrets.GHCR_PASSWORD }}
126+
context: ${{ matrix.FOLDER }}
118127
tags: "${{ env.CLOWDER_TAGS }}"
119-
registry: docker.pkg.github.com
120128
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
121129

122130
# this will publish to the clowder dockerhub repo
123131
- name: Publish to Docker Hub
124-
if: github.event_name == 'push' && github.repository == env.MASTER_REPO
125-
uses: elgohr/Publish-Docker-Github-Action@2.18
132+
if: github.event_name != 'pull_request' && github.repository == env.MASTER_REPO
133+
uses: elgohr/Publish-Docker-Github-Action@2.22
126134
env:
127135
BRANCH: ${{ env.GITHUB_BRANCH }}
128136
VERSION: ${{ env.CLOWDER_VERSION }}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## 1.12.1 - 2020-11-05
8+
9+
### Fixed
10+
- Error uploading to spaces that did not have extractors enabled/disabled (personel spaces)
11+
12+
### Changed
13+
- Docker Images are now pushed to [github container registry](https://github.com/orgs/clowder-framework/packages)
14+
715
## 1.12.0 - 2020-10-19
816
**_Warning:_**
917
- This update modifies the MongoDB schema. Make sure to start the application with `-DMONGOUPDATE=1`.

app/services/RabbitmqPlugin.scala

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,16 @@ class RabbitmqPlugin(application: Application) extends Plugin {
362362
var enabledExtractors = new ListBuffer[String]()
363363
var disabledExtractors = new ListBuffer[String]()
364364
dataset.spaces.map(space => {
365-
val extractors = spacesService.getAllExtractors(space)
366-
enabledExtractors.appendAll(extractors.get.enabled.flatMap { exId =>
367-
extractorsService.getExtractorInfo(exId).filter(exInfo =>
368-
containsOperation(exInfo.process.dataset, operation) || containsOperation(exInfo.process.file, operation)).map(_.name)
369-
})
370-
disabledExtractors.appendAll(extractors.get.disabled.flatMap { exId =>
371-
extractorsService.getExtractorInfo(exId).filter(exInfo =>
372-
containsOperation(exInfo.process.dataset, operation) || containsOperation(exInfo.process.file, operation)).map(_.name)
373-
})
365+
spacesService.getAllExtractors(space).foreach { extractors =>
366+
enabledExtractors.appendAll(extractors.enabled.flatMap { exId =>
367+
extractorsService.getExtractorInfo(exId).filter(exInfo =>
368+
containsOperation(exInfo.process.dataset, operation) || containsOperation(exInfo.process.file, operation)).map(_.name)
369+
})
370+
disabledExtractors.appendAll(extractors.disabled.flatMap { exId =>
371+
extractorsService.getExtractorInfo(exId).filter(exInfo =>
372+
containsOperation(exInfo.process.dataset, operation) || containsOperation(exInfo.process.file, operation)).map(_.name)
373+
})
374+
}
374375
})
375376
(enabledExtractors.toList, disabledExtractors.toList)
376377
}

doc/src/sphinx/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Luigi Marini'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.12.0'
25+
release = '1.12.1'
2626

2727

2828
# -- General configuration ---------------------------------------------------

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import NativePackagerKeys._
1313
object ApplicationBuild extends Build {
1414

1515
val appName = "clowder"
16-
val version = "1.12.0"
16+
val version = "1.12.1"
1717
val jvm = "1.7"
1818

1919
def appVersion: String = {

public/swagger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ info:
99
Clowder is a customizable and scalable data management system to support any
1010
data format and multiple research domains. It is under active development
1111
and deployed for a variety of research projects.
12-
version: 1.12.0
12+
version: 1.12.1
1313
termsOfService: https://clowder.ncsa.illinois.edu/clowder/tos
1414
contact:
1515
name: Clowder

0 commit comments

Comments
 (0)