att-vault / vault

ATT Vault Tech Scenario
2 stars 1 forks source link

Plan for organizing this repo #12

Closed jbednar closed 3 years ago

jbednar commented 3 years ago

Draft plan for reorganizing this repository for delivery, to be updated as we go along:

jbednar commented 3 years ago

Closing as that's all that will be done! Docker images are available in S3, and the instructions for them are below.

AT&T Vault Docker images

This directory contains Docker images that can be used to reproduce the 1/2021 AT&T VAULT technical scenario solution and associated analysis files.

Using these images

To run the VAULT notebooks on a local or cloud machine with Docker installed:

  1. Download the data locally. Here we'll assume the data is in a directory /vault-data on the host where Docker is running.
  2. Download the vault-notebooks.tar.gz image from this directory.
  3. Run docker load -i vault-notebooks.tar.gz
  4. Run docker run --mount type=bind,source=/vault-data,target=/data -p 8087:8086 vault-notebooks
  5. Visit localhost:8087 in a web browser. For security, you'll need to paste in the token that is printed to stdout in step 4.
  6. You should now be in a Jupyter session for the default "Viewing_AIS" notebook, where you can do "Kernel/Run All" to run it.
  7. To run other notebooks, use "File/Open" in the menu and select one of the other notebooks. "Viewing" and "Hit" should all be runnable as-is using the vault-data-minimal directory; the data-prep and other notebooks may need additional data files and in some cases additional Python packages.

The above steps are sufficient for running the code as submitted for this challenge, dated 7 January and tagged 0.9.0 in github.

Following the demo on 11 January, the setup for the deployed dashboard versions of this code (available already running via bit.ly/attvault) has also been captured, in case the dashboards need to be re-deployed. To run the VAULT dashboards:

  1. Download the data locally, if not already, into /vault-data on the host where Docker is running.
  2. Download the vault-dashboards.tar.gz image from this directory.
  3. Run docker load -i vault-dashboards.tar.gz
  4. Run docker run --mount type=bind,source=/vault-data,target=/data -p 8088:8086 vault-dashboards
  5. Visit localhost:8088 in a web browser
  6. You can now select one of the available dashboards, which should open and run in that browser tab.

Re-creating these images

In case you need to re-create these images from the github source, the steps are:

$ cd /tmp
$ git clone git@github.com:Anaconda-Platform/s2i-anaconda-project.git
$ cd s2i-anaconda-project/
$ make

$ cd ~
$ git clone git@github.com:att-vault/vault.git
$ cd vault
$ s2i build . anaconda-project-ubi7 vault-notebooks -e CMD=Viewing_AIS
$ docker run --mount type=bind,source=/vault-data,target=/data -p 8087:8086 vault-notebooks
$ docker save vault-notebooks > ../vault-notebooks.tar.gz

$ git checkout dev
$ s2i build . anaconda-project-ubi7 vault-dashboards -e CMD=dashboards
$ docker run --mount type=bind,source=/vault-data,target=/data -p 8088:8086 vault-dashboards
$ docker save vault-dashboards > ../vault-dashboards.tar.gz