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 committed by Szymon Datko
parent d404e3c034
commit 197ae2a093
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 file airskiff.yaml and set armada user as its owner
# (later there will be a volume mounted)
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 file airskiff.yaml and set armada user as its owner
# (later there will be a volume mounted)
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 file airskiff.yaml and set armada user as its owner
# (later there will be a volume mounted)
RUN \
touch /airskiff.yaml && \
chown armada:users /airskiff.yaml
VOLUME /airskiff.yaml
USER armada