mirror of https://github.com/citusdata/citus.git
test if copy-chown works with link to keep the ownership if folders correct
parent
85248b8ea2
commit
4024ce395e
|
|
@ -153,11 +153,11 @@ RUN git clone https://github.com/so-fancy/diff-so-fancy.git \
|
|||
|
||||
COPY --link --from=uncrustify-builder /uncrustify/usr/ /usr/
|
||||
|
||||
COPY --link --from=pg14 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||
COPY --link --from=pg15 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||
COPY --link --from=pg16 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||
COPY --chown=citus:citus --link --from=pg14 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||
COPY --chown=citus:citus --link --from=pg15 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||
COPY --chown=citus:citus --link --from=pg16 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||
|
||||
COPY --link --from=pipenv /home/citus/.local/share/virtualenvs/ /home/citus/.local/share/virtualenvs/
|
||||
COPY --chown=citus:citus --link --from=pipenv /home/citus/.local/share/virtualenvs/ /home/citus/.local/share/virtualenvs/
|
||||
|
||||
# place to run your cluster with citus_dev
|
||||
VOLUME /data
|
||||
|
|
@ -168,7 +168,7 @@ COPY --chown=citus:citus .psqlrc .
|
|||
|
||||
# with the copy linking of layers github actions seem to misbehave with the ownership of the
|
||||
# directories leading upto the link, hence a small patch layer to have to right ownerships set
|
||||
RUN sudo chown citus:citus ~/.pgenv ~/.local ~/.local/share ~/.local/share/virtualenvs
|
||||
# RUN sudo chown --from=root:root citus:citus -R ~
|
||||
|
||||
# sets default pg version
|
||||
RUN pgenv switch latest 15
|
||||
|
|
|
|||
Loading…
Reference in New Issue