Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
aad8a61
build: Improvements to the build
Sep 5, 2022
c80b61b
Switch to ENV for stack version
Sep 15, 2022
4f39e03
- Remover branch 403 from Actions
Sep 15, 2022
be73503
Merge pull request #64 from xchem/703
alanbchristie Sep 15, 2022
35f5530
Attempt to fix STACK VERSION
Sep 15, 2022
2aa0c51
Another attempt at preserving the ENV
Sep 15, 2022
87aa540
Typo in variable assignment
Sep 15, 2022
52d1080
Removed build on branch 703
Sep 15, 2022
bacc786
Merge pull request #65 from xchem/703
alanbchristie Sep 15, 2022
81370aa
Merge remote-tracking branch 'origin/master' into 917
Sep 26, 2022
60a3884
Changed default env
Sep 27, 2022
894506d
Readme tweak
Sep 27, 2022
62178d0
Updated action (using 1.0.0 for b/e & f/e)
Sep 27, 2022
bf1bb6f
Experiment with f/e tag 3.0.0
Sep 27, 2022
dbff6cb
Use of backend 2.0.0
Sep 27, 2022
29302d5
Re-ordered workflow variables
Sep 27, 2022
e73d2a7
Merge pull request #66 from xchem/917
alanbchristie Sep 27, 2022
fedabad
Update changelog.md
rsanchezgarc Sep 29, 2022
951dcb2
Update changelog.md
rsanchezgarc Sep 29, 2022
939df7d
Update changelog.md
rsanchezgarc Sep 29, 2022
b092810
Revert variable values
Oct 27, 2022
7863c15
Merge pull request #67 from alanbchristie/master
rsanchezgarc Oct 27, 2022
5a1ebf6
Fix for 'stable'/production build
Nov 1, 2022
d18bfa7
New stable build job
Nov 1, 2022
8bd02da
Merge pull request #69 from alanbchristie/master
alanbchristie Nov 1, 2022
d82a23a
Update build-main.yaml
rsanchezgarc Nov 3, 2022
23ed257
Fix for tagged build
Nov 3, 2022
eafb001
Merge pull request #70 from alanbchristie/master
alanbchristie Nov 3, 2022
d9c6053
feat: Should now deploy to staging
Nov 23, 2022
32fe3be
ci: All builds deploy to staging
Nov 24, 2022
9e29783
Update build-main.yaml
rsanchezgarc Dec 16, 2022
46e09f6
Update changelog.md
rsanchezgarc Dec 16, 2022
9a55c7f
Multistage build - relies on new fe and be images
Apr 3, 2023
3adebba
New BE/FE tags
May 16, 2023
272fc5e
Update build-main.yaml
rsanchezgarc May 16, 2023
ca63626
Merge branch '2023-05-1' of https://github.com/xchem/fragalysis-stack…
May 16, 2023
b61381a
Merge pull request #71 from xchem/2023-05-1
rsanchezgarc May 16, 2023
a8d9ee4
Updated backend tag to bug-fix release 2023.06.1
Jun 20, 2023
b37388d
Fixed version badge
Jun 20, 2023
91811a3
Switch to BE 2023.07.1
Jul 19, 2023
1706888
Removed local docker-entrypoint (now expects backend's)
Jul 25, 2023
83db0a8
Removed experimental badge
Jul 26, 2023
069f935
build: dockerignore and better docker-compose
Jul 27, 2023
654f1b0
Merge pull request #72 from xchem/m2ms-1077
Waztom Jul 27, 2023
e2780fb
FE_BRANCH becomes FE_IMAGE_TAG
Jul 27, 2023
5b34acd
Merge from branch 'master'
Jul 27, 2023
a9391d6
Removed commented-out code
Jul 27, 2023
dd47852
docs: Minor doc improvements in the dockerfile
Jul 27, 2023
d8ac271
ci: Action now uses FE_IMAGE_TAG
Jul 27, 2023
7afef05
Update build-main.yaml
rsanchezgarc Aug 3, 2023
2333614
Merge pull request #73 from xchem/rsanchezgarc-patch-1
rsanchezgarc Aug 3, 2023
64622f9
Update README.md
mwinokan Aug 3, 2023
0747c62
Red release - update build-main.yaml
Waztom Aug 4, 2023
d677904
Merge pull request #75 from xchem/Waztom-patch-1
mwinokan Aug 4, 2023
56bbc27
Promote FE 2023.08.2 to production
mwinokan Aug 9, 2023
12e7c60
Merge pull request #76 from xchem/mwinokan-patch-1
mwinokan Aug 9, 2023
7fe3190
Update F/E to 2023.08.3
mwinokan Aug 9, 2023
d27b4c2
Merge pull request #77 from xchem/mwinokan-patch-2
mwinokan Aug 9, 2023
928152c
Update F/E tag to 2023.08.4
mwinokan Aug 10, 2023
6ba9eef
Merge pull request #78 from xchem/mwinokan-patch-3
mwinokan Aug 10, 2023
621372b
Merge pull request #74 from xchem/mwinokan-release-info
mwinokan Aug 10, 2023
058c3ff
ci: Fixes notification to post-deploy
Aug 10, 2023
8610a78
ci: Separate staging/production notification
Aug 11, 2023
f566fa4
Merge pull request #80 from xchem/m2ms-1128
alanbchristie Aug 11, 2023
d5ac5bc
ci: Possible fix for missing webhooks
Aug 11, 2023
814915b
ci: Doc tweak
Aug 11, 2023
723fa19
ci: Adds pre-deployment notification
Aug 11, 2023
51aaa17
Merge pull request #81 from xchem/m2ms-1128
alanbchristie Aug 11, 2023
b93bad0
ci: An attempt to fix slack notifications
Aug 14, 2023
17c91aa
Merge pull request #82 from xchem/m2ms-1128
alanbchristie Aug 14, 2023
d2e7989
An attempt to fix CI action build warnings
Aug 14, 2023
b94e5bd
Merge pull request #83 from xchem/m2ms-1128
alanbchristie Aug 15, 2023
501d045
f/e --> 2023.08.5, b/e --> 2023.08.1
mwinokan Aug 16, 2023
ac11318
Merge pull request #84 from xchem/mwinokan-patch-3
alanbchristie Aug 16, 2023
230d72f
f/e --> 2023.08.6
mwinokan Aug 24, 2023
add5305
Merge pull request #85 from xchem/mwinokan-patch-3
mwinokan Aug 24, 2023
e782fc5
f/e --> 2023.08.7
mwinokan Aug 25, 2023
f0c248f
Merge pull request #86 from xchem/mwinokan-patch-4
mwinokan Aug 25, 2023
0ae12b7
feat: Inherits faster build from m2ms issue 1045
Sep 11, 2023
839eb3f
docs: Adds comment to Dockerfile
Sep 11, 2023
61532fc
docs: Adss comment about entrypoint file
Sep 11, 2023
50825a2
refactor: Stack image (inclu fe & be) now called fragalysis2
Sep 11, 2023
8c9aae6
build: Reversed image name change
Sep 11, 2023
7f96c52
ci: Better git output and image metadata
Sep 12, 2023
2c85477
fix: Removed metadata (tag) feature
Sep 18, 2023
a52aa7f
Update build-main.yaml
Waztom Sep 25, 2023
a8a58ad
Update build-main.yaml
Waztom Sep 26, 2023
060a8df
Merge pull request #87 from xchem/Alans-stuck-progress-lost-fix
Waztom Sep 26, 2023
b5ca8e8
f/e tag --> 2023.10.1
mwinokan Oct 5, 2023
f9f35e0
Merge pull request #88 from xchem/mwinokan-patch-4
mwinokan Oct 5, 2023
bb7c700
f/e tag --> 2023.10.2
mwinokan Oct 11, 2023
0291a9b
Merge pull request #89 from xchem/mwinokan-patch-4
mwinokan Oct 11, 2023
e6987cf
f/e tag to 2023.10.3
mwinokan Oct 16, 2023
0e8781d
Merge pull request #90 from xchem/mwinokan-patch-5
mwinokan Oct 16, 2023
4949031
f/e tag --> 2023.11.1
mwinokan Nov 7, 2023
c5a00c0
Merge pull request #91 from xchem/mwinokan-patch-5
mwinokan Nov 7, 2023
f5bbb50
fix: Adjustments to build for XCA fragalysis
Nov 9, 2023
cdd5644
docs: Doc tweaks
Nov 10, 2023
59c1413
Merge branch 'm2ms-1077' into master-to-1077-alignment
alanbchristie Nov 10, 2023
0e20fe9
Merge pull request #92 from xchem/master-to-1077-alignment
alanbchristie Nov 10, 2023
799a671
ci: Fix variable typo introduced in merge
Nov 10, 2023
225a5bd
build: Updatd compose file, gitignore & docs
Nov 10, 2023
4e36bb1
docs: Doc tweak
Nov 10, 2023
7e5a560
Merge pull request #93 from xchem/m2ms-1077
alanbchristie Nov 13, 2023
5cb0043
ci: Fix AWX job template names
Nov 13, 2023
dfdf486
ci: Removed test stage (responsibility of f/e & b/e) and doc tweaks
Nov 13, 2023
57d0fa1
fix: New JobTemplate names
Jan 29, 2024
78fd76c
Merge pull request #94 from xchem/m2ms-1285
Waztom Jan 31, 2024
40b0cf7
fix: Update action versions
Feb 1, 2024
ebd2563
Merge pull request #95 from xchem/m2ms-1320
Waztom Feb 1, 2024
389ad64
build: Use of latest (v2) f/e and b/e tags
Mar 13, 2024
68c8a79
build: Adjusted f/e tag for latest tag
Mar 13, 2024
8788c19
ci: New f/e tag
Mar 13, 2024
4aa7829
ci: Fix production release
Mar 13, 2024
16f2350
B/E tag to 2024.03.4
mwinokan Mar 22, 2024
62eef47
Merge pull request #96 from xchem/mwinokan-patch-5
mwinokan Mar 22, 2024
affa0be
BE tag to 2024.04.1
kaliif Apr 9, 2024
50daf8d
Merge pull request #97 from xchem/release-be-2024.04.1
kaliif Apr 9, 2024
4959055
ci: Attempt to expose deployment failures
May 20, 2024
085dd0f
Merge pull request #98 from xchem/m2ms-1436
alanbchristie May 28, 2024
f4e43df
Update build-main.yaml
mwinokan Sep 13, 2024
7014bc1
Merge pull request #99 from xchem/mwinokan-patch-6
mwinokan Sep 13, 2024
f94c117
Update build-main.yaml
mwinokan Sep 23, 2024
51e816d
Merge pull request #100 from xchem/mwinokan-patch-7
mwinokan Sep 23, 2024
6fbe6a5
b/e --> 2024.09.4
mwinokan Sep 30, 2024
3bdd530
Merge pull request #101 from xchem/mwinokan-patch-8
mwinokan Oct 1, 2024
24b078d
Mint incremental release tags 2024.11.1
mwinokan Nov 5, 2024
1c57102
Merge pull request #102 from xchem/mwinokan-patch-9
mwinokan Nov 5, 2024
2155d35
media directory hot-fix issue 1564
mwinokan Nov 8, 2024
2bffb1a
Merge pull request #103 from xchem/mwinokan-patch-10
mwinokan Nov 8, 2024
8c8fbcc
Update f/e & b/e to 2024.11.2
mwinokan Nov 27, 2024
2ec7f8f
ci: Use updated trigger-awx-action
Dec 3, 2024
af41235
Merge pull request #104 from xchem/m2ms-1451-awx-trigger
alanbchristie Dec 3, 2024
ed4d698
Snapshots refactor and mint incremental
mwinokan Dec 6, 2024
53e4f18
Update build-main.yaml
mwinokan Dec 6, 2024
8e8c169
Merge pull request #105 from xchem/mwinokan-patch-11
mwinokan Dec 6, 2024
ff12062
2024.12.2 Mint incremental release (target settings UI, density snaps…
mwinokan Dec 12, 2024
4fa5ab8
Merge pull request #106 from xchem/mwinokan-patch-12
mwinokan Dec 12, 2024
aec3a15
b/e and f/e to user 2025.01.1
mwinokan Jan 28, 2025
e4a0934
Merge pull request #107 from xchem/mwinokan-patch-13
mwinokan Jan 28, 2025
5d0e104
ci: Attempt to trigger behaviour tests from latest build
Feb 6, 2025
4b58f27
ci: Behaviour only on non-production builds
Feb 6, 2025
2d0e8a4
Merge pull request #108 from xchem/m2ms-1660
alanbchristie Feb 6, 2025
cc386f0
Update build-main.yaml
mwinokan Feb 27, 2025
703018f
Merge pull request #109 from xchem/mwinokan-patch-14
mwinokan Feb 27, 2025
f496731
Update f/e & b/e to 2025.03.1
mwinokan Mar 4, 2025
f992b0c
Merge pull request #110 from xchem/mwinokan-patch-15
mwinokan Mar 4, 2025
a2a8aba
Update f/e & b/e to 2025.03.2
mwinokan Mar 14, 2025
85ce924
Merge pull request #111 from xchem/mwinokan-patch-16
mwinokan Mar 14, 2025
abaa4ad
Update f/e to 2025.03.3
mwinokan Mar 17, 2025
bf2b9a1
Merge pull request #112 from xchem/mwinokan-patch-17
mwinokan Mar 17, 2025
be5df3a
Update f/e to 2025.03.4
mwinokan Mar 18, 2025
e880039
Merge pull request #113 from xchem/mwinokan-patch-18
mwinokan Mar 18, 2025
a998373
b/e to 2025.03.3 and hotfix for Zika_NS2B3
mwinokan Mar 24, 2025
f279091
Merge pull request #114 from xchem/mwinokan-patch-19
mwinokan Mar 24, 2025
dead5e3
Update build-main.yaml
mwinokan Mar 27, 2025
a856aaf
Merge pull request #115 from xchem/mwinokan-patch-20
mwinokan Mar 27, 2025
6961153
Update build-main.yaml
mwinokan Apr 4, 2025
c67f28e
Merge pull request #116 from xchem/mwinokan-patch-21
mwinokan Apr 4, 2025
e7920d7
f/e & b/e -> 2025.04.2
mwinokan Apr 22, 2025
c0f0f15
Merge pull request #117 from xchem/mwinokan-patch-22
mwinokan Apr 22, 2025
645217e
f/e & b/e -> 2025.05.1
mwinokan May 14, 2025
9facb19
f/e & b/e -> 2025.05.1
mwinokan May 14, 2025
d5ed944
b/e -> 2025.06.1
mwinokan Jun 11, 2025
1eaa8cf
Merge pull request #119 from xchem/mwinokan-patch-24
mwinokan Jun 11, 2025
6fabebf
f/e & b/e -> 2025.06.1
mwinokan Jun 30, 2025
08a7cd8
Merge pull request #120 from xchem/mwinokan-patch-25
mwinokan Jun 30, 2025
93768c5
docs: LICENCE copyright fix
Jul 7, 2025
c86a372
Merge pull request #121 from xchem/licence-copyright-fix
alanbchristie Jul 30, 2025
5573e86
f/e & b/e -> 2025.09.1
mwinokan Sep 9, 2025
3452d98
Merge pull request #122 from xchem/mwinokan-patch-26
mwinokan Sep 9, 2025
aeda40c
f/e & b/e -> 2025.09.2
mwinokan Sep 24, 2025
f59daea
Merge pull request #123 from xchem/mwinokan-patch-27
mwinokan Sep 24, 2025
df873fb
Update build-main.yaml
mwinokan Oct 14, 2025
e46f42f
Merge pull request #124 from xchem/mwinokan-patch-28
mwinokan Oct 14, 2025
05d90bd
b/e -> 2025.10.2
mwinokan Oct 21, 2025
de54783
b/e -> 2025.10.2
mwinokan Oct 21, 2025
f301abd
b/e -> 2025.10.3, f/e -> 2025.10.2
mwinokan Oct 30, 2025
dcceb34
Merge pull request #126 from xchem/mwinokan-patch-30
mwinokan Oct 30, 2025
1b6df40
f/e -> 2025.11.1
mwinokan Nov 12, 2025
9aade0b
Merge pull request #127 from xchem/mwinokan-patch-32
mwinokan Nov 12, 2025
4eca01d
Experiment with OSV scanner
Dec 16, 2025
caad55a
ci: Add OSV scan to built image
Dec 17, 2025
58a7832
ci: Nobble behaviour tests (broken)
Dec 17, 2025
ed59fb5
Merge pull request #128 from xchem/m2ms-1981
alanbchristie Dec 17, 2025
ecff7c6
build: Update to fe 2026.01.1 and be 2026.01.1
Jan 29, 2026
053fa6b
build: Use b/e 2026.02.1
Feb 12, 2026
c4404d2
ci: Use of trigger-awx-action@v3
Feb 12, 2026
3ad90c9
build: Use of b/e 2026.02.2
Feb 20, 2026
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.github/
.git/
305 changes: 203 additions & 102 deletions .github/workflows/build-main.yaml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea
.idea

data/
89 changes: 38 additions & 51 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,72 +1,59 @@
ARG BE_NAMESPACE=xchem
ARG BE_IMAGE_TAG=latest
FROM ${BE_NAMESPACE}/fragalysis-backend:${BE_IMAGE_TAG}
ARG FE_NAMESPACE=xchem
ARG FE_IMAGE_TAG=latest
ARG STACK_NAMESPACE=xchem
ARG STACK_VERSION=0.0.0
# Start with the frontend container image AS 'frontend'.
# As part of the build we will copy the contents of its '/frontend' directory
# into the backend image that we also pull in.
FROM ${FE_NAMESPACE}/fragalysis-frontend:${FE_IMAGE_TAG} AS frontend

# We have to repeat the ARG assignments...
# ARGs are reset during the FROM action
# See https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact

# Us
ARG STACK_NAMESPACE=xchem
# Backend origin (a container)
ARG BE_NAMESPACE=xchem
ARG BE_IMAGE_TAG=latest
# By default this is hosted on the xchem project's master branch
# but it can be redirected with a couple of build-args.
ARG FE_NAMESPACE=xchem
ARG FE_BRANCH=master
ARG STACK_NAMESPACE
ARG STACK_VERSION
# Backend image identity
ARG BE_NAMESPACE
ARG BE_IMAGE_TAG
# Frontend image identity
ARG FE_NAMESPACE
ARG FE_IMAGE_TAG

# Get the backend image
# (we'll copy the pre-compiled frontend into it)
FROM ${BE_NAMESPACE}/fragalysis-backend:${BE_IMAGE_TAG}

# We have to repeat the ARG assignments...
ARG STACK_NAMESPACE
ARG STACK_VERSION
ARG BE_NAMESPACE
ARG BE_IMAGE_TAG
ARG FE_NAMESPACE
ARG FE_IMAGE_TAG

# Set the container ENV to record the origin of the b/e and f/e
# (for diagnostic purposes)
ENV BE_NAMESPACE ${BE_NAMESPACE}
ENV BE_IMAGE_TAG ${BE_IMAGE_TAG}
ENV FE_NAMESPACE ${FE_NAMESPACE}
ENV FE_BRANCH ${FE_BRANCH}
ENV FE_IMAGE_TAG ${FE_IMAGE_TAG}
ENV STACK_NAMESPACE ${STACK_NAMESPACE}
ENV STACK_VERSION ${STACK_VERSION}

ENV APP_ROOT /code
ENV APP_USER_ID 2000

RUN useradd -c 'Container user' --user-group --uid ${APP_USER_ID} --home-dir ${APP_ROOT} -s /bin/bash frag
RUN apt-get update -y &&\
apt-get install -y wget gnupg bzip2 &&\
apt-get clean
# Copy the frontend code from the frontend container
WORKDIR ${APP_ROOT}/frontend
WORKDIR ${APP_ROOT}/static

# Install yarn (instead of npm)
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update -y && apt-get install -y yarn && apt-get clean

# Install nodejs
RUN wget -q https://nodejs.org/download/release/v12.22.11/node-v12.22.11-linux-x64.tar.gz &&\
mkdir -p /usr/local/lib/nodejs &&\
tar -xf node-v12.22.11-linux-x64.tar.gz -C /usr/local/lib/nodejs &&\
rm node-v12.22.11-linux-x64.tar.gz
ENV PATH /usr/local/lib/nodejs/node-v12.22.11-linux-x64/bin:$PATH

# Add in the frontend code
RUN git clone https://github.com/${FE_NAMESPACE}/fragalysis-frontend ${APP_ROOT}/frontend
RUN cd ${APP_ROOT}/frontend && git checkout ${FE_BRANCH}

# Now build the code
RUN cd ${APP_ROOT}/frontend && yarn install
RUN cd ${APP_ROOT}/frontend && yarn run build

ADD docker-entrypoint.sh ${APP_ROOT}/docker-entrypoint.sh

# Symlink these
RUN mkdir ${APP_ROOT}/static
COPY --from=frontend /frontend ${APP_ROOT}/frontend
RUN ln -s ${APP_ROOT}/frontend/bundles/ ${APP_ROOT}/static/bundles

RUN chmod 755 ${APP_ROOT}/docker-entrypoint.sh
RUN chmod 755 ${APP_ROOT}/makemigrations.sh
RUN chmod 755 ${APP_ROOT}/launch-stack.sh

#RUN chown -R ${APP_USER_ID} ${APP_ROOT} /run /var

# The VSERION file records the origin of the stack
# and is set by the corresponding GitHub Action
COPY LICENSE /LICENSE
COPY README.md /README.md
COPY VERSION /code/VERSION

WORKDIR ${APP_ROOT}
# The entrypoint is a responsibility of the backend image

CMD ["./docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}
Copyright 2025 Diamond Light Source

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
80 changes: 76 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,81 @@
[![build main](https://github.com/xchem/fragalysis-stack/actions/workflows/build-main.yaml/badge.svg)](https://github.com/xchem/fragalysis-stack/actions/workflows/build-main.yaml)

[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/xchem/fragalysis-stack)
[![Version](http://img.shields.io/badge/version-0.0.1-blue.svg?style=flat)](https://github.com/xchem/fragalysis-stack)
![GitHub tag (latest SemVer pre-release)](https://img.shields.io/github/v/tag/xchem/fragalysis-stack)
[![License](http://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat)](https://github.com/xchem/fragalysis-stack/blob/master/LICENSE.txt)

# Fragalysis stack
Docker setup for building a Django, RDKit and Postgres stack with neo4j
Simply run docker-compose up

Docker setup for building a Django, RDKit and Postgres stack with neo4j.

> There is no application code in this repository, it is a repository where the
stack application is *assembled* using environment variables that define the
origin of the [Backend] and [Frontend] container images.

The stack is built and orchestrated using GitHub Actions and is deployed
to *staging* and *production* installations (**Namespaces** in a designated
Kubernetes cluster).

The build variables `DOCKERHUB_USERNAME` and `TRIGGER_AWX` must be defined
for orchestration to take place. Staging deployments take place on every downstream
build (frontend and backend) and tag, and production deployments take place on every tag.

You **MUST** make sure the Action variables that select the backend and frontend
container images are updated prior to every production release so the stack
uses the appropriate backend and frontend code. You will find these variables
in the `.github/workflows/build-main.yaml` action file: -

- `BE_IMAGE_TAG`
- `FE_IMAGE_TAG`

[More information on pushing to production](README.md#pushing-a-release-to-production)

## Local development

A docker-compose file provides a convenient way of launching the stack locally.
The suitability of the various docker-compose files is the responsibility of
the developer.

Check the compose file, adjust accordingly, then: -

docker-compose up -d

> Containers in the docker-compose generally store persistent data in
the `./data` directory of this repository. These directories
are created automatically if they do not exist.

When you're done you can tear everything down with: -

docker-compose down

## Pushing a release to production

1. Create new releases for the [Frontend] and [Backend].

* [Create a new release for the frontend](https://github.com/xchem/fragalysis-frontend/releases/new)
* Create a new tag with the format: `YYYY.MM.#` where:
* `YYYY` is the current year
* `MM` is the current month
* `#` is the patch number (positive integer)
* Choose a target: `staging` or `production`
* Title the release
* Describe the release
* [Create a new release for the backend](https://github.com/xchem/fragalysis-backend/releases/new)
* Same as the frontend

2. Update [build-main.yaml](.github/workflows/build-main.yaml) with the new tags
* Change `FE_IMAGE_TAG` to the desired Frontend tag
* Change `BE_IMAGE_TAG` to the desired Backend tag
* Commit the changes to a new branch and start a pull request
* Wait for review and approval
* Wait for the [GitHub action](https://github.com/xchem/fragalysis-stack/actions) to complete (~10-20mins)

> N.B. you can get the current Frontend, Backend, and Stack tags from the bottom of the Fragalysis menu

3. Create a new release for [fragalysis-stack](https://github.com/xchem/fragalysis-stack/releases/new)
* Use the same tag convention as for the Frontend and Backend.
* Tags do not need to agree across the three repositories!

---

[backend]: https://github.com/xchem/fragalysis-backend
[frontend]: https://github.com/xchem/fragalysis-frontend
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

68 changes: 67 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,70 @@
# Changelog (from 22/07/2021)


## 16/12/2022 - version 2022.12.1
Job launcher release
### Frontend ([PR #335](https://github.com/xchem/fragalysis-frontend/pull/320)).
:heavy_plus_sign: Job table shows running jobs, and autoreloads
:heavy_plus_sign: Improved snapshot loading

### Backend ([PR #349-#361 #365 #367](https://github.com/xchem/fragalysis-backend/pull/347)).
:heavy_plus_sign: Bug fixing: backend timeout, error report

### Resolved tickets.
[#977](https://github.com/m2ms/fragalysis-frontend/issues/917),[#996](https://github.com/m2ms/fragalysis-frontend/issues/996),[#979](https://github.com/m2ms/fragalysis-frontend/issues/979),[#1003](https://github.com/m2ms/fragalysis-frontend/issues/1003),[#1011](https://github.com/m2ms/fragalysis-frontend/issues/1011),[#935](https://github.com/m2ms/fragalysis-frontend/issues/935),[#995](https://github.com/m2ms/fragalysis-frontend/issues/995),


## 29/09/2022 - version 2022.09.0
Job launcher release
### Frontend ([PR #300 #302 #306-#312 #314-#320](https://github.com/xchem/fragalysis-frontend/pull/320)).
:heavy_plus_sign: New functionality: Job Launcher
:heavy_plus_sign: Improved performance
:heavy_plus_sign: Bug fixing: Layout, filters, snapshots

### Backend ([PR #330 #331 #334 #336-#347](https://github.com/xchem/fragalysis-backend/pull/347)).
:heavy_plus_sign: New functionality: Job Launcher
:heavy_plus_sign: Improved container building

### Resolved tickets.
[#917](https://github.com/m2ms/fragalysis-frontend/issues/917), [#862](https://github.com/m2ms/fragalysis-frontend/issues/862), [#936](https://github.com/m2ms/fragalysis-frontend/issues/936), [#859](https://github.com/m2ms/fragalysis-frontend/issues/859), [#959](https://github.com/m2ms/fragalysis-frontend/issues/959), [#960](https://github.com/m2ms/fragalysis-frontend/issues/960), [#870](https://github.com/m2ms/fragalysis-frontend/issues/870), [#949](https://github.com/m2ms/fragalysis-frontend/issues/949), [#932](https://github.com/m2ms/fragalysis-frontend/issues/932), [#867](https://github.com/m2ms/fragalysis-frontend/issues/867), [#933](https://github.com/m2ms/fragalysis-frontend/issues/933), [#934](https://github.com/m2ms/fragalysis-frontend/issues/934), [#906](https://github.com/m2ms/fragalysis-frontend/issues/906), [#878](https://github.com/m2ms/fragalysis-frontend/issues/978), [#911](https://github.com/m2ms/fragalysis-frontend/issues/911), [#991](https://github.com/m2ms/fragalysis-frontend/issues/991), [#703](https://github.com/m2ms/fragalysis-frontend/issues/703), [#875](https://github.com/m2ms/fragalysis-frontend/issues/875), [#868](https://github.com/m2ms/fragalysis-frontend/issues/868), [#942](https://github.com/m2ms/fragalysis-frontend/issues/942), [#887](https://github.com/m2ms/fragalysis-frontend/issues/887), [#966](https://github.com/m2ms/fragalysis-frontend/issues/966), [#889](https://github.com/m2ms/fragalysis-frontend/issues/889), [#939](https://github.com/m2ms/fragalysis-frontend/issues/939), [#926](https://github.com/m2ms/fragalysis-frontend/issues/926), [#796](https://github.com/m2ms/fragalysis-frontend/issues/796), [#869](https://github.com/m2ms/fragalysis-frontend/issues/869), [#885](https://github.com/m2ms/fragalysis-frontend/issues/885), [#883](https://github.com/m2ms/fragalysis-frontend/issues/883), [#904](https://github.com/m2ms/fragalysis-frontend/issues/904), [#958](https://github.com/m2ms/fragalysis-frontend/issues/958), [#946](https://github.com/m2ms/fragalysis-frontend/issues/946), [#973](https://github.com/m2ms/fragalysis-frontend/issues/973), [#957](https://github.com/m2ms/fragalysis-frontend/issues/957), [#947](https://github.com/m2ms/fragalysis-frontend/issues/947), [#969](https://github.com/m2ms/fragalysis-frontend/issues/969), [#864](https://github.com/m2ms/fragalysis-frontend/issues/864), [#873](https://github.com/m2ms/fragalysis-frontend/issues/873), .....








































## 20/07/2022 - version 2.7.1.
Expand All @@ -18,7 +84,7 @@ Quick fix
### Frontend ([PR #299](https://github.com/xchem/fragalysis-frontend/pull/299)).
:heavy_plus_sign: Bug fixed: RHS F button crashing

### Backend ([PR #325,#327,#328,#329](https://github.com/xchem/fragalysis-backend/pull/314)).
### Backend ([PR #325,#327,#328,#329](https://github.com/xchem/fragalysis-backend/pull/329)).
:heavy_plus_sign: Bug fixed: download sdf files
:heavy_plus_sign: Crystal ids in the sdf files

Expand Down
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: '3'

services:
Expand Down
34 changes: 0 additions & 34 deletions docker-compose.test.yml

This file was deleted.

Loading