Skip to content

Commit

Permalink
test if copy-chown works with link to keep the ownership if folders c…
Browse files Browse the repository at this point in the history
…orrect
  • Loading branch information
thanodnl committed Aug 3, 2023
1 parent 492c0c9 commit 3e88538
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3e88538

Please sign in to comment.