Skip to content

Commit

Permalink
maint: bump siibra version
Browse files Browse the repository at this point in the history
maint: cache docker build layers
maint: split requirements
  • Loading branch information
xgui3783 committed Jun 27, 2023
1 parent eedda04 commit 4e0a63b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ env:
OKD_DEV_SECRET: ${{ secrets.OKD_DEV_SECRET }}
DOCKER_REGISTRY: 'docker-registry.ebrains.eu/siibra/'
DOCKER_IMG: 'siibra-api'
DOCKER_IMAGE_TAG: 'latest'

jobs:
build-docker-img:
Expand All @@ -41,6 +40,9 @@ jobs:
- name: "Build docker image"
run: |
GIT_HASH=$(git rev-parse --short HEAD)
cached_image=${{ env.DOCKER_REGISTRY }}${{ env.DOCKER_IMG }}:latest${{ matrix.tag_suffix }}
echo "Pulling $cached_image to populate cached layers."
docker pull $cached_image
docker build --build-arg GIT_HASH=$GIT_HASH -t siibra-api-tmp-img -f ${{ matrix.dockerfile }} .
- name: "Tag and Push (latest || rc)"
Expand Down
1 change: 0 additions & 1 deletion .openshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,5 @@ Per [deployment template](./branch-deploy-template.yml), a number of parameters
| name | required | desc |
| --- | --- | --- |
| `SESSION_SECRET` | | Random strings to encrypt sessions. Not currently used. |
| `DOCKER_IMAGE_TAG` | true | Dictates which image tag to pull. Currently, possible values are `{latest\|rc\|stable}`. |
| `DEPLOY_FLAVOUR` | true | Acts similar to deploy ID. Distinguishes one deployment from another. Currently, possible values are `{latest\|rc\|stable}`. Also affects routes: `siibra-api-{DEPLOY_FLAVOUR}.apps{DEPLOY_SITE_POSTFIX}.hbp.eu` |
| `DEPLOY_SITE_POSTFIX` | | Dictates if postfix, if any, should be added to the route: `siibra-api-{DEPLOY_FLAVOUR}.apps{DEPLOY_SITE_POSTFIX}.hbp.eu`. Defaults to `''` (empty string). Possible value: `-dev`|
2 changes: 1 addition & 1 deletion api/siibra_api_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

__version__ = "0.3.8"
__version__ = "0.3.9"

NAME_SPACE = os.environ.get("SIIBRA_API_NAMESPACE", "siibraapi")

Expand Down
9 changes: 1 addition & 8 deletions requirements/all.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
requests
fastapi
fastapi-versioning
fastapi-pagination
jinja2
uvicorn[standard]
redis
diskcache
-r partial-all.txt
-r siibra.txt
8 changes: 8 additions & 0 deletions requirements/partial-all.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
requests
fastapi
fastapi-versioning
fastapi-pagination
jinja2
uvicorn[standard]
redis
diskcache
2 changes: 2 additions & 0 deletions requirements/partial-worker.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
celery[redis]==5.2.6
pydantic
2 changes: 1 addition & 1 deletion requirements/siibra.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
siibra>=0.4a57
siibra>=0.4a58

3 changes: 1 addition & 2 deletions requirements/worker.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
-r siibra.txt
celery[redis]==5.2.6
pydantic
-r partial-worker.txt

0 comments on commit 4e0a63b

Please sign in to comment.