Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch upstream #3

Open
wants to merge 71 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
e407984
Added logic for primary Clowder instance which handles multiple extra…
ddey2 Apr 7, 2022
160c5a1
Added the review suggestions
ddey2 Apr 12, 2022
be0902d
fix masonry
robkooper Apr 19, 2022
76cbcc8
fix/cleanup filename
robkooper Apr 22, 2022
e6f51e4
version bump
robkooper Apr 30, 2022
1503af5
enabled by server admin (fixes #344)
robkooper Apr 30, 2022
c6e604e
fix swagger lint
robkooper Apr 30, 2022
9b6e762
remove typo
robkooper Apr 30, 2022
2ec13db
Merge pull request #355 from clowder-framework/fix-enabled-superadmin
robkooper May 3, 2022
c3d6bc0
Merge branch 'release/1.20.2' into fix-download-name
robkooper May 3, 2022
8ba7532
Merge pull request #353 from clowder-framework/fix-download-name
robkooper May 3, 2022
110b408
Merge branch 'release/1.20.2' into fix-masonry-space
robkooper May 3, 2022
121649a
Merge pull request #352 from clowder-framework/fix-masonry-space
robkooper May 3, 2022
15f74c3
Merge branch 'release/1.20.2' into ddey2/327
robkooper May 3, 2022
359df51
Merge pull request #348 from clowder-framework/ddey2/327
robkooper May 3, 2022
68baf98
Merge pull request #357 from clowder-framework/release/1.20.2
robkooper May 4, 2022
b971c44
Docker updates (#362)
robkooper Jun 10, 2022
2162dc4
Fix to send notifications to all the admins in one email (#360)
ddey2 Jun 13, 2022
5dbbbef
Added an IFC previewer and a GLTF previewer (#340)
cconsta1 Jun 14, 2022
6f860d5
Adds MRI previewer for NIFTY (.nii) file format. (#241)
pgroves Jun 14, 2022
492945b
CLA
robkooper Jul 13, 2022
530c2e9
fix status of spaces
robkooper Jul 13, 2022
4f08481
more mimetypes base on ext
robkooper Jul 13, 2022
fa551ee
whitelist of folders in docker
robkooper Jul 13, 2022
e0c4bbe
all changes
robkooper Jul 13, 2022
369b58d
forgot to save filecount
robkooper Jul 13, 2022
7fe6fa0
check if secret is set (#371)
robkooper Jul 29, 2022
feb8cdb
secrets can not be used in if
robkooper Aug 1, 2022
062beab
bump version
robkooper Aug 24, 2022
4f9d4ca
Fix to remove a dataset from a space #349 (#373)
ddey2 Aug 24, 2022
d4c5663
Merge branch 'release/1.21.0' into misc-fixes
robkooper Aug 24, 2022
8a5129c
Merge pull request #367 from clowder-framework/misc-fixes
robkooper Aug 24, 2022
80528fb
fix changelog
robkooper Aug 24, 2022
12c1d8a
Return folder as part of file metadata (#369)
MBcode Aug 25, 2022
2819451
file/dataset add schema.org (#332)
MBcode Sep 6, 2022
f8940ee
Not all dataset i ds found (#368)
MBcode Sep 6, 2022
8571d3e
Update CHANGELOG.md
robkooper Sep 6, 2022
952f496
Metadata tab select (#126)
MBcode Sep 6, 2022
7f16c57
Merge remote-tracking branch 'origin/develop' into release/1.21.0
robkooper Sep 6, 2022
9cb9564
Update CHANGELOG.md
robkooper Sep 7, 2022
54ed131
Merge pull request #379 from clowder-framework/release/1.21.0
robkooper Sep 8, 2022
85abedb
fix push to dockerhub
robkooper Sep 10, 2022
7497fe7
fix push to dockerhub
robkooper Sep 10, 2022
4e85b7d
Merge branch 'develop'
robkooper Sep 10, 2022
5f26ef6
Update installing_clowder.rst (#383)
meerkatt Sep 23, 2022
c88d681
button disabled while ajax call is going on
ddey2 Nov 7, 2022
f34fc64
adding to change log
ddey2 Nov 7, 2022
9192d5c
Merge pull request #397 from clowder-framework/311-double-click-on-cr…
robkooper Dec 5, 2022
32da80b
386 datasetlastmodifieddate is not updated (#392)
ddey2 Dec 5, 2022
ae5c90f
Support private extractor registration (#300)
max-zilla Dec 14, 2022
23148f3
Added a dropdown menu for specific space types #374 (#382)
ddey2 Dec 14, 2022
f286139
New enhancement to delete a section (#385)
ddey2 Dec 14, 2022
2d8b929
documentation on testing (#407)
robkooper Sep 11, 2023
5d7c19e
419 authenticator against keycloak (#420)
longshuicy Sep 11, 2023
6a89ba8
add citation.cff (#402)
robkooper Sep 11, 2023
8517d91
add missing SMTP_FROM in docker-comopse yml file (#418)
bingzhang Sep 11, 2023
7204558
Bump certifi from 2021.5.30 to 2022.12.7 in /doc/src/sphinx (#399)
dependabot[bot] Sep 11, 2023
e09f44f
#395 Fix previewer source URL (#396)
sandeep-ps Sep 11, 2023
e57bf56
add readonly mode (#406)
robkooper Sep 11, 2023
3e058a2
Change how nested objects are indexed (#404)
max-zilla Sep 11, 2023
00ed455
Bump requests from 2.21.0 to 2.31.0 in /scripts/rmq-error-shovel (#422)
dependabot[bot] Sep 11, 2023
1cce40d
Bump requests from 2.21.0 to 2.31.0 in /scripts/monitor (#421)
dependabot[bot] Sep 11, 2023
a515dac
ddey2/375 (#388)
ddey2 Sep 11, 2023
4f6a6e3
Delete elasticsearch index on deletion, omit trash search results (#390)
max-zilla Sep 12, 2023
1e94e14
Added Google's model viewer within viewer_three.js (#372)
cconsta1 Sep 12, 2023
15bd2e7
Add some missing sections endpoints (#410)
LDeakin Sep 12, 2023
e880142
Added Lachlan Deakin to CONTRIBUTORS.md.
lmarini Sep 12, 2023
5e0e979
Updated version and changelog for 1.22.0 release.
lmarini Sep 12, 2023
c5d8ace
make sure to bump citation
robkooper Sep 26, 2023
ccb804e
Merge pull request #423 from clowder-framework/release/1.22.0
lmarini Sep 27, 2023
f28c203
Fixed hearthbeat bug (#429)
lmarini Nov 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 22 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: github branch
run: |
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
Expand All @@ -46,9 +46,10 @@ jobs:
else
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
fi
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8
- name: Cache SBT ivy cache
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -84,7 +85,7 @@ jobs:
ports:
- 27017:27017
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: github branch
run: |
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
Expand All @@ -100,16 +101,17 @@ jobs:
else
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
fi
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8
- name: Cache SBT ivy cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('project/Build.scala') }}
- name: Cache SBT
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('project/Build.scala') }}
Expand All @@ -128,7 +130,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: github branch
run: |
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
Expand All @@ -144,16 +146,17 @@ jobs:
else
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
fi
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8
- name: Cache SBT ivy cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('project/Build.scala') }}
- name: Cache SBT
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('project/Build.scala') }}
Expand Down Expand Up @@ -204,7 +207,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: github branch
run: |
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
Expand All @@ -220,16 +223,17 @@ jobs:
else
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
fi
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8
- name: Cache SBT ivy cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('project/Build.scala') }}
- name: Cache SBT
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('project/Build.scala') }}
Expand Down
188 changes: 114 additions & 74 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ env:
jobs:
docker:
runs-on: ubuntu-latest
env:
dockerhub: ${{ secrets.DOCKERHUB_USERNAME }}
permissions:
packages: write
strategy:
fail-fast: true
fail-fast: false
matrix:
name:
- clowder
Expand All @@ -42,126 +46,162 @@ jobs:
FOLDER: "."
IMAGE: clowder
README: README.md
PLATFORM: "linux/amd64,linux/arm64"
- name: mongo-init
FOLDER: scripts/mongo-init
IMAGE: mongo-init
README: ""
PLATFORM: "linux/amd64"
- name: monitor
FOLDER: scripts/monitor
IMAGE: monitor
README: ""
PLATFORM: "linux/amd64,linux/arm64"
- name: elasticsearch
FOLDER: scripts/elasticsearch
IMAGE: elasticsearch
README: ""
PLATFORM: "linux/amd64"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# calculate some variables that are used later
- name: github branch
- name: variable setup
run: |
if [ "${{ github.event.release.target_commitish }}" != "" ]; then
BRANCH="${{ github.event.release.target_commitish }}"
elif [[ $GITHUB_REF =~ pull ]]; then
BRANCH="$(echo $GITHUB_REF | sed 's#refs/pull/\([0-9]*\)/merge#PR-\1#')"
else
BRANCH=${GITHUB_REF##*/}
fi
echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV

if [ "$BRANCH" == "master" ]; then
version="$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')"
tags="latest"
oldversion=""
while [ "${oldversion}" != "${version}" ]; do
oldversion="${version}"
tags="${tags},${version}"
tags="${tags} ${version}"
version=${version%.*}
done
echo "CLOWDER_VERSION=$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')" >> $GITHUB_ENV
echo "CLOWDER_TAGS=${tags}" >> $GITHUB_ENV
version="$(awk '/version = / { print $4 }' project/Build.scala | sed 's/"//g')"
elif [ "$BRANCH" == "develop" ]; then
echo "CLOWDER_VERSION=develop" >> $GITHUB_ENV
echo "CLOWDER_TAGS=develop" >> $GITHUB_ENV
version="develop"
tags="develop"
else
echo "CLOWDER_VERSION=testing" >> $GITHUB_ENV
echo "CLOWDER_TAGS=" >> $GITHUB_ENV
version="test"
tags="${BRANCH}"
fi

# build the docker image, this will always run to make sure
# the Dockerfile still works.
- name: Build image
uses: elgohr/[email protected]
env:
BRANCH: ${{ env.GITHUB_BRANCH }}
VERSION: ${{ env.CLOWDER_VERSION }}
BUILDNUMBER: ${{ github.run_number }}
GITSHA1: ${{ github.sha }}
push_tags=""
for tag in ${tags}; do
if [ "${{ secrets.DOCKERHUB_USERNAME }}" != "" ]; then
push_tags="${push_tags}${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}:${tag},"
fi
push_tags="${push_tags}ghcr.io/${{ github.repository_owner }}/${{ matrix.IMAGE }}:${tag},"
done
push_tags="${push_tags%,*}"

echo "BRANCH=${BRANCH}"
echo "VERSION=${version}"
echo "TAGS=${tags}"
echo "PUSH_TAGS=${push_tags}"

echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
echo "VERSION=${version}" >> $GITHUB_ENV
echo "TAGS=${push_tags}" >> $GITHUB_ENV

# setup docker build
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Inspect Builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"

# login to registries
- name: Login to DockerHub
if: env.dockerhub != ''
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: docker.pkg.github.com
name: ${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ matrix.IMAGE }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# build the clowder docker images
- name: Build and push ${{ matrix.IMAGE }}-build
if: matrix.IMAGE == 'clowder'
uses: docker/build-push-action@v2
with:
push: true
context: ${{ matrix.FOLDER }}
tags: "${{ env.TAGS }}"
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
no_push: true

# this will publish to github container registry
- name: Publish to GitHub
if: github.event_name != 'pull_request' && github.repository == env.MASTER_REPO
uses: elgohr/[email protected]
env:
BRANCH: ${{ env.GITHUB_BRANCH }}
VERSION: ${{ env.CLOWDER_VERSION }}
BUILDNUMBER: ${{ github.run_number }}
GITSHA1: ${{ github.sha }}
platforms: ${{ matrix.PLATFORM }}
target: ${{ matrix.IMAGE }}-build
cache-from: type=registry,ref=${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}-build-cache:${{ env.BRANCH }}
cache-to: type=registry,ref=${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}-build-cache:${{ env.BRANCH }},mode=max
tags: ${{ env.TAGS }}
build-args: |
BRANCH=${{ env.BRANCH }}
VERSION=${{ env.VERSION }}
BUILDNUMBER=${{ github.run_number }}
GITSHA1=${{ github.sha }}

- name: Build and push ${{ matrix.IMAGE }}-runtime
if: matrix.IMAGE == 'clowder'
uses: docker/build-push-action@v2
with:
registry: ghcr.io
name: ${{ github.repository_owner }}/${{ matrix.IMAGE }}
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_PASSWORD }}
push: true
context: ${{ matrix.FOLDER }}
tags: "${{ env.CLOWDER_TAGS }}"
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
platforms: ${{ matrix.PLATFORM }}
target: ${{ matrix.IMAGE }}-runtime
cache-from: type=registry,ref=${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}-runtime-cache:${{ env.BRANCH }}
cache-to: type=registry,ref=${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}-runtime-cache:${{ env.BRANCH }}
tags: ${{ env.TAGS }}
build-args: |
BRANCH=${{ env.BRANCH }}
VERSION=${{ env.VERSION }}
BUILDNUMBER=${{ github.run_number }}
GITSHA1=${{ github.sha }}

# this will publish to the clowder dockerhub repo
- name: Publish to Docker Hub
if: github.event_name != 'pull_request' && github.repository == env.MASTER_REPO
uses: elgohr/[email protected]
env:
BRANCH: ${{ env.GITHUB_BRANCH }}
VERSION: ${{ env.CLOWDER_VERSION }}
BUILDNUMBER: ${{ github.run_number }}
GITSHA1: ${{ github.sha }}
# build the other docker images
- name: Build and push ${{ matrix.IMAGE }}
if: matrix.IMAGE != 'clowder'
uses: docker/build-push-action@v2
with:
name: ${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
push: true
context: ${{ matrix.FOLDER }}
tags: "${{ env.CLOWDER_TAGS }}"
buildargs: BRANCH,VERSION,BUILDNUMBER,GITSHA1
platforms: ${{ matrix.PLATFORM }}
cache-from: type=registry,ref=${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}-cache:${{ env.BRANCH }}
cache-to: type=registry,ref=${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}-cache:${{ env.BRANCH }},mode=max
tags: ${{ env.TAGS }}
build-args: |
BRANCH=${{ env.BRANCH }}
VERSION=${{ env.VERSION }}
BUILDNUMBER=${{ github.run_number }}
GITSHA1=${{ github.sha }}

# this will update the README of the dockerhub repo
- name: check file
id: filecheck
run: |
if [ "${{ matrix.README }}" != "" ]; then
if [ -e "${{ matrix.README }}" ]; then
echo "##[set-output name=readme;]${{ matrix.README }}"
else
echo "##[set-output name=readme;]"
fi
else
if [ -e "${{ matrix.FOLDER }}/README.md" ]; then
echo "##[set-output name=readme;]${{ matrix.FOLDER }}/README.md"
else
echo "##[set-output name=readme;]"
fi
fi
# update README at DockerHub
- name: Docker Hub Description
if: github.event_name == 'push' && github.repository == env.MASTER_REPO && env.BRANCH == 'master' && steps.filecheck.outputs.readme != ''
if: env.dockerhub != '' && matrix.README != '' && github.event_name == 'push' && github.repository == env.MASTER_REPO && env.BRANCH == 'master'
uses: peter-evans/dockerhub-description@v2
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKERHUB_REPOSITORY: ${{ env.DOCKERHUB_ORG }}/${{ matrix.IMAGE }}
README_FILEPATH: ${{ steps.filecheck.outputs.readme }}
README_FILEPATH: ${{ matrix.README }}
6 changes: 3 additions & 3 deletions .github/workflows/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: openapi-lint
uses: mhiew/redoc-lint-github-action@v2
uses: mbowman100/swagger-validator-action@master
with:
args: 'public/swagger.yml --skip-rule operation-operationId'
files: public/swagger.yml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ doc/src/sphinx/_build
.DS_Store
/doc/src/sphinx/_build
**/.c9/*
*~
Loading