uclibs / uc_drc

DRC migration planning and work
Other
0 stars 0 forks source link

Add docker dotenv vars #77

Closed crowesn closed 4 years ago

crowesn commented 4 years ago

Fixes #70

Add .dotenv file with variables for dev-mode docker build. Updated hyrax-docker submodule with directive to copy docker dotenv at build time.

hortongn commented 4 years ago

@crowesn What are the steps I should follow to spin this up so I can test it?

crowesn commented 4 years ago

@hortongn I'll add more to the readme;

  1. cd to hyrax-docker directory
  2. docker-compose up -d --build
  3. Takes ~5-10 min to completely build the first time on my machine
crowesn commented 4 years ago

@hortongn Ideas about this?

bash-4.2# /opt/fits/fits.sh -i /tmp/uploads/hyrax/uploaded_file/file/1/seanCrowe_portrait_03.jpg 
Sep 03, 2020 2:26:12 PM edu.harvard.hul.ois.jhove.JhoveBase init
SEVERE: Testing SEVERE level
Exception in thread "main" edu.harvard.hul.ois.fits.exceptions.FitsToolCLIException: Error calling external command line routine (Cannot run program "file": error=2, No such file or directory)
    at edu.harvard.hul.ois.fits.tools.utils.CommandLine.exec(CommandLine.java:47)
    at edu.harvard.hul.ois.fits.tools.fileutility.FileUtility.<init>(FileUtility.java:76)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at edu.harvard.hul.ois.fits.tools.ToolBelt.init(ToolBelt.java:136)
    at edu.harvard.hul.ois.fits.tools.ToolBelt.<init>(ToolBelt.java:72)
    at edu.harvard.hul.ois.fits.Fits.<init>(Fits.java:239)
    at edu.harvard.hul.ois.fits.Fits.<init>(Fits.java:121)
    at edu.harvard.hul.ois.fits.Fits.<init>(Fits.java:110)
    at edu.harvard.hul.ois.fits.Fits.main(Fits.java:290)
hortongn commented 4 years ago

@crowesn What version of Fits are you using? I know there are "good" versions of Fits that work well with Samvera. See https://github.com/samvera/hyrax#prerequisites

crowesn commented 4 years ago

@crowesn What version of Fits are you using? I know there are "good" versions of Fits that work well with Samvera. See https://github.com/samvera/hyrax#prerequisites

1.0.5

hortongn commented 4 years ago

@crowesn So far I've been able to reproduce your Cannot run program "file" error, but have not beed able to figure it out.

hortongn commented 4 years ago

Also, user and work data was preserved even after I deleted the containers and did a fresh build. So it must be using an external location to store the content.