we deploy jasperreport (bitnami image from here: https://hub.docker.com/r/bitnami/jasperreports)
So far so good, everything works well. We made it simple (no volume) for the moment.
The next step is to enable cas login. To do so, We need to copy (inject?) a file 'applicationContext.xml' into the WEBINF directory of the tomcat.
That is where I don't know how to do that in my deploy.yml file.
What would be the best practice here ?
Here is the deploy.yml we have so far (working well):
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: jasper
name: jasper
namespace: unc-dev
spec:
replicas: 1
selector:
matchLabels:
app: jasper
template:
metadata:
labels:
app: jasper
spec:
containers:
- image: bitnami/jasperreports:7.2.0
name: jasper
env:
- name: MARIADB_HOST
value: 127.0.0.1
- name: MARIADB_PORT_NUMBER
value: '3307'
- name: JASPERREPORTS_DATABASE_USER
value: bn_jasperreports
- name: JASPERREPORTS_DATABASE_NAME
value: bitnami_jasperreports
- name: ALLOW_EMPTY_PASSWORD
value: 'yes'
- image: bitnami/mariadb:10.3.22
name: mariadb
env:
- name: MARIADB_USER
value: bn_jasperreports
- name: MARIADB_PORT_NUMBER
value: '3307'
- name: MARIADB_DATABASE
value: bitnami_jasperreports
- name: ALLOW_EMPTY_PASSWORD
value: 'yes'