Skip to content

Commit

Permalink
Update data load and aws account documentation
Browse files Browse the repository at this point in the history
refs #158
  • Loading branch information
hackartisan committed Oct 10, 2023
1 parent 6ed6d4b commit bf432c2
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ We want to load in CSV files that contain GuideCard and SubGuideCard data, which

To list all import services for the application: `rake -T | grep import`

To import the GuideCard records: `rake import:import_guide_cards`
To import the SubGuideCard records: `rake import:import_sub_guide_cards`
To import the GuideCard records (takes about 3 minutes): `rake import:import_guide_cards`
To import the SubGuideCard records (takes about 2 minutes): `rake import:import_sub_guide_cards`

The CardImage records are the images that are included in the GuideCard and SubGuideCard records. These will take the longest to import (totaling ~1.5 million images).
The CardImage records are the images that are included in the GuideCard and SubGuideCard records. There are 5,786,727 images. These take about 12 days to import.

To import the CardImage records: `rake import:import_card_images`

Expand All @@ -61,9 +61,12 @@ To import the CardImage records: `rake import:import_card_images`
### 1. Set up AWS account

1. Go to [https://princeton.edu/aws](https://princeton.edu/aws) and log in with Princeton credentials.
2. From the "Services" menu, select "IAM". (You might need to search for IAM in the search bar.) Under the "User" menu, create a new user. Use any user name you prefer, as long as it would be clear to your team mates that this name is associated with you. Choose AWS credential type "Access Key".

3. Record the Access Key ID and the Secret access key you'll get on the `Success` screen. You will need to add these to your local user profile when you set up AWS command line access.
1. From the "Services" menu, select "IAM". (You might need to search for IAM in the search bar.) Under the "User" menu, create a new user. Use any user name you prefer, as long as it would be clear to your team mates that this name is associated with you.
1. Add the user to the `iiifcloud` group.
1. Create the user, and click on it in the user list.
1. click "Create access key"
1. Select use case: Local code; give it a name
1. Record the Access Key ID and the Secret access key you'll get on the `Success` screen. You will need to add these to your local user profile when you set up AWS command line access.

### 2. Install and configure aws cli

Expand All @@ -73,6 +76,9 @@ To import the CardImage records: `rake import:import_card_images`

- Use default region `us-east-1`

- If you added the key to a new config stanza in your ~/.aws/credentials, you'll
need to run aws commands with the --profile command line option

## Install lux

The following steps will help to set up lux for this application.
Expand Down Expand Up @@ -194,4 +200,4 @@ Once this is set up, right-click on `lib-dbserver.princeton.edu` to connect

During the initial launch, it may take longer for the server to boot up due to the configs being created.

Navigate to `Computer` then `C:/inetpub/wwwroot/ImageCat` to access the legacy files.
Navigate to `Computer` then `C:/inetpub/wwwroot/ImageCat` to access the legacy files.

0 comments on commit bf432c2

Please sign in to comment.