File tree 13 files changed +32
-209
lines changed
examples/staging-full-stack
13 files changed +32
-209
lines changed Original file line number Diff line number Diff line change 1
1
services :
2
+
2
3
db :
3
4
cpus : 1.0
4
5
mem_limit : " 1G"
@@ -28,16 +29,16 @@ services:
28
29
networks :
29
30
- fractal
30
31
31
- server :
32
- hostname : server
33
- container_name : server
32
+ fractal- server :
33
+ hostname : fractal- server
34
+ container_name : fractal- server
34
35
cpus : 3.0
35
36
mem_limit : 5g
36
37
build :
37
- context : server
38
+ context : ./fractal- server
38
39
dockerfile : Dockerfile
39
40
args :
40
- - FRACTAL_SERVER_VERSION=2.14.0a0
41
+ - FRACTAL_SERVER_VERSION=2.14.0a1
41
42
depends_on :
42
43
db :
43
44
condition : service_healthy
@@ -46,22 +47,22 @@ services:
46
47
ports :
47
48
- 8000:8000
48
49
healthcheck :
49
- test : wget http://server:8000/api/alive/ > /dev/null 2>&1
50
+ test : wget http://fractal- server:8000/api/alive/ > /dev/null 2>&1
50
51
interval : 5s
51
52
timeout : 2s
52
53
retries : 5
53
54
networks :
54
55
- fractal
55
56
56
- web :
57
+ fractal- web :
57
58
container_name : fractal-web
58
59
build :
59
- context : ./web
60
+ context : ./fractal- web
60
61
dockerfile : Dockerfile
61
62
args :
62
- - FRACTAL_WEB_VERSION=1.17.0-a0
63
+ - FRACTAL_WEB_VERSION=1.17.0-a1
63
64
depends_on :
64
- server :
65
+ fractal- server :
65
66
condition : service_healthy
66
67
ports :
67
68
- 5173:5173
@@ -75,7 +76,7 @@ services:
75
76
args :
76
77
- FRACTAL_CLIENT_VERSION=2.7.1
77
78
depends_on :
78
- server :
79
+ fractal- server :
79
80
condition : service_healthy
80
81
volumes :
81
82
- data:/data
@@ -97,7 +98,7 @@ services:
97
98
container_name : vizarr
98
99
image : ghcr.io/fractal-analytics-platform/fractal-vizarr-viewer:stable
99
100
environment :
100
- - FRACTAL_SERVER_URL=http://server:8000
101
+ - FRACTAL_SERVER_URL=http://fractal- server:8000
101
102
- AUTHORIZATION_SCHEME=fractal-server
102
103
ports :
103
104
- 3000:3000
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ FRACTAL_RUNNER_BACKEND=local
5
5
FRACTAL_TASKS_DIR = /data/app/Tasks
6
6
FRACTAL_RUNNER_WORKING_BASE_DIR = /data/app/Artifacts
7
7
8
-
9
8
FRACTAL_TASKS_PYTHON_DEFAULT_VERSION = " 3.10"
10
9
FRACTAL_TASKS_PYTHON_3_10 = /usr/bin/python3
11
10
12
11
FRACTAL_VIEWER_AUTHORIZATION_SCHEME = viewer-paths
13
12
14
-
15
13
JWT_EXPIRE_SECONDS = 84600
16
14
17
15
POSTGRES_HOST = fractal-db
Original file line number Diff line number Diff line change 1
- FROM ghcr.io/fractal-analytics-platform/ubuntu22-slurm:0.1
1
+ FROM ubuntu:22.04
2
2
3
- ARG FRACTAL_SERVER_VERSION
3
+ RUN apt update -y
4
+ RUN apt install -y wget vim less python3 python3-pip python3-venv
4
5
5
- RUN echo "Install fractal-server ${ FRACTAL_SERVER_VERSION}"
6
+ ARG FRACTAL_SERVER_VERSION
6
7
RUN pip3 install fractal-server==${FRACTAL_SERVER_VERSION}
7
8
8
9
COPY run_server.sh ./
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
3
4
fractalctl set-db
4
5
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ENV NODE_MAJOR_VERSION=20
7
7
8
8
RUN wget -qO- "https://github.com/fractal-analytics-platform/fractal-web/releases/download/v${FRACTAL_WEB_VERSION}/node-${NODE_MAJOR_VERSION}-fractal-web-v${FRACTAL_WEB_VERSION}.tar.gz" | tar -xz
9
9
10
- ENV FRACTAL_SERVER_HOST=http://server:8000
10
+ ENV FRACTAL_SERVER_HOST=http://fractal- server:8000
11
11
ENV PUBLIC_FRACTAL_VIZARR_VIEWER_URL=http://localhost:3000/vizarr
12
12
ENV PUBLIC_FRACTAL_ADMIN_SUPPORT_EMAIL=
13
13
ENV PUBLIC_OAUTH_CLIENT_NAME=
Original file line number Diff line number Diff line change 1
- # Auxiliary targets
2
-
3
1
up :
4
2
docker compose up
5
3
6
4
build :
7
- docker compose build --progress=plain
5
+ docker compose --progress=plain build
8
6
9
7
build-no-cache :
10
- docker compose build --no-cache --progress=plain
8
+ docker compose --progress=plain build --no-cache
11
9
12
10
clean :
13
11
docker compose down -v --timeout 1
14
12
15
13
clean-with-volumes :
16
14
docker compose down --volumes -v --timeout 1
15
+
16
+
17
+ all-from-scratch : clean-with-volumes build-no-cache
18
+ docker compose up
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
FROM python:3.11-slim
2
2
3
- RUN apt update
3
+ RUN apt update -y
4
4
RUN apt install -y unzip wget
5
5
6
6
ARG FRACTAL_CLIENT_VERSION
7
7
RUN pip install fractal-client==${FRACTAL_CLIENT_VERSION}
8
8
9
- ENV FRACTAL_SERVER=http://server:8000
9
+ ENV FRACTAL_SERVER=http://fractal- server:8000
10
10
11
11
ENV FRACTAL_PASSWORD=1234
12
12
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
# Update user
4
6
FRACTAL_USER_ID=$( fractal --batch user whoami)
5
7
fractal user edit " $FRACTAL_USER_ID " --new-project-dir /data/zarrs/test01
6
8
7
9
# Assuming that group 1 is the ALL
8
10
ALL_GROUP_ID=1
11
+ # shellcheck disable=SC2046
9
12
if [ $( fractal group get " $ALL_GROUP_ID " | grep name | grep All) != " 0" ]; then
10
13
echo " User group with id $ALL_GROUP_ID is not the 'All' group. Exit."
11
14
exit 1
@@ -14,6 +17,7 @@ fractal group update "$ALL_GROUP_ID" --new-viewer-paths /data
14
17
15
18
# Download test zarr data
16
19
mkdir -p /data/zarrs
20
+ # shellcheck disable=SC2164
17
21
cd /data/zarrs/
18
22
wget --quiet https://zenodo.org/records/10424292/files/20200812-CardiomyocyteDifferentiation14-Cycle1_mip.zarr.zip
19
23
unzip -q 20200812-CardiomyocyteDifferentiation14-Cycle1_mip.zarr.zip
@@ -22,6 +26,7 @@ rm -r 20200812-CardiomyocyteDifferentiation14-Cycle1_mip.zarr.zip __MACOSX
22
26
# Download test image data
23
27
mkdir -p /data/images
24
28
mkdir /data/images/10.5281_zenodo.8287221
29
+ # shellcheck disable=SC2164
25
30
cd /data/images/10.5281_zenodo.8287221
26
31
wget --quiet https://zenodo.org/api/records/8287221/files-archive
27
32
mv files-archive files-archive.zip
You can’t perform that action at this time.
0 commit comments