DSpace directory structure
This is the directory structure
├── clarin-dspace-docker
│ └── commul-customization
└── kubernetes
├── helm
│ └── dspace
│ ├── charts
│ │ └── postgresql
│ │ └── templates
│ └── templates
└── yaml
-
/clarin-dspace-docker
- Docker files, copied from https://github.com/commul/clarin-dspace-docker @ 74d06d35 -
/kubernetes
- Kubernetes files -
/kubernetes/helm
- Chart Directory. Refer to https://github.com/kubernetes/helm/blob/master/docs/charts.md#the-chart-file-structure -
/kubernetes/yaml
- Useful for tests, but helm is a more flexible approach
Requirements
- Kubernetes cluster
To interact with cluster
- Kubernetes credentials
- a working [kubectl] (https://kubernetes.io/docs/tasks/tools/install-kubectl/)
To interact with Helm server (tiller)
- Kubernetes credentials
- a working [kubectl] (https://kubernetes.io/docs/tasks/tools/install-kubectl/)
- a working [helm client] (https://docs.helm.sh/using_helm/#quickstart-guide)
How to use it
Workflow
First of all, check if a docker image already exist. If exist, pull it, otherwise you neeed to build one.
Use existing Docker image
docker image ls -a gitlab.scientificnet.org:4567/commul/dspace/*
docker pull gitlab.scientificnet.org:4567/commul/dspace/<my_image>:<my tag>
Build images
- build your docker image from
/clarin-dspace-docker
directory - push to
https://gitlab.scientificnet.org/commul/dspace/container_registry
docker build -t gitlab.scientificnet.org:4567/commul/dspace/<my_image>:<my tag> -f Dockerfile.XX .
docker push gitlab.scientificnet.org:4567/commul/dspace/<my_image>:<my tag>