Base application repository for the iDC kubernetes project.
-
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
-
Extract the
data
directory of the tar file to the right location for your platform; then re-name it toidc
. if there is a pre-existingidc
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: ??
-
cd
into the overlays/development/deployment/<PLATFORM> directory for your platform. -
Run
kubectl kustomize . | kubectl apply -f -
to start the stack!
To develop this application, clone https://github.com/jhu-sheridan-libraries/idc-kubernetes with recursion. This is a submodule of that repository.