Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.88 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.88 KB

idcApp-k8s

Base application repository for the iDC kubernetes project.

Quick start

  1. Extract snapshot content into a tar file. Currently, idcApp-k8s does not have a convenient way of handling snapshots, so this must be handled manually.

    a. Identify a snapshot image to extract. Copy the latest image tag from the github package registry, or look in idc-isle-dc/.env. For example, ghcr.io/jhu-sheridan-libraries/idc-isle-dc/snapshot:upstream-20201007-739693ae-405-g521b43f.1630614319.

    b. Extract a tar file from the snapshot image via snapshot=$(docker create <IMAGE>); docker export $snapshot > data.tar. For example,

       snapshot=$(docker create ghcr.io/jhu-sheridan-libraries/idc-isle-dc/snapshot:upstream-20201007-739693ae-405-g521b43f.1630614319); \
       docker export $snapshot > data.tar
      
  2. Extract the data directory of the tar file to the right location for your platform; then re-name it to idc. if there is a pre-existing idc directory present, delete it. The kubernetes app uses this directory as a bind mount volume for all persistent state. So deleting the existing idc directory and replacing it with content extracted from the snapshot will start from a clean/empty snapshot.

    a. Windows (wsl2): tar -C /mnt/c/kubernetes -xvf data.tar data; mv /mnt/c/kubernetes/data /mnt/c/kubernetes/idc

    b. Linux: tar -C /minukube-host/ -xvf data.tar data; mv /minikube-host/data /minikube-host/idc

    c. Mac: ??

  3. cd into the overlays/development/deployment/<PLATFORM> directory for your platform.

  4. Run kubectl kustomize . | kubectl apply -f - to start the stack!

Development

To develop this application, clone https://github.com/jhu-sheridan-libraries/idc-kubernetes with recursion. This is a submodule of that repository.