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

Test #1081

Closed
wants to merge 199 commits into from
Closed

Test #1081

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
fcb5891
Display current input port count and disable add button when at max
jackyyzhang03 May 23, 2023
27c3390
Disable input port delete if already at min
jackyyzhang03 May 23, 2023
cec0751
Display current output port count and disable add button when at max
jackyyzhang03 May 23, 2023
944c5c5
Disable output port delete if already at min
jackyyzhang03 May 23, 2023
fbe5b5e
A max port count of 0 (i.e. no limit) no longer disables add button
jackyyzhang03 May 23, 2023
13fce13
💄 Minor HTML clean up for rodan-client
cadagong May 29, 2023
f1cdc54
➖ Remove dependency imports from index.html
cadagong May 29, 2023
38ff010
💄 Update css of container divs
cadagong May 29, 2023
16fa09d
💄 Update CSS and HTML of Rodan
cadagong Jun 5, 2023
eeefda3
💄 Complete UI (JS, CSS, HTML) overhaul of Rodan main-navbar
cadagong Jun 12, 2023
059414f
💄 Update table styles in rodan main region
cadagong Jun 13, 2023
f384161
Update variable syntax from SCSS to CSS
cadagong Jun 22, 2023
545ad2e
♻️ 💄 Refactor HTML classes and IDs + CSS cleanup + CSS style updates
cadagong Jun 29, 2023
21257e0
♻️ 💄 Refactor HTML Classnames, Table Filters Overhaul, CSS Updates
cadagong Jul 6, 2023
857868c
Add password reset functionality
jackyyzhang03 Jun 20, 2023
531c119
Add user registration
jackyyzhang03 Jun 21, 2023
ae2a067
Add account activation via email
jackyyzhang03 Jun 22, 2023
97097ac
Enable user registration with activation email
jackyyzhang03 Jun 22, 2023
ee62613
Adapt changes to custom user model
jackyyzhang03 Jul 4, 2023
3383154
Update .env files
jackyyzhang03 Jul 4, 2023
df9a416
Fix auth test case
jackyyzhang03 Jul 4, 2023
eb304fd
Connections in workflow builder are now drawing in straight vertical/…
jackyyzhang03 Jul 10, 2023
3347e27
Connections are now included in workflow serializer and can be manipu…
jackyyzhang03 Jul 10, 2023
4f9bcee
Ports and connections no longer disappear for invalid workflows
jackyyzhang03 Jul 10, 2023
27f6bde
Update line item to match new connection appearance
jackyyzhang03 Jul 10, 2023
d564849
Connections are now drawn behind workflow jobs
jackyyzhang03 Jul 10, 2023
fc8f6a0
Improve how connections are rendered when input port is above output …
jackyyzhang03 Jul 11, 2023
0adce3a
Fix workflow test case
jackyyzhang03 Jul 11, 2023
be1dc92
added initial code for column splitting job
MrMondrian Jun 27, 2023
0c927dc
add rodan boiler plate code
MrMondrian Jun 27, 2023
487c9f2
add to yaml file
MrMondrian Jun 28, 2023
60a53e2
fix silly bugs in base.py
MrMondrian Jun 29, 2023
6e570b9
change pad color to white
MrMondrian Jun 29, 2023
c3b8956
change to gray, fix number of split locations
MrMondrian Jun 29, 2023
e96b55f
Push all current changes
MrMondrian Jul 5, 2023
7eae296
Modify split layers for multiple layers
sabrina0822 Jul 6, 2023
3536425
bug fixes
MrMondrian Jul 10, 2023
5fd2ace
change job to only split based on the number of columns entered
MrMondrian Jul 11, 2023
1feb46c
add output of split meta data
MrMondrian Jul 12, 2023
b100c4e
remove debug code
MrMondrian Jul 17, 2023
530a2e6
add fail safe for non-multi column folios
MrMondrian Jul 18, 2023
b4966aa
Enable saving workflow resource assignments
jackyyzhang03 Jul 19, 2023
20d57e4
Casting fix and remove extra files
sabrina0822 Jul 19, 2023
672a43a
Merge pull request #1002 from DDMAL/multi-column-job
sabrina0822 Jul 19, 2023
5298b7c
first draft of unsplitting job
MrMondrian Jul 13, 2023
0528c40
change MEI_encoding.py to have multi-column
MrMondrian Jul 13, 2023
00ce929
fix bounding boxing translation bug
MrMondrian Jul 17, 2023
44dc707
colLayout, cb at start, cb n, and col zone
MrMondrian Jul 18, 2023
650eb06
fix zone bounding box finding for <cb>s
MrMondrian Jul 19, 2023
47a61be
rename variables, add comments
MrMondrian Jul 19, 2023
a7d338b
Add test cases for resource assignments view
jackyyzhang03 Jul 19, 2023
56f490a
Show workflow error messages
jackyyzhang03 Jul 21, 2023
45f16fe
add initial code for staff line distance
MrMondrian Jul 21, 2023
58e60a5
convert job to .py, clean code, use ich's algorithm
MrMondrian Jul 24, 2023
6e8a987
remove notebook file
MrMondrian Jul 24, 2023
e014d9d
change ich's algorithm to take second my common distance
MrMondrian Jul 24, 2023
23982db
merge cherry picked commit accidently pushed to master
MrMondrian Jul 24, 2023
dee4cd0
modify preprocessing to find kernel size based on experimental data
MrMondrian Jul 24, 2023
122e700
change kernel size finder to use interpolating quadratic over image h…
MrMondrian Jul 25, 2023
1e7a5bb
Job groups appear in the center of the jobs it was created from
jackyyzhang03 Jul 25, 2023
610ccf2
change preprocessing/thresholding to be perfect
MrMondrian Jul 25, 2023
cfca3a8
add base code to run as rodan job
MrMondrian Jul 25, 2023
faa7db3
clean up code and add comments
MrMondrian Jul 26, 2023
b4da40b
fix register jobs yaml
MrMondrian Jul 26, 2023
faa20e1
Merge pull request #1026 from DDMAL/jacky/save-resource-assignments
jackyyzhang03 Jul 26, 2023
d005e64
refactor based on feedback in PR review
MrMondrian Jul 26, 2023
69d230d
remove old text alignment models
MrMondrian Jul 27, 2023
408c97b
clean up test file
MrMondrian Jul 27, 2023
664a509
improve readme
MrMondrian Jul 27, 2023
80fb533
add code for generating augmented text alignment datasets
MrMondrian Jul 27, 2023
ca656ae
change default augmentations to reasonable values
MrMondrian Jul 27, 2023
215b890
fix minor mistakes in readme
MrMondrian Jul 27, 2023
a833922
cleanup dataset generation and enable option augs by default
MrMondrian Jul 27, 2023
936b577
fix import statement for ci test
MrMondrian Jul 28, 2023
8b3bb58
Merge pull request #1038 from DDMAL/text-documentation
MrMondrian Jul 28, 2023
9124312
Merge pull request #1028 from DDMAL/mei-float-check
MrMondrian Jul 28, 2023
0d7f478
Merge pull request #1040 from DDMAL/staff-distance
MrMondrian Jul 28, 2023
0741c03
Merge pull request #1030 from DDMAL/unsplit-mei-cherry-pick
MrMondrian Jul 28, 2023
95b1905
Merge pull request #1037 from DDMAL/jacky/job-group-location
cadagong Aug 1, 2023
7d5d3c6
Merge pull request #1033 from DDMAL/jacky/show-workflow-error-messages
cadagong Aug 1, 2023
4c3996d
Merge pull request #907 from DDMAL/jacky/limit-ports-to-min-max
cadagong Aug 3, 2023
44f8be7
Merge branch 'develop' into ui-overhaul
cadagong Aug 3, 2023
ddd11d5
Update readme.md
malajvan Aug 3, 2023
f4c144d
💄♻️ Refactor code related to displaying individual project views in t…
cadagong Aug 4, 2023
01158c3
💄🐛 Add styles to project details panel + restore project-saving and p…
cadagong Aug 4, 2023
53672fc
Merge pull request #1004 from DDMAL/jacky/registration-forgot-password
cadagong Aug 7, 2023
e324648
Merge pull request #1015 from DDMAL/jacky/workflow-builder-improve-co…
cadagong Aug 7, 2023
ade4757
Fix migration conflict
jackyyzhang03 Aug 7, 2023
61c1ad7
Merge pull request #1047 from DDMAL/jacky/fix-migration-conflict
jackyyzhang03 Aug 7, 2023
02995fb
Revert changes to workflow parse, instead initialize existing items d…
jackyyzhang03 Jun 23, 2023
cf60d80
Fix modal error messages
jackyyzhang03 Aug 7, 2023
6e0bf99
Merge pull request #995 from DDMAL/jacky/fix-centering-workflow
jackyyzhang03 Aug 7, 2023
a553555
Hide classifier glyphs by default
jackyyzhang03 Jun 5, 2023
a4c1f99
Fix update manager null pointer exception
jackyyzhang03 Aug 7, 2023
fb61d8f
Merge pull request #879 from DDMAL/jacky/hide-classifier-glyphs-by-de…
jackyyzhang03 Aug 7, 2023
bb6a7c1
Enable using arrow keys to navigate glyphs
jackyyzhang03 Jun 5, 2023
c31e838
Merge pull request #877 from DDMAL/jacky/navigate-glyphs-with-arrow-keys
jackyyzhang03 Aug 7, 2023
2f6b37a
Fix typo in sending workflow failure emails
jackyyzhang03 Jul 20, 2023
42e09a4
💄 UI updates for main content regions
cadagong Aug 8, 2023
f271a3c
Merge branch 'develop' into ui-overhaul
cadagong Aug 8, 2023
9326ed2
➖ Complete bootstrap dependency removal
cadagong Aug 9, 2023
68b4bee
💄 Begin UI overhaul of workflow builder (canvas area + navbar) + mino…
cadagong Aug 9, 2023
a8cb415
Update gamera tag
malajvan Aug 10, 2023
3620401
Update resource label filters on resource collection change
jackyyzhang03 Aug 11, 2023
f36308d
💄♻️ Refactor Modal-related code
cadagong Aug 14, 2023
42973a7
🐛 Fix for workflow runs not showing when a project is first opened
cadagong Aug 14, 2023
12e9316
Merge pull request #1055 from DDMAL/jacky/fix-filter-resource-label
cadagong Aug 14, 2023
01782ae
Merge branch 'develop' into ui-overhaul
cadagong Aug 14, 2023
900d01b
✨💄 Add feature that allows closing and opening table filters
cadagong Aug 14, 2023
2cc6e87
💄 Add fade-in animation for modals
cadagong Aug 15, 2023
8f0a3e8
💄 Minor UI updates mostly related to button styles
cadagong Aug 15, 2023
3d6cbf3
💄♻️ Refactor Individual Run Job Item View + remove LayoutViewModel im…
cadagong Aug 15, 2023
7dc9060
Merge pull request #1052 from DDMAL/fix_read_me
malajvan Aug 16, 2023
4e2f722
💄♻️ Refactor Individual Workflow Run View
cadagong Aug 16, 2023
66c38f4
Merge branch 'develop' into ui-overhaul in order to keep this branch …
cadagong Aug 16, 2023
3f61019
rough fix for empty syllables
MrMondrian Aug 10, 2023
24ea8f2
add draft for syllable state machine
MrMondrian Aug 14, 2023
e8d4dcd
change surface bounding box to work with multi column
MrMondrian Aug 15, 2023
1b60f9d
add diagram for state machine
MrMondrian Aug 15, 2023
23894c4
improve comments and diagram
MrMondrian Aug 15, 2023
2ad09cb
fixed bug, system breaks considered after final neume
MrMondrian Aug 16, 2023
51760b2
reduce indentation
MrMondrian Aug 16, 2023
4d2791f
fix column indexing
MrMondrian Aug 17, 2023
0df3916
add numbers to sb and default pb
MrMondrian Aug 17, 2023
aa96e5d
update documentation
MrMondrian Aug 17, 2023
fb649a4
change order of sub elements in score tag
MrMondrian Aug 17, 2023
d73d992
fix broken import
MrMondrian Aug 17, 2023
1de108f
fix another broken import
MrMondrian Aug 17, 2023
86cdaae
🐛💄 Fix for resource and run job details not showing + minor UI changes
cadagong Aug 17, 2023
676b037
💄 UI updates
cadagong Aug 17, 2023
51ed395
💄 General UI Improvements
cadagong Aug 17, 2023
1f5e303
💄 Improve resource assignment UI
cadagong Aug 17, 2023
6a62dd1
💄 Add "seconds" values to datetime filters
cadagong Aug 18, 2023
798336c
🐛 Fix for error thrown when uploading resources
cadagong Aug 18, 2023
624117b
🐛 Fix for datetime filters not working
cadagong Aug 18, 2023
d874753
rewrite a lot
MrMondrian Aug 19, 2023
5eff013
🐛 Fix for user preferences modal not displaying username and not savi…
cadagong Aug 21, 2023
b6ff1e2
Fix PNG (RGB) job
malajvan Aug 21, 2023
c213a1f
Merge pull request #1070 from DDMAL/fix_rgb
malajvan Aug 22, 2023
d9619ea
add output of all layers split for IC visual
MrMondrian Aug 22, 2023
2e39c8a
Merge pull request #1062 from DDMAL/ui-overhaul
sabrina0822 Aug 22, 2023
5a96d4e
🐛 Fix datetime filters formatting
cadagong Aug 22, 2023
63712bb
💄 Update styles to better fit smaller laptop screens, fix scroll issu…
cadagong Aug 22, 2023
a55af7f
minor changes
MrMondrian Aug 22, 2023
2298ac7
💄 UI improvements to login page and workflow builder context menu
cadagong Aug 22, 2023
61802d7
update test case
MrMondrian Aug 22, 2023
e7256d1
Merge pull request #1048 from DDMAL/jacky/fix-modal-error-messages
cadagong Aug 23, 2023
6b30b5c
Merge pull request #1073 from DDMAL/ui-updates
cadagong Aug 23, 2023
e1a2e80
💄 Update main region UI and workflow builder dropdowns, refactor some…
cadagong Aug 23, 2023
eaa7096
Update IC authenticator to read token from cookies
Aug 23, 2023
6b5a12f
Merge pull request #1051 from DDMAL/update_gamera
malajvan Aug 24, 2023
d37393f
add test file for mei-encoding
MrMondrian Aug 24, 2023
49343db
clean up file
MrMondrian Aug 24, 2023
9e77b90
Merge pull request #1076 from DDMAL/ic-authentication
PythonSemicolon Aug 24, 2023
1e50ad5
switch file to use argparse
MrMondrian Aug 24, 2023
865e58b
change value error to assertion
MrMondrian Aug 24, 2023
0f80c20
add test case for zones and facs bijection
MrMondrian Aug 24, 2023
8407056
add test case for proceeds and follows
MrMondrian Aug 24, 2023
76cf10e
add test case for negative coordinates
MrMondrian Aug 24, 2023
cf4ece6
Add files via upload
JoyfulGen Sep 27, 2022
16abcf7
Delete Resources for issue 68 by Gen directory
JoyfulGen Sep 27, 2022
92c8915
Add files via upload
JoyfulGen Sep 27, 2022
76571f2
Delete Resources for issue 779 by Gen directory
JoyfulGen Sep 27, 2022
594cbae
Remove unneeded dependencies from iipsrv
kqct May 5, 2023
61f77c7
Finished removing IIPSRV from Nginx. Changed ports.
kqct Jun 5, 2023
96489c2
Separated Rodan Client from Rodan Main.
kqct Jun 5, 2023
3d01252
Added new compose file conforming to new setup
kqct Jun 5, 2023
b3b2ba8
Refactored environment variables out into files
kqct Jun 5, 2023
9e3cb6c
Missing version argument for nginx dockerfile
sabrina0822 Jun 5, 2023
62bea06
Remove flower start script
kqct Jun 15, 2023
339cc09
Fix node version
sabrina0822 Aug 8, 2023
82386e7
Update docker compose files and add iipsrv to hooks
sabrina0822 Aug 10, 2023
a85cb97
Update production.yml and staging.yml
sabrina0822 Aug 11, 2023
674cc9c
delete unused sed command
sabrina0822 Aug 14, 2023
a0d2664
Fix arm-compose and add email to staging.env
sabrina0822 Aug 16, 2023
c00420f
Update server_host and compose files
sabrina0822 Aug 17, 2023
7d8500d
Change nginx to log properly
kqct Aug 23, 2023
bd7bd10
Update arm-compose
sabrina0822 Aug 23, 2023
9d6f887
Change server_host to use rodan.staging
sabrina0822 Aug 24, 2023
da51752
Add rodan-client to production.yml
sabrina0822 Aug 24, 2023
dd5d536
Chagned default config to be for localhost
kqct Aug 24, 2023
fb37a56
Re-add wait-for-app so swarm nginx doesn't crash
kqct Aug 24, 2023
ceb5587
Remove old references to legacy docker compose files
kqct Aug 24, 2023
b0c7171
Add wait-for-app script
kqct Aug 24, 2023
16a4791
Merge pull request #1034 from DDMAL/docker-cleanup
sabrina0822 Aug 24, 2023
461a148
added documentation for test file
MrMondrian Aug 24, 2023
ce158ab
add diagram for test file
MrMondrian Aug 24, 2023
8e7d789
update readme
MrMondrian Aug 24, 2023
e9cafb4
Merge pull request #1077 from DDMAL/test-mei-encoding
MrMondrian Aug 25, 2023
fef008d
clean up build mei file
MrMondrian Aug 25, 2023
aaa0c64
remove old tests
MrMondrian Aug 25, 2023
1915055
add script for locally parsing inputs through mei encoding
MrMondrian Aug 25, 2023
dcc13d7
fix paths for local testing
MrMondrian Aug 25, 2023
b180695
Merge pull request #1075 from DDMAL/mei-empty-syllables
MrMondrian Aug 25, 2023
63199f8
Trigger webhook and send message to slack
softcat477 Sep 11, 2023
79826bc
Merge pull request #1078 from DDMAL/webhook
softcat477 Sep 12, 2023
f0e020c
💄 UI updates/fixes
cadagong Sep 15, 2023
0b7cefd
Merge pull request #1031 from DDMAL/jacky/fix-send-failure-email-typo
malajvan Sep 18, 2023
7db8153
Merge pull request #1083 from DDMAL/ui-fixes
softcat477 Oct 3, 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
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TZ=America/Toronto
SERVER_HOST=localhost
10 changes: 0 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ test_prod: pull_prod
# different tag.
docker compose -f test-prod-compose.yml up

build_arm:
@docker build -f ./nginx/Dockerfile.arm --no-cache --tag nginx-local --build-arg VERSION=${DOCKER_TAG} nginx

run_arm:
# Run build_arm first if you don't have the NGINX container.
# Launch ARM instance
@DOCKER_TAG=$(DOCKER_TAG) docker compose -f arm-compose.yml up

run_client:
# Run Rodan-Client for dev (needs local dev up and running)
@docker run -p 8080:9002 -v `pwd`/rodan-client/code:/code ddmal/rodan-client:nightly bash
Expand All @@ -84,7 +76,6 @@ copy_docker_tag:
@docker image tag $(docker images ddmal/rodan-gpu-celery:nightly -q) ddmal/rodan-gpu-celery:$(tag)

pull_prod:
docker pull ddmal/hpc-rabbitmq:$(PROD_TAG)
docker pull ddmal/iipsrv:nightly
docker pull ddmal/nginx:$(PROD_TAG)
docker pull ddmal/postgres-plpython:$(PROD_TAG)
Expand Down Expand Up @@ -180,7 +171,6 @@ scale:
@docker service scale rodan_redis=$(num)
# @docker service scale rodan_postgres=$(num)
@docker service scale rodan_rabbitmq=$(num)
@docker service scale rodan_hpc-rabbitmq=$(num)

health:
@docker inspect --format "{{json .State.Health }}" $(log) | jq
Expand Down
117 changes: 0 additions & 117 deletions arm-compose.yml

This file was deleted.

6 changes: 3 additions & 3 deletions build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ services:
dockerfile: Dockerfile
image: "ddmal/rodan-client:nightly"

hpc-rabbitmq:
iipsrv:
build:
context: ./hpc-rabbitmq
context: ./iipsrv
dockerfile: Dockerfile
image: "ddmal/hpc-rabbitmq:nightly"
image: "ddmal/iipsrv:nightly"
58 changes: 39 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ services:
- rabbitmq
- redis
- rodan-main
environment:
TZ: America/Toronto
SERVER_HOST: localhost
ports:
- "80:80"
- "443:443"
Expand All @@ -19,13 +22,19 @@ services:
rodan-main:
image: "ddmal/rodan-main:${DOCKER_TAG}"
healthcheck:
test: ["CMD-SHELL", "/usr/bin/curl -H 'User-Agent: docker-healthcheck' http://localhost:8000/api/?format=json || exit 1"]
test:
[
"CMD-SHELL",
"/usr/bin/curl -H 'User-Agent: docker-healthcheck' http://localhost:8000/api/?format=json || exit 1"
]
interval: "10s"
timeout: "5s"
retries: 2
start_period: "2m"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: None
depends_on:
- postgres
Expand All @@ -38,18 +47,38 @@ services:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"

rodan-client:
image: "ddmal/rodan-client:${DOCKER_TAG}"
volumes:
- "./rodan-client/code:/code"
- "./rodan-client/config/configuration.json:/client/configuration.json"

iipsrv:
image: "ddmal/iipsrv:nightly"
image: "ddmal/iipsrv:${DOCKER_TAG}"
volumes:
- "resources:/rodan/data"

celery:
image: "ddmal/rodan-main:${DOCKER_TAG}"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: celery
healthcheck:
test: ["CMD", "celery", "inspect", "ping", "-A", "rodan", "--workdir", "/code/Rodan", "-d", "celery@celery"]
test:
[
"CMD",
"celery",
"inspect",
"ping",
"-A",
"rodan",
"--workdir",
"/code/Rodan",
"-d",
"celery@celery"
]
interval: "30s"
timeout: "3s"
start_period: "1m"
Expand All @@ -69,6 +98,8 @@ services:
image: "ddmal/rodan-python3-celery:${DOCKER_TAG}"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: Python3
depends_on:
- postgres
Expand All @@ -78,7 +109,6 @@ services:
- celery
env_file:
- ./scripts/local.env
- ./hpc-rabbitmq/scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
Expand All @@ -87,6 +117,8 @@ services:
image: "ddmal/rodan-gpu-celery:${DOCKER_TAG}"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: GPU
depends_on:
- postgres
Expand All @@ -103,7 +135,7 @@ services:
redis:
image: "redis:alpine"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
Expand All @@ -113,7 +145,7 @@ services:
postgres:
image: "ddmal/postgres-plpython:${DOCKER_TAG}"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "postgres"]
test: [ "CMD-SHELL", "pg_isready", "-U", "postgres" ]
interval: 10s
timeout: 5s
retries: 5
Expand All @@ -123,7 +155,7 @@ services:
rabbitmq:
image: "rabbitmq:alpine"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: "30s"
timeout: "3s"
retries: 3
Expand All @@ -132,17 +164,5 @@ services:
env_file:
- ./scripts/local.env

hpc-rabbitmq:
image: "ddmal/hpc-rabbitmq:${DOCKER_TAG}"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: "30s"
timeout: "3s"
retries: 3
env_file:
- ./hpc-rabbitmq/scripts/local.env
ports:
- "5672:5672"

volumes:
resources:
33 changes: 23 additions & 10 deletions hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
# hooks/build
# https://docs.docker.com/docker-cloud/builds/advanced/

# This "useless" image is build to prevent dockerhub from overwriting
# the nightly image with it's obligatory minimum of a build rule. If we want a build
# trigger with a HTTPS POST request, we must have at least 1 build rule.
docker build \
--tag ddmal/rodan:placeholder \
.

# RODAN_TAG=`cd rodan-main/code && git describe --tags --always`
# RODAN_CLIENT_TAG=`cd rodan-client/code && git describe --tags --always`
# RODAN_DOCKER_TAG=`git describe --tags --always`
Expand All @@ -29,6 +22,26 @@ echo "[+] Building images with tag: $DOCKER_TAG"

set -o errexit

# Fail building images
# Push to trigger webhook and send a message to slack
trap 'cleanup $?' EXIT
cleanup() {
if [ "$1" != "0" ]; then
echo "An error occurs when building images."
echo "Push to another repo to trigger webhook on failure with tag syntax: {repo name}-{build status}-{source branch}-{docker tag}"

docker tag ddmal/docker-webhook:placeholder ddmal/docker-webhook:rodan-fail-${SOURCE_BRANCH}-${DOCKER_TAG}
docker push ddmal/docker-webhook:rodan-fail-${SOURCE_BRANCH}-${DOCKER_TAG}
fi
}

# This "useless" image is build to prevent dockerhub from overwriting
# the nightly image with it's obligatory minimum of a build rule. If we want a build
# trigger with a HTTPS POST request, we must have at least 1 build rule.
docker build \
--tag ddmal/docker-webhook:placeholder \
.

###############################################################################
# Stage 1
# Build and push Python3-Celery image
Expand Down Expand Up @@ -110,12 +123,12 @@ docker build \
--tag ddmal/nginx:${DOCKER_TAG} \
./nginx

echo "[+] Building HPC-RabbitMQ"
echo "[+] Building iipsrv"

docker build \
--no-cache \
--build-arg VERSION=${DOCKER_TAG} \
--tag ddmal/hpc-rabbitmq:${DOCKER_TAG} \
./hpc-rabbitmq
--tag ddmal/iipsrv:${DOCKER_TAG} \
./iipsrv

echo "[+] Finished"
20 changes: 20 additions & 0 deletions hooks/post_build
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# hooks/post_build

source ./hooks/helper.sh
if [[ ret_code -eq 1 ]]; then
echo "[-] no branch detected, fallback to use docker tag=$DOCKER_TAG"
echo "[-] Stop building due to wrong tag: $DOCKER_TAG"
exit 1
elif [[ ret_code -eq 2 ]]; then
echo "[-] no tag on release branch, fallback to use docker tag=$DOCKER_TAG"
echo "[-] Stop building due to wrong tag: $DOCKER_TAG"
exit 1
fi

# Pass testing a pull request
# Push to trigger webhook and send a message to slack
if [[ "$DOCKER_TAG" == "this" ]]; then
docker tag ddmal/docker-webhook:placeholder ddmal/docker-webhook:rodan-pass-${SOURCE_BRANCH}-${DOCKER_TAG}
docker push ddmal/docker-webhook:rodan-pass-${SOURCE_BRANCH}-${DOCKER_TAG}
fi
Loading