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

Add Specify 6.8.03 Static Files to Specify 7 #5266

Merged
merged 42 commits into from
Oct 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
075f0dd
add Specify6.8.03 config file to Specify7
acwhite211 Sep 10, 2024
364d82f
change THICK_CLIENT_LOCATION in settings
acwhite211 Sep 10, 2024
249894d
filter out unused files in Specify 7
acwhite211 Sep 16, 2024
b85a3b8
config nginx.conf and docker-compose.yml for new config location
acwhite211 Sep 16, 2024
db71e30
more config files to filter out
acwhite211 Sep 18, 2024
8f4fca3
init common geo forms
acwhite211 Sep 18, 2024
c456c29
Remove invalid compose project `specify6`
grantfitzsimmons Sep 19, 2024
43a518d
Remove JRXML files
grantfitzsimmons Sep 19, 2024
9b73b01
Merge branch 'issue-4828' of https://github.com/specify/specify7 into…
grantfitzsimmons Sep 19, 2024
217f6de
add specify 6.8.03 jar to config
acwhite211 Sep 24, 2024
2bb01e3
use bind mount instead of named volume for config
acwhite211 Sep 24, 2024
62d01d1
DEFAULT_SPECIFY_JAR_PATH
acwhite211 Sep 24, 2024
5f8b600
remove unused accessions files
acwhite211 Sep 25, 2024
799430e
add back specify_datamodel.xml
acwhite211 Sep 25, 2024
c6fed09
remove specify jar dependency
acwhite211 Sep 27, 2024
4784aa9
add all specify.jar items into directory
acwhite211 Sep 27, 2024
0accbad
Revert "add all specify.jar items into directory"
acwhite211 Sep 27, 2024
36b3cca
Revert "remove specify jar dependency"
acwhite211 Sep 27, 2024
f5c472f
let GitHub search for specify.jar 🤷
acwhite211 Sep 27, 2024
bf27c6e
wat
acwhite211 Sep 27, 2024
96d10ce
create geology.views.xml
acwhite211 Sep 27, 2024
73ba508
Update geology.views.xml
grantfitzsimmons Sep 28, 2024
afe9684
Update geology.views.xml
grantfitzsimmons Sep 28, 2024
8534551
Update geology.views.xml
grantfitzsimmons Sep 28, 2024
d64f31b
Add COGs to Common Views, migrate Geology views
grantfitzsimmons Oct 2, 2024
66b24d6
Add Geology viewset registry
melton-jason Oct 4, 2024
6bda868
Merge branch 'production' into issue-4828
grantfitzsimmons Oct 4, 2024
489d70f
Add geology discipline to Specify 7 list of disciplines
melton-jason Oct 4, 2024
acfe52e
Remove unused Specify 7 files
melton-jason Oct 6, 2024
ad9871f
Remove unused/deleted views and appresources from registries
melton-jason Oct 6, 2024
4188f95
Improve COJO form and add COG subform
grantfitzsimmons Oct 16, 2024
3f23633
Update docker-compose.yml
acwhite211 Oct 22, 2024
d310c01
Revert default THICK_CLIENT_LOCATION
acwhite211 Oct 22, 2024
d40cde9
Add Absolute Age & Relative Age forms
grantfitzsimmons Oct 22, 2024
4b0ca10
edit DEFAULT_SPECIFY_JAR_PATH
acwhite211 Oct 23, 2024
37a6a94
COPY config location in Dockerfile
acwhite211 Oct 23, 2024
b3b63f0
new find_jar
acwhite211 Oct 23, 2024
6610588
config symlink
acwhite211 Oct 23, 2024
0cd53f3
dockerfile bug fix
acwhite211 Oct 23, 2024
40de4b4
copy specify-config into static-files volume
acwhite211 Oct 24, 2024
f2349cb
remove unused lines
acwhite211 Oct 24, 2024
71b3573
Merge branch 'production' into issue-4828
acwhite211 Oct 28, 2024
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
Prev Previous commit
Next Next commit
let GitHub search for specify.jar 🤷
  • Loading branch information
acwhite211 committed Sep 27, 2024
commit f5c472fabcc1550941bdfc9275cedbb8ff4445bf
13 changes: 12 additions & 1 deletion specifyweb/specify/specify_jar.py
Original file line number Diff line number Diff line change
@@ -5,8 +5,19 @@

DEFAULT_SPECIFY_JAR_PATH = '/opt/specify7/config/specify.jar'

def find_jar(filename='specify.jar', search_dir='/'):
for root, dirs, files in os.walk(search_dir):
if filename in files:
return os.path.join(root, filename)
return None

try:
specify_jar_path = os.path.join(settings.SPECIFY_THICK_CLIENT, 'config/specify.jar')
specify_jar = ZipFile(specify_jar_path)
except (FileNotFoundError, KeyError):
specify_jar = ZipFile(DEFAULT_SPECIFY_JAR_PATH)
found_jar_path = find_jar()
if found_jar_path:
specify_jar = ZipFile(found_jar_path)
else:
# Fall back to default path if the file is not found
specify_jar = ZipFile(DEFAULT_SPECIFY_JAR_PATH)
Loading