Change volume owner before it is mounted

Currently Armada can not read /airskiff.yaml file because
it doesn't have privileges for that, but it is required
to start.

Change-Id: Ifb88693b065a3cc2b3d1d6e75fe72b22a32bbff7
This commit is contained in:
Daniel Pawlik 2019-07-31 08:12:46 +00:00
parent d404e3c034
commit d27993db93
3 changed files with 24 additions and 0 deletions

View File

@ -59,4 +59,12 @@ RUN \
chown -R armada:users /armada && \
python3 setup.py install
# Create dir airskiff.yaml (later it will be a mounted volume)
# and set armada user as an owner
RUN \
touch /airskiff.yaml && \
chown armada:users /airskiff.yaml
VOLUME /airskiff.yaml
USER armada

View File

@ -77,4 +77,12 @@ RUN \
chown -R armada:users . && \
python3 setup.py install
# Create dir airskiff.yaml (later it will be a mounted volume)
# and set armada user as an owner
RUN \
touch /airskiff.yaml && \
chown armada:users /airskiff.yaml
VOLUME /airskiff.yaml
USER armada

View File

@ -77,4 +77,12 @@ RUN \
chown -R armada:users . && \
python3 setup.py install
# Create dir airskiff.yaml (later it will be a mounted volume)
# and set armada user as an owner
RUN \
touch /airskiff.yaml && \
chown armada:users /airskiff.yaml
VOLUME /airskiff.yaml
USER armada