Skip to content

Commit 9bf21ac

Browse files
authored
Merge pull request #941 from ITISFoundation/release-to-staging
Release from master to staging for sprint 2019.07.11
2 parents 3b3fcf2 + ee660c9 commit 9bf21ac

File tree

203 files changed

+5001
-2038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+5001
-2038
lines changed

β€Ž.env-develβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ BF_API_SECRET=none
88

99
DOCKER_IMAGE_TAG=latest
1010

11+
MAINTENANCE_PASSWORD=z43
12+
1113
PUBLISHED_HOST_NAME=localhost
1214

1315
POSTGRES_ENDPOINT=postgres:5432
@@ -41,7 +43,7 @@ S3_SECURE=0
4143
SMTP_HOST=mail.speag.com
4244
SMTP_PORT=25
4345

44-
VENV2=.venv27/
46+
WEBSERVER_LOGIN_REGISTRATION_INVITATION_REQUIRED=1
4547

4648
# python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key())"
4749
WEBSERVER_SESSION_SECRET_KEY=REPLACE ME with a key of at least length 32.

β€Ž.github/PULL_REQUEST_TEMPLATE.mdβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
<!-- Please add #issues -->
1111

1212

13+
## How to test
14+
15+
<!-- Please explain how this can be tested. Also state wether this PR needs a full rebuild, database changes, etc. -->
16+
17+
1318
## Checklist
1419

1520
- [ ] I think the code is well written

β€ŽMakefileβ€Ž

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ PY_FILES := $(strip $(shell find services packages -iname '*.py' \
3737
-not -path "*web/server*"))
3838
TEMPCOMPOSE := $(shell mktemp)
3939

40-
SERVICES_LIST := apihub director sidecar storage webserver
41-
CACHED_SERVICES_LIST := ${SERVICES_LIST} webclient
40+
SERVICES_LIST := apihub director sidecar storage webserver maintenance
41+
CACHED_SERVICES_LIST := apihub director sidecar storage webserver webclient
4242
CLIENT_WEB_OUTPUT:=$(CURDIR)/services/web/client/source-output
4343

4444
export VCS_URL:=$(shell git config --get remote.origin.url)
@@ -82,7 +82,13 @@ endif
8282
.PHONY: build
8383
# target: build: – Builds all core service images.
8484
build: .env .tmp-webclient-build
85-
${DOCKER_COMPOSE} -f services/docker-compose.yml build --parallel ${SERVICES_LIST};
85+
${DOCKER_COMPOSE} -f services/docker-compose.yml build --parallel ${SERVICES_LIST}
86+
87+
.PHONY: rebuild
88+
# target: build: – Builds all core service images.
89+
rebuild: .env .tmp-webclient-build
90+
${DOCKER_COMPOSE} -f services/docker-compose.yml build --no-cache --parallel ${SERVICES_LIST}
91+
8692

8793
.PHONY: build-devel .tmp-webclient-build
8894
# target: build-devel, rebuild-devel: – Builds images of core services for development.
@@ -129,12 +135,16 @@ up-devel: up-swarm-devel
129135

130136
up-swarm: .env docker-swarm-check
131137
${DOCKER} swarm init
132-
${DOCKER_COMPOSE} -f services/docker-compose.yml -f services/docker-compose.tools.yml config > $(TEMPCOMPOSE).tmp-compose.yml ;
138+
${DOCKER_COMPOSE} -f services/docker-compose.yml \
139+
-f services/docker-compose-tools.yml \
140+
config > $(TEMPCOMPOSE).tmp-compose.yml ;
133141
${DOCKER} stack deploy -c $(TEMPCOMPOSE).tmp-compose.yml ${SWARM_STACK_NAME}
134142

135143
up-swarm-devel: .env docker-swarm-check $(CLIENT_WEB_OUTPUT)
136144
${DOCKER} swarm init
137-
${DOCKER_COMPOSE} -f services/docker-compose.yml -f services/docker-compose.devel.yml -f services/docker-compose.tools.yml config > $(TEMPCOMPOSE).tmp-compose.yml
145+
${DOCKER_COMPOSE} -f services/docker-compose.yml -f services/docker-compose.devel.yml \
146+
-f services/docker-compose-tools.yml \
147+
config > $(TEMPCOMPOSE).tmp-compose.yml
138148
${DOCKER} stack deploy -c $(TEMPCOMPOSE).tmp-compose.yml ${SWARM_STACK_NAME}
139149

140150
.PHONY: up-webclient-devel
@@ -167,7 +177,8 @@ pull-cache: .env
167177
.PHONY: build-cache
168178
# target: build-cache – Builds service images and tags them as 'cache'
169179
build-cache:
170-
${DOCKER_COMPOSE} -f services/docker-compose.yml -f services/docker-compose.cache.yml build --parallel apihub director sidecar storage webclient
180+
# WARNING: first all except webserver and then webserver
181+
${DOCKER_COMPOSE} -f services/docker-compose.yml -f services/docker-compose.cache.yml build --parallel apihub director sidecar storage webclient maintenance
171182
${DOCKER} tag ${DOCKER_REGISTRY}/webclient:cache services_webclient:build
172183
${DOCKER_COMPOSE} -f services/docker-compose.yml -f services/docker-compose.cache.yml build webserver
173184

@@ -201,15 +212,18 @@ endif
201212

202213
# target: push – Pushes images into a registry
203214
push:
204-
${DOCKER_COMPOSE} -f services/docker-compose.yml push ${SERVICES_LIST}
215+
${DOCKER_COMPOSE} -f services/docker-compose.yml \
216+
push ${SERVICES_LIST}
205217

206218
# target: pull – Pulls images from a registry
207219
pull: .env
208-
${DOCKER_COMPOSE} -f services/docker-compose.yml pull ${SERVICES_LIST}
220+
${DOCKER_COMPOSE} -f services/docker-compose.yml \
221+
pull ${SERVICES_LIST}
209222

210223
# target: create-stack-file – use as 'make create-stack-file output_file=stack.yaml'
211224
create-stack-file:
212-
${DOCKER_COMPOSE} -f services/docker-compose.yml config > $(output_file)
225+
${DOCKER_COMPOSE} -f services/docker-compose.yml \
226+
config > $(output_file)
213227

214228
## -------------------------------
215229
# Tools
@@ -273,12 +287,6 @@ setup-check: .env .vscode/settings.json
273287
.venv/bin/pip3 install pylint autopep8 virtualenv pip-tools
274288
@echo "To activate the venv, execute 'source .venv/bin/activate' or '.venv/Scripts/activate.bat' (WIN)"
275289

276-
.venv27: .venv
277-
# target: .venv27 – Creates a python2.7 virtual environment with dev tools
278-
@python2 --version
279-
.venv/bin/virtualenv --python=python2 .venv27
280-
@echo "To activate the venv27, execute 'source .venv27/bin/activate' or '.venv27/Scripts/activate.bat' (WIN)"
281-
282290

283291
## -------------------------------
284292
# Auxiliary targets.

β€Žapi/specs/storage/v0/components/schemas/file_meta_data.yamlβ€Ž

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ components:
3939
type: string
4040
user_name:
4141
type: string
42+
file_id:
43+
type: string
44+
raw_file_path:
45+
type: string
46+
display_file_path:
47+
type: string
48+
created_at:
49+
type: string
50+
last_modified:
51+
type: string
52+
file_size:
53+
type: integer
4254
example:
4355
file_uuid: 'simcore-testing/105/1000/3'
4456
location_id: "0"
@@ -52,3 +64,9 @@ components:
5264
file_name: "example.txt"
5365
user_id: "12"
5466
user_name: "dennis"
67+
file_id: "N:package:e263da07-2d89-45a6-8b0f-61061b913873"
68+
raw_file_path: "Curation/derivatives/subjects/sourcedata/docs/samples/sam_1/sam_1.csv"
69+
display_file_path: "Curation/derivatives/subjects/sourcedata/docs/samples/sam_1/sam_1.csv"
70+
created_at: "2019-06-19T12:29:03.308611Z"
71+
last_modified: "2019-06-19T12:29:03.78852Z"
72+
file_size: 73

β€Žops/db/docker-compose.ymlβ€Ž

Lines changed: 0 additions & 20 deletions
This file was deleted.

β€Žops/db/example/README.mdβ€Ž

Lines changed: 0 additions & 159 deletions
This file was deleted.

β€Žops/db/example/models/__init__.pyβ€Ž

Whitespace-only changes.

β€Žops/db/example/models/a.pyβ€Ž

Lines changed: 0 additions & 9 deletions
This file was deleted.

β€Žops/db/example/models/a.py.0β€Ž

Lines changed: 0 additions & 9 deletions
This file was deleted.

β€Žops/db/example/models/a.py.1β€Ž

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
Β (0)