Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1235 commits
Select commit Hold shift + click to select a range
68ee2a3
fix error where external links were followed
EfraimFeinstein Mar 12, 2019
f9b6206
use correct remove collection API
EfraimFeinstein Mar 12, 2019
c36369f
upgrade ubuntu image
EfraimFeinstein Mar 12, 2019
fdefd7a
rename API
EfraimFeinstein Mar 12, 2019
4369901
/db/upgrade doesnt remove completely on rename
EfraimFeinstein Mar 12, 2019
260e8a8
change pre- and post-install logs to use util:log
EfraimFeinstein Mar 13, 2019
a2f77aa
change debug level
EfraimFeinstein Mar 13, 2019
f2bb82b
need to reindex before upgrade
EfraimFeinstein Mar 13, 2019
a7cb03d
used wrong form of reindex
EfraimFeinstein Mar 13, 2019
c918d15
upgrade to eXist 4.6.1
EfraimFeinstein Mar 14, 2019
5b3c955
upgrade to 0.12.0 has a very long startup
EfraimFeinstein Mar 15, 2019
a788142
need to find somewhere to put hspell files in yajsw classpath...
EfraimFeinstein Mar 15, 2019
9158ea9
found equivalent to old path
EfraimFeinstein Mar 15, 2019
bbe20bc
adapt to changes in install script
EfraimFeinstein Mar 17, 2019
8b881e0
remove one line
EfraimFeinstein Mar 17, 2019
b18477d
wip for WLC input converter
EfraimFeinstein Mar 17, 2019
c86df04
dry run certs on feature branches
EfraimFeinstein Mar 17, 2019
b1d9bdf
change the test cert command
EfraimFeinstein Mar 17, 2019
8b67ae0
add DNS propagation to the script
EfraimFeinstein Mar 17, 2019
cdb8129
Merge branch 'feature/upgrade-to-exist-4-6-1' into develop
EfraimFeinstein Mar 17, 2019
d5ceac2
Merge branch 'develop' into feature/upgrade-seg-schemas
EfraimFeinstein Mar 17, 2019
2ff3698
use DNS_NAME instead of hardcoding feature db
EfraimFeinstein Mar 17, 2019
5576f44
Merge branch 'develop' into feature/upgrade-seg-schemas
EfraimFeinstein Mar 17, 2019
5e014bd
wip
EfraimFeinstein Mar 18, 2019
f20cdae
roll back to older version of wlc code
EfraimFeinstein Mar 18, 2019
704e087
deprecate opensiddur-sources
EfraimFeinstein Mar 18, 2019
10a3872
force a reindex of the refindex after storing a new refindexed document
EfraimFeinstein Mar 18, 2019
70433f3
error in refindex: it should always return empty
EfraimFeinstein Mar 19, 2019
274cfe4
fix the clean db script so it will use the date command properly
EfraimFeinstein Mar 19, 2019
c4c19f3
add automatic backup to google cloud storage
EfraimFeinstein Mar 20, 2019
c628fb4
missing escapes
EfraimFeinstein Mar 20, 2019
26bbf29
add some logging
EfraimFeinstein Mar 21, 2019
a8aec4e
gsutil needs to be in path
EfraimFeinstein Mar 22, 2019
b437316
Merge branch 'feature/cloud-backup' into develop
EfraimFeinstein Mar 22, 2019
02e2a46
up the version number
EfraimFeinstein Mar 22, 2019
6ad3549
Merge branch 'release/0.12.1'
EfraimFeinstein Mar 23, 2019
be7d2b2
Merge tag 'server-v0.12.1' into develop
EfraimFeinstein Mar 23, 2019
0b1afb2
Merge branch 'develop' into feature/upgrade-seg-schemas
EfraimFeinstein Mar 24, 2019
930f6c4
disable automatic 0.12.0 upgrade
EfraimFeinstein Mar 24, 2019
b62df48
move upgrade to the gcloud startup script; add tei:choice to be allow…
EfraimFeinstein Mar 24, 2019
eaa5656
corrected version of WLC notes document generator
EfraimFeinstein Mar 24, 2019
883dd9b
Merge branch 'develop' into feature/upgrade-seg-schemas
EfraimFeinstein Mar 25, 2019
2610b51
try an xmldb:exist url in the startup script -- a path does not work
EfraimFeinstein Mar 25, 2019
e7e8cd2
translate pointers to non-segs, closes #190
EfraimFeinstein Mar 26, 2019
d5e20df
remove automatic upgrade while we debug (temporary)
EfraimFeinstein Mar 27, 2019
2aa5b94
upgrade ubuntu; only follow links once; restore upgrade12;
EfraimFeinstein Mar 27, 2019
50177cd
only run upgrade code once
EfraimFeinstein Mar 28, 2019
b28f302
Merge branch 'feature/upgrade-seg-schemas' into develop
EfraimFeinstein Mar 28, 2019
24d68d8
add segment transform; fix some broken tests
EfraimFeinstein Mar 29, 2019
5088396
move location of segmentation in the chain; down to <50 failed tests
EfraimFeinstein Mar 31, 2019
32c4568
move segment to the right place, all tests should pass now
EfraimFeinstein Mar 31, 2019
e5fe3cb
Merge branch 'feature/add-segmentation-step' into develop
EfraimFeinstein Mar 31, 2019
5f18683
all streamText elements must have xml:ids added by segment if they do…
EfraimFeinstein Apr 1, 2019
0814cb9
code, tests and integration still to come
EfraimFeinstein Apr 2, 2019
c0e6023
upgrade script
EfraimFeinstein Apr 2, 2019
f7d5c40
add tests for upgrade122
EfraimFeinstein Apr 3, 2019
c3ef883
tei:ptr without xml:id should be retained no matter what
EfraimFeinstein Apr 4, 2019
7aa5646
move flatten tests to XQSuite; remove word markup in tanach, closes #…
EfraimFeinstein Apr 12, 2019
1bd4048
Merge branch 'feature/reduce-unnecessary-elements' into develop
EfraimFeinstein Apr 12, 2019
50d469d
add more stack space to the default installation
EfraimFeinstein Apr 12, 2019
9698898
change 0.12.2 upgrade condition
EfraimFeinstein Apr 13, 2019
bdbbb38
Merge branch 'feature/increase-stack-size' into develop
EfraimFeinstein Apr 14, 2019
1fd47b1
fixed exist backup cleanup, fixes #199
EfraimFeinstein Jun 21, 2019
10e074e
missing path
EfraimFeinstein Jun 21, 2019
932198d
travis generic doesn't have ant anymore
EfraimFeinstein Jun 21, 2019
b7a9056
make sure we are on openjdk 8... do I need to update-alternatives too?
EfraimFeinstein Jun 21, 2019
44cb21f
run update-java-alternatives in travis
EfraimFeinstein Jun 21, 2019
e76542d
try forcing openjdk8
EfraimFeinstein Jun 21, 2019
07e78ba
try switching language to java
EfraimFeinstein Jun 21, 2019
25b2a24
in java env, ant and jdk are already installed
EfraimFeinstein Jun 21, 2019
bde34e5
upgrade to eXist 4.7.1
EfraimFeinstein Sep 22, 2019
ec49f51
upgrade to eXist v4.7.1; add error message if tests fail due to parsing
EfraimFeinstein Sep 22, 2019
de70217
move some failing (why?) tests to the new testing mechanism
EfraimFeinstein Sep 22, 2019
1f83ecb
change the Accept headers before they reach eXist
EfraimFeinstein Sep 22, 2019
44b8437
update ubuntu image
EfraimFeinstein Sep 22, 2019
b057c1f
fix dumb typo
EfraimFeinstein Sep 22, 2019
85a21e1
Merge pull request #204 from opensiddur/feature/invalid-accept-header
EfraimFeinstein Sep 22, 2019
c14fcfa
bootstrap develop and feature branches from a recent backup of master
EfraimFeinstein Sep 23, 2019
c744e4c
failed on 'unable to delete directory'
EfraimFeinstein Sep 23, 2019
6f978f4
process backup instead of doing a backup
EfraimFeinstein Sep 24, 2019
126d169
more permissions
EfraimFeinstein Sep 24, 2019
d4aae54
Merge branch 'feature/bootstrap-master' into develop
EfraimFeinstein Sep 25, 2019
d3a9996
clean-exist-backups must be run by bash
EfraimFeinstein Dec 26, 2019
4cfff03
upgrade ubuntu version
EfraimFeinstein Jun 3, 2020
0ce7a97
upgrade docker file
EfraimFeinstein Jun 3, 2020
0bfc294
add an /original/linkage API to list all parallel linkages to a given…
EfraimFeinstein Jun 8, 2020
c2dec78
wip
EfraimFeinstein Jun 12, 2020
39cb8c3
add a linkage list to the original API with tests
EfraimFeinstein Jun 14, 2020
7e0cda6
Merge branch 'feature/linkages-list' into develop
EfraimFeinstein Jun 14, 2020
d6ac9d0
allow certbot to do its stuff
EfraimFeinstein Jul 21, 2020
20363f1
add /combined linkage api, need tests
EfraimFeinstein Jul 23, 2020
e513e2d
move linkage tests to XQSuite
EfraimFeinstein Jul 27, 2020
653576a
combined linkage API
EfraimFeinstein Jul 29, 2020
7611f98
Merge branch 'feature/combined-linkage-api' into develop
EfraimFeinstein Jul 29, 2020
ceff61e
add a separate jf:instruction element in annotation layers to differe…
EfraimFeinstein Aug 23, 2020
e325c28
fix a typo
EfraimFeinstein Aug 24, 2020
6513894
add the code to src
EfraimFeinstein Aug 24, 2020
48ce459
dummy commit
EfraimFeinstein Aug 26, 2020
b5db517
add docindex and tests
EfraimFeinstein Sep 22, 2020
86a63b2
add a doc index
EfraimFeinstein Sep 23, 2020
a08fe06
add doc index entries
EfraimFeinstein Sep 23, 2020
d24dacb
wip -- data.xqm changed, many tests failing
EfraimFeinstein Sep 24, 2020
736ad1c
this is causing an undebuggable npe in xqsuite
EfraimFeinstein Sep 25, 2020
f80a786
basic testing set up
EfraimFeinstein Sep 27, 2020
92248be
DbTest class and data module test start
EfraimFeinstein Sep 29, 2020
236657c
add scalatest framework for xquery, move testing of the data module t…
EfraimFeinstein Oct 1, 2020
cea8958
change banners to travis-ci.com
EfraimFeinstein Oct 1, 2020
d114af6
Merge branch 'feature/test-with-scala' into develop
EfraimFeinstein Oct 1, 2020
5102798
Merge branch 'develop' into feature/document-index
EfraimFeinstein Oct 1, 2020
8c2a16c
Bump log4j-core from 2.13.0 to 2.13.2 in /opensiddur-extensions
dependabot[bot] Oct 1, 2020
a14120e
document index with tests
EfraimFeinstein Oct 2, 2020
b75369e
partial move of tests to scala, some still failing
EfraimFeinstein Oct 9, 2020
bdbe16f
Merge pull request #206 from opensiddur/dependabot/maven/opensiddur-e…
EfraimFeinstein Oct 9, 2020
f391770
Merge branch 'develop' of github.com:opensiddur/opensiddur into featu…
EfraimFeinstein Oct 9, 2020
27542a3
move follow-uri tests to scalatest
EfraimFeinstein Oct 9, 2020
260daf6
reverse the new and old test sets
EfraimFeinstein Oct 9, 2020
1a32461
move flatten tests to scalatest
EfraimFeinstein Oct 12, 2020
9dc1b15
move status test to scalatest
EfraimFeinstein Oct 12, 2020
5f08058
move upgrade12 tests from xqsuite to scalatest (fixes a failure)
EfraimFeinstein Oct 13, 2020
517b363
bug fix: format:html needs 2 caches - one for transcludes, one for un…
EfraimFeinstein Oct 14, 2020
40b60a4
move original tests to scalatest
EfraimFeinstein Oct 16, 2020
cffa1e2
move parallel-layer tests to scalatest
EfraimFeinstein Oct 18, 2020
257afc0
move unflatten tests to scalatest
EfraimFeinstein Oct 18, 2020
85d7c95
move compile transform test to scalatest
EfraimFeinstein Oct 18, 2020
c9f88a2
move combine tests to scalatest
EfraimFeinstein Oct 19, 2020
dc840d9
remove dupes
EfraimFeinstein Oct 19, 2020
2706a45
move refindex tests to scalatest
EfraimFeinstein Oct 22, 2020
dd149cd
move translit utility tests to scalatest
EfraimFeinstein Oct 23, 2020
6b2cd8d
move user module to scalatest
EfraimFeinstein Oct 26, 2020
538237b
fix to tcommon
EfraimFeinstein Oct 26, 2020
f9bdde3
reproducibility
EfraimFeinstein Oct 27, 2020
15b160b
move xqsuite original tests to scalatest
EfraimFeinstein Oct 27, 2020
cb09934
move transliteration test to scalatest
EfraimFeinstein Oct 27, 2020
ba91138
move styles tests to scalatest
EfraimFeinstein Oct 29, 2020
81bb2c4
move sources tests to scalatest
EfraimFeinstein Oct 30, 2020
21893ec
move outlines tests to scalatest
EfraimFeinstein Nov 2, 2020
0370bbe
move notes tests to scalatest
EfraimFeinstein Nov 6, 2020
97381c5
move dictionaries test to scalatest
EfraimFeinstein Nov 8, 2020
6173923
move conditionals tests to scalatest
EfraimFeinstein Nov 8, 2020
c5af492
upgrade ubuntu image
EfraimFeinstein Nov 8, 2020
73e6164
reverse docindex to be before refindex indexing because ridx can use …
EfraimFeinstein Nov 10, 2020
2a0f169
increase the possible server startup time
EfraimFeinstein Nov 11, 2020
f1d22af
fix server up check in install
EfraimFeinstein Nov 12, 2020
fc3fa22
use an older format
EfraimFeinstein Nov 12, 2020
de63c83
Merge branch 'feature/document-index' into develop
EfraimFeinstein Nov 15, 2020
4559e96
upgrade code to remove all YYYY/MM directories
EfraimFeinstein Nov 18, 2020
f931f64
fix test expectations
EfraimFeinstein Nov 18, 2020
55cc779
fix inconsistent indexes
EfraimFeinstein Nov 19, 2020
70e63d0
Merge branch 'feature/remove-yyyy-mm-directories' into develop
EfraimFeinstein Nov 19, 2020
23015db
cors config for the server
EfraimFeinstein Nov 19, 2020
e1ebb18
add a step to set up web.xml for security, closes #179
EfraimFeinstein Nov 20, 2020
bf0e94c
add tests to verify that duplicate xml:ids are invalidated, closes #154
EfraimFeinstein Nov 22, 2020
3d07828
fix the tests
EfraimFeinstein Nov 23, 2020
99f6501
partially complete: old tests passing
EfraimFeinstein Dec 4, 2020
7667645
upgrade icu4j
EfraimFeinstein Dec 6, 2020
f8aeb03
minor correction for build; travis should fail the script if the test…
EfraimFeinstein Dec 7, 2020
dc0a065
links are not happening, try to fix it?
EfraimFeinstein Dec 9, 2020
fe117f8
minor bug
EfraimFeinstein Dec 10, 2020
77e2da1
Merge branch 'feature/consistent-naming' into develop
EfraimFeinstein Dec 11, 2020
859a073
auto update ubuntu ver
EfraimFeinstein Dec 15, 2020
bb47ce0
Merge branch 'release/0.13.0'
EfraimFeinstein Dec 17, 2020
21f5e32
Merge tag 'server-v0.13.0' into develop
EfraimFeinstein Dec 17, 2020
ca27896
use travis-ci.com instead of .org
EfraimFeinstein Dec 17, 2020
bd20ae7
try to force build on a recent version of Ubuntu
EfraimFeinstein Jun 10, 2021
45c66fe
jdk11?
EfraimFeinstein Jun 10, 2021
21d6624
update cloud sdk install
EfraimFeinstein Jun 10, 2021
9c02f74
back to jdk8
EfraimFeinstein Jun 10, 2021
a1fc3e0
try bionic
EfraimFeinstein Jun 10, 2021
b3eda9a
move segment test to ScalaTest
EfraimFeinstein Jun 11, 2021
e94ce4b
linkage test to Scala
EfraimFeinstein Jun 11, 2021
8d1e2a2
move index tests to Scala
EfraimFeinstein Jun 13, 2021
d9f382d
move upgrade122 test to scala
EfraimFeinstein Jun 13, 2021
fb5d9fd
remove XQSuite
EfraimFeinstein Jun 13, 2021
ab06015
reformulate put test
EfraimFeinstein Jun 13, 2021
17f8fe1
external doc validation should work for no # in the string, fixes #208
EfraimFeinstein Jun 18, 2021
c9592e3
validation API for POST /api/data/X?validate=true, working on #122
EfraimFeinstein Jun 20, 2021
fdb15a8
complete validation API for PUT and POST, closes #122
EfraimFeinstein Jun 21, 2021
103cfab
validation API for user profiles
EfraimFeinstein Jun 22, 2021
91c5487
change of secure data
EfraimFeinstein Jun 23, 2021
eb563b3
minor bug
EfraimFeinstein Jun 25, 2021
05cb472
user names have to be encoded
EfraimFeinstein Jun 25, 2021
ec8a5b4
some architecture documents
EfraimFeinstein Jun 28, 2021
2f74644
write up the logic of the translation conditional
EfraimFeinstein Jun 29, 2021
be92250
document the annotation conditional
EfraimFeinstein Jun 29, 2021
6b3ac26
remove the docs from the adr dir
EfraimFeinstein Jun 29, 2021
880b3a3
more documentation for source conditional
EfraimFeinstein Jul 4, 2021
c644287
Merge branch 'feature/mass-upload' into develop
EfraimFeinstein Jul 4, 2021
be258be
Merge branch 'develop' of github.com:opensiddur/opensiddur into develop
EfraimFeinstein Jul 4, 2021
ee8c341
wip
EfraimFeinstein Jul 27, 2021
b0cc9d6
Add github actions (#210), closes #209
EfraimFeinstein Sep 20, 2021
93dc062
Merge branch 'develop' of github.com:opensiddur/opensiddur into develop
EfraimFeinstein Sep 20, 2021
8120905
switch all tests to ScalaTest (#211)
EfraimFeinstein Oct 19, 2021
e3690f8
bump the version number
EfraimFeinstein Oct 20, 2021
1b69086
Merge branch 'release/0.13.1'
EfraimFeinstein Oct 20, 2021
01830e3
Merge tag 'server-v0.13.1' into develop
EfraimFeinstein Oct 20, 2021
692aa20
Merge branch 'develop' of github.com:opensiddur/opensiddur into develop
EfraimFeinstein Oct 20, 2021
c8145f5
Allow automatic updates to Ubuntu (#214)
EfraimFeinstein Oct 24, 2021
408d23b
linkage id api (#216)
EfraimFeinstein Oct 26, 2021
20a56b4
add code to remove stale ssh keys (#217)
EfraimFeinstein Oct 27, 2021
489fb94
add logging to opensiddur vms (#218)
EfraimFeinstein Oct 29, 2021
10be792
bump version number
EfraimFeinstein Oct 29, 2021
368e996
Merge branch 'release/0.13.2'
EfraimFeinstein Oct 31, 2021
b48fe35
Merge tag 'server-v0.13.2' into develop
EfraimFeinstein Oct 31, 2021
97bb814
write instance name to all logs
EfraimFeinstein Oct 31, 2021
73fe135
need to do quiet ssh on backups so the prior instance backup doesn't …
EfraimFeinstein Oct 31, 2021
e686a43
bump maint version number
EfraimFeinstein Oct 31, 2021
6aa4b4f
Merge branch 'release/0.13.3'
EfraimFeinstein Oct 31, 2021
71ecf2e
Merge tag 'server-v0.13.3' into develop
EfraimFeinstein Oct 31, 2021
78f40ee
disable copying backups directly from the prior master
EfraimFeinstein Nov 1, 2021
dae229e
Merge branch 'release/0.13.3.1'
EfraimFeinstein Nov 1, 2021
6b35f11
Merge tag 'server-v0.13.3.1' into develop
EfraimFeinstein Nov 1, 2021
0166bbd
wip
EfraimFeinstein Nov 3, 2021
a41f21a
Upgrade XQuery syntax to what is used in eXist 5.x (#221)
EfraimFeinstein Nov 3, 2021
63a9126
wip
EfraimFeinstein Nov 8, 2021
caf4049
wip, still needs tests
EfraimFeinstein Dec 20, 2021
8b6433c
Upgrade eXist and log4j (#228)
EfraimFeinstein Dec 21, 2021
5c8edb4
bump version number
EfraimFeinstein Dec 22, 2021
c9a1e63
Merge branch 'release/0.13.4'
EfraimFeinstein Dec 22, 2021
d52cf77
Merge tag 'server-v0.13.4' into develop
EfraimFeinstein Dec 22, 2021
5bea4f3
Merge branch 'develop' into feature/anchors-must-be-used-once
EfraimFeinstein Dec 28, 2021
274e212
one test, fix local build so it will always use java 8
EfraimFeinstein Jan 3, 2022
f831c7b
include tests for anchors needing to be used once
EfraimFeinstein Jan 9, 2022
f3873eb
wip on tests
EfraimFeinstein Jun 16, 2022
dff7f31
Bump log4j-core from 2.17.0 to 2.17.1 in /opensiddur-extensions (#229)
dependabot[bot] Jul 5, 2022
78525e6
working tests
EfraimFeinstein Jul 18, 2022
23fa34a
startup script has to clone by https
EfraimFeinstein Jul 19, 2022
0a10d66
now need to install docker
EfraimFeinstein Jul 19, 2022
796453f
allow builds of docker as root or user
EfraimFeinstein Jul 20, 2022
26278de
rewrite ref indexes before 0.14 upgrade code
EfraimFeinstein Jul 21, 2022
38ba38b
will require a version change
EfraimFeinstein Jul 22, 2022
cd44827
Anchors can only be used once, and upgrade script, closes #215
EfraimFeinstein Jul 22, 2022
42c25b2
reindex ref and doc indexes by collection
EfraimFeinstein Sep 11, 2022
80b5ecc
Upgrade to eXist 6.0.1 (#231)
EfraimFeinstein Sep 16, 2022
76e76df
add tests for didx and ridx remove collection data before reindexing,…
EfraimFeinstein Sep 18, 2022
6021bdd
change backup path
EfraimFeinstein Sep 18, 2022
f392adf
cli tool, wip
EfraimFeinstein Sep 19, 2022
c01fdf1
add a test for common:generate-id, which is failing; try to fix
EfraimFeinstein Sep 19, 2022
57af1a0
try to get hebrew indexer working right
EfraimFeinstein Sep 21, 2022
6420f58
fix a bug - 0.9.0 schema update was messing up the normalizations of …
EfraimFeinstein Sep 21, 2022
86c2b27
add reindex, move hspell files to the right place when not using docker
EfraimFeinstein Sep 21, 2022
e7a01f4
force a reindex
EfraimFeinstein Sep 22, 2022
80c5c86
more cli client stuff
EfraimFeinstein Sep 22, 2022
4233d40
add transliteration and some other cli commands
EfraimFeinstein Sep 22, 2022
9d343e6
more cli work, XQuery tests by REST interface
EfraimFeinstein Sep 23, 2022
54d3b19
remove duplicated auth-checking code
EfraimFeinstein Sep 23, 2022
3d79e20
nearly complete command line client
EfraimFeinstein Sep 25, 2022
c9420db
Merge branch 'feature/cli-client' into develop
EfraimFeinstein Sep 25, 2022
50a88c8
Release of server v 0.14.0
EfraimFeinstein Sep 25, 2022
c04a8af
Merge tag 'server-v0.14.0' into develop
EfraimFeinstein Sep 25, 2022
0b1d55f
force rebuild
EfraimFeinstein May 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
84 changes: 84 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Deployment to Google Compute Engine
name: Build

on:
push:
branches:
- master
- develop
- feature**

env:
PROJECT_NAME: opensiddur-client
BACKUP_BUCKET_BASE: opensiddur-database-backups
ZONE: us-west2-a
MACHINE_TYPE: n1-standard-1
IMAGE_PROJECT: ubuntu-os-cloud
IMAGE_VERSION: ubuntu-2204
BOOT_DISK_SIZE_GB: 20
EXIST_MEMORY: 3072
STACK_MEMORY: 512
SERVICE_ACCOUNT: opensiddur-deploy-1@opensiddur-client.iam.gserviceaccount.com
ADMIN_PASSWORD: ${{ secrets.ADMIN_PASSWORD }}
DYN_USERNAME: ${{ secrets.DYN_USERNAME }}
DYN_PASSWORD: ${{ secrets.DYN_PASSWORD }}
DYN_EMAIL: ${{ secrets.DYN_EMAIL }}

jobs:
setup-build-publish-deploy:
name: Setup, Build, Publish, and Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set calculated vars
id: vars
run: |-
BRANCH=${GITHUB_REF#refs/heads/}
INSTANCE_BASE=$(echo ${{env.PROJECT_NAME}}-${BRANCH//[.\/]/-} | tr '[:upper:]' '[:lower:]' )
VERSION=$(git rev-parse --short=8 ${{ github.sha }})
echo ::set-output name=VERSION::${VERSION}
echo ::set-output name=BRANCH::${BRANCH}
echo ::set-output name=INSTANCE_BASE::${INSTANCE_BASE}
echo ::set-output name=INSTANCE_NAME::${INSTANCE_BASE}-${VERSION}
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
# Setup gcloud CLI
- id: auth
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0.3.0
- name: Verify gcloud CLI
run: gcloud info
- name: Install packages
run: sudo apt-get install libxml2-utils python3-lxml

- name: Build
run: |-
ant test
- name: Deploy
run: |-
gcloud compute \
--project=${{env.PROJECT_NAME}} instances create ${{steps.vars.outputs.INSTANCE_NAME}} \
--zone=${{env.ZONE}} \
--machine-type=${{env.MACHINE_TYPE}} \
--network=default \
--network-tier=PREMIUM \
--maintenance-policy=MIGRATE \
--scopes=https://www.googleapis.com/auth/cloud-platform \
--tags=http-server,https-server \
--image=$(gcloud compute images list --filter=${{env.IMAGE_PROJECT}} --filter=${{env.IMAGE_VERSION}} | tail -n 1 | cut -f 1 -d " ") \
--image-project=${{env.IMAGE_PROJECT}} \
--boot-disk-size=${{env.BOOT_DISK_SIZE_GB}}GB \
--boot-disk-type=pd-standard \
--boot-disk-device-name=${{steps.vars.outputs.INSTANCE_NAME}} \
--service-account=${{env.SERVICE_ACCOUNT}} \
--metadata-from-file startup-script=setup/gcloud-startup-script.sh \
--metadata ADMIN_PASSWORD=${{env.ADMIN_PASSWORD}},EXIST_MEMORY=${{env.EXIST_MEMORY}},STACK_MEMORY=${{env.STACK_MEMORY}},BRANCH=${{steps.vars.outputs.BRANCH}},DYN_USERNAME=${{env.DYN_USERNAME}},DYN_PASSWORD=${{env.DYN_PASSWORD}},DYN_EMAIL=${{env.DYN_EMAIL}},BACKUP_BUCKET_BASE=${{env.BACKUP_BUCKET_BASE}},enable-oslogin=true


34 changes: 20 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# local mods to Makefile
Makefile.local

# fake svn external directories
lib/xsltforms/
lib/xspec/
lib/XSLTDoc/
lib/tei/
lib/exist/
local.build.properties

# generated text directory
text/wlc/
Expand All @@ -15,13 +9,17 @@ text/wlc/
/doc/

# generated schema
schema/build
opensiddur-server/schema/build

# generated dist dir
build/
dist/
dependencies/

# generated files:
/code/common/params.xsl2
/code/transforms/format/xhtml/muxhtml.xsl2
/setup/setup.xql
/setup/eXist-installer.xml
opensiddur-server/src/common/params.xsl2
opensiddur-server/setup/setup.xql
opensiddur-server/setup/eXist-installer.xml

# db directory except special
db/*
Expand All @@ -36,8 +34,7 @@ __contents__.xml
# backup files
*.bak
*.bkp
*.swp
*.swo
*.sw?
*.tmp
*.temp
temp/
Expand All @@ -48,6 +45,7 @@ tmp/
*.pyc

# local files project
.pydevproject
.buildpath
.project
.settings
Expand All @@ -56,3 +54,11 @@ private-scripts/

# patch rejects
*.rej

#IntelliJ
.idea/
*.iml

# client secret file
credentials.tar.gz
client-secret.json
16 changes: 10 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[submodule "lib/hebmorph"]
path = lib/hebmorph
url = git://github.com/EfraimFeinstein/HebMorph.git
[submodule "lib/aloha"]
path = lib/aloha
url = https://github.com/alohaeditor/Aloha-Editor.git
[submodule "lib/tei/Roma"]
path = lib/tei/Roma
url = https://github.com/opensiddur/Roma.git
[submodule "lib/tei/Stylesheets"]
path = lib/tei/Stylesheets
url = https://github.com/opensiddur/Stylesheets.git
[submodule "lib/hebmorph-exist"]
path = lib/hebmorph-exist
url = https://github.com/opensiddur/hebmorph-exist.git
branch = 2.1.x
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM ubuntu:kinetic

RUN useradd -c "eXist db" exist
# install dependencies
RUN apt-get update
RUN apt-get install -y openjdk-8-jdk

RUN mkdir -p /usr/local/opensiddur
RUN chown exist:exist /usr/local/opensiddur

USER exist:exist

# copy the build
COPY dependencies/exist-installer-*.jar /tmp/exist-installer.jar
COPY setup/docker-install-options.conf /tmp/

# run the installer
RUN java -jar /tmp/exist-installer.jar -console -options /tmp/docker-install-options.conf
COPY setup/docker-startup.sh /usr/local/opensiddur/bin/docker-startup.sh
COPY lib/icu4j-* /usr/local/opensiddur/lib/user/
COPY lib/hebmorph-exist/java/target/hebmorph-lucene.jar /usr/local/opensiddur/lib/user/
COPY lib/hebmorph-exist/hspell-data-files/ /usr/local/opensiddur/etc/hspell-data-files/

# copy autodeploy files
COPY dist/opensiddur-server.xar /usr/local/opensiddur/autodeploy

EXPOSE 8080 8443

ENTRYPOINT /usr/local/opensiddur/bin/docker-startup.sh
12 changes: 4 additions & 8 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
The Open Siddur Project License file:

All source code is stored on subversion, and may be obtained by following
the instructions at http://jewishliturgy.googlecode.com/source/checkout

The source code may be browsed directly at
http://jewishliturgy.googlecode.com/svn/trunk
All file and directory names in this file are relative to that path.
All source code is stored on Github, and may be obtained by following
the instructions at https://github.com/opensiddur/opensiddur ; source code may
also be browsed there.

The project is distributed under the following licenses:

Expand All @@ -22,8 +19,7 @@ the rest of the project's.

See the *-LICENSE.txt and *-NOTICE.txt files and *-notices directories
in the lib/ directory for more information. It is accessible on the
Internet at
http://jewishliturgy.googlecode.com/svn/trunk/lib/
Internet at https://github.com/opensiddur/opensiddur/tree/develop/lib

The BHebrew and BHebrewSR fonts are modified versions of the Ezra SIL
fonts from SIL International, and are released under the SIL Open Font License.
Expand Down
Loading