- Install current version of docker and docker-compose.
- Change environment variables in
run_docker-compose.production.sh
. HINT: Loosing or exposing these values will be insecure and dangerous!DOWNLOADER_ATTACHMENTS_PATH
needs to point to the root folder in which Active Storage attachments are available (read-only access preferred). - Execute run_docker-compose.production.sh.
If it is your first run replace
db:migrate
withdb:setup
, but do not forget to change it back later, otherwise app will not boot, because it would destroy existing database.
The following environment variables have to be set for the project to run:
BAG_IT_STREAM_THREADS - the number of threads BagIt runs with.
Docker Container:
DOWNLOADER_DB_HOST - database host address
DOWNLOADER_DB_PORT - database port
DOWNLOADER_DB_NAME - database name
DOWNLOADER_DB_USERNAME - database username
DOWNLOADER_DB_PASSWORD - database password
DOWNLOADER_SECRET_KEY_BASE - the secret key base for encrypted values, generate with RAILS_ENV=production bundle exec rake secret
DOWNLOADER_ATTACHMENTS_PATH - path to where the attachment files are stored
SSH_KEY - private SSH key that has GitHub read access to all needed private dependencies
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle
open -a Postgres
- Initialize database with version 12 in GUI
asdf plugin add ruby
asdf plugin add nodejs
asdf plugin add yarn
asdf install
asdf reshim
gem update --system
asdf reshim
bundle install
yarn install
asdf reshim
bundle exec rails db:setup
bin/rake
bin/dev
open -a Docker
./run_ci_tests.sh
- Enable options for 'Before Commit':
- Reformat code
- Rearrange code
- Optimize Imports
- Analyze code
- Check TODO
- Cleanup
- Run 'spec: Repository-Downloader'
This project has been funded by the DFG.
Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under the National Research Data Infrastructure – NFDI4Chem – Projektnummer 441958208 since 2020.