. ~/miniconda3/bin/activate rsd
# in new shell
git clone git@github.com:research-software-directory/auth-github.git
cd auth-github
# Created Github oauth app with http://localhost:8000 as callback
# Filled .env with random JWT_SECRET and GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
pip install -r requirements.txt
export $(cat .env | xargs)
python app.py
# in new shell
git clone git@github.com:research-software-directory/backend.git
cd backend
git checkout v2
pip install -r requirements.txt
# .env has same JWT_SECRET value as in ../auth-github/.env
export $(cat .env | xargs)
python entry.py
# in new shell
git clone git@github.com:research-software-directory/db-dump.git
docker run -p 27017:27017 -v $PWD/db:/data/db --name rsd-mongo mongo:3.6
# From https://github.com/research-software-directory/stack/tree/v2
docker cp db-dump rsd-mongo:/dump
docker exec rsd-mongo mongorestore -d rsd /dump
cat backend/data/migrate.js | docker exec -i rsd-mongo mongo rsd
cat backend/data/migrate_2.js | docker exec -i rsd-mongo mongo rsd
cat backend/data/migrate_3.js | docker exec -i rsd-mongo mongo rsd
cat backend/data/testimonials.js | docker exec -i rsd-mongo mongo rsd
# in new shell
git clone git@github.com:research-software-directory/admin.git
cd admin
npm install
npm start
# in new shell
git clone git@github.com:research-software-directory/tasks-nlesc.git
cd tasks-nlesc
pip install -r requirements.txt
cp .env.example .env
# Generate Zotero api key https://www.zotero.org/settings/keys Specific group NLeSC read only
# Generate Github private access token, no checkboxes https://github.com/settings/tokens
# Retrieve jwt token from admin site and put in JWT_TOKEN env var
export $(cat .env | xargs)
# Get rid of old commits
docker exec rsd-mongo mongo rsd --eval 'db.commit.drop()'
python app.py --task github
# db already filled with people and projects
#python app.py --task people
docker exec rsd-mongo mongo rsd --eval 'db.project.drop()'
python app.py --task projects
python app.py --task zotero
python app.py --task releases
python app.py --task cache_software
Last active
April 25, 2018 16:07
-
-
Save sverhoeven/76fd78a9695f350e338fd3ebc7fc190b to your computer and use it in GitHub Desktop.
rsd-install steps
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment