IMG_20211109_172824.jpg
# all-things-deployment
s
IMG_20211109_172824.jpg
d
what was the command you ran?
s
If you are trying to re-build
datahub-frontend
docker image to modify
user.props
don't. You can just mount the volume to the correct path and that would work. e.g. I did this in our helm chart values
Copy code
extraVolumes:
    - name: user-props
      secret:
        secretName: datahub-pass-secret
  extraVolumeMounts:
    - name: user-props
      mountPath: /datahub-frontend/conf/user.props
      subPath: token
      readOnly: true
datahub-pass-secret
is a secret that I created in our kubernetes cluster with token property containing the content of the file
s
i want to add users by user props
s
I faced similar issue. I just did a volume mount in kubernetes. There is volume mounts in docker also. You can find that out. Doing a build is a much longer process. Doing a build will add a lot of overhead. I would advice against that
b
What is the command you’re running?
If you’re running dev.sh make sure you’ve built datahub front end module first ./gradlew datahub-frontend:build
s
ok
i run ./dev.sh to build the whole project
@square-activity-64562 i use datahub docker quickstart to deploy datahub, so i dont know how to mount volumes 😅 do i need to modify docker-compose.yml file
actually i don't want to build from scratch.what i want is add some configs
but i don't know how to do that
e.g mount users.prop file
when i run docker-compose up
my bad fixed now i am not familiar with docker compose
👍 😂
g
Hey @silly-translator-73123 Did you get this figure out? I have the same question and issue like you
a
@square-activity-64562 Hi! https://datahubspace.slack.com/archives/CV2UVAPPG/p1636450948110500?thread_ts=1636450148.109600&cid=CV2UVAPPG So you just add this to values.yaml under
datahub-frontend:
part and that’s it?
and what is it
subPath: token
could you please advise where can I find an example?
s
When you do
Copy code
kubectl create secret generic datahub-pass-secret --from-literal=token=YOUR_SECRET
👍 1
a
oh, I see, thanks a lot!