mirror of https://github.com/citusdata/citus.git
reorder installations, move binaries to .local/bin
parent
71e1e76ced
commit
69b16e1eca
|
@ -165,10 +165,8 @@ RUN sudo apt update \
|
||||||
RUN sudo curl -o /root/gdbpg.py https://raw.githubusercontent.com/tvesely/gdbpg/6065eee7872457785f830925eac665aa535caf62/gdbpg.py
|
RUN sudo curl -o /root/gdbpg.py https://raw.githubusercontent.com/tvesely/gdbpg/6065eee7872457785f830925eac665aa535caf62/gdbpg.py
|
||||||
COPY --chown=root:root .gdbinit /root/
|
COPY --chown=root:root .gdbinit /root/
|
||||||
|
|
||||||
# add some common tools to the final container
|
# install developer dependencies in the global environment
|
||||||
# bin directory for user tools
|
RUN --mount=type=bind,source=requirements.txt,target=requirements.txt pip install -r requirements.txt
|
||||||
RUN mkdir .bin
|
|
||||||
ENV PATH="/home/citus/.bin:${PATH}"
|
|
||||||
|
|
||||||
# for persistent bash history across devcontainers we need to have
|
# for persistent bash history across devcontainers we need to have
|
||||||
# a) a directory to store the history in
|
# a) a directory to store the history in
|
||||||
|
@ -181,14 +179,16 @@ RUN sudo install -d -o citus -g citus /commandhistory \
|
||||||
# install citus-dev
|
# install citus-dev
|
||||||
RUN git clone --branch develop https://github.com/citusdata/tools.git citus-tools \
|
RUN git clone --branch develop https://github.com/citusdata/tools.git citus-tools \
|
||||||
&& ( cd citus-tools/citus_dev && pipenv install ) \
|
&& ( cd citus-tools/citus_dev && pipenv install ) \
|
||||||
&& ln -s /home/citus/citus-tools/citus_dev/citus_dev-pipenv .bin/citus_dev \
|
&& mkdir -p ~/.local/bin \
|
||||||
|
&& ln -s /home/citus/citus-tools/citus_dev/citus_dev-pipenv .local/bin/citus_dev \
|
||||||
&& sudo make -C citus-tools/uncrustify install bindir=/usr/local/bin pkgsysconfdir=/usr/local/etc/ \
|
&& sudo make -C citus-tools/uncrustify install bindir=/usr/local/bin pkgsysconfdir=/usr/local/etc/ \
|
||||||
&& mkdir -p ~/.local/share/bash-completion/completions/ \
|
&& mkdir -p ~/.local/share/bash-completion/completions/ \
|
||||||
&& ln -s ~/citus-tools/citus_dev/bash_completion ~/.local/share/bash-completion/completions/citus_dev
|
&& ln -s ~/citus-tools/citus_dev/bash_completion ~/.local/share/bash-completion/completions/citus_dev
|
||||||
|
|
||||||
# TODO some LC_ALL errors, possibly solved by locale-gen
|
# TODO some LC_ALL errors, possibly solved by locale-gen
|
||||||
RUN git clone https://github.com/so-fancy/diff-so-fancy.git \
|
RUN git clone https://github.com/so-fancy/diff-so-fancy.git \
|
||||||
&& ln -s /home/citus/diff-so-fancy/diff-so-fancy .bin/
|
&& mkdir -p ~/.local/bin \
|
||||||
|
&& ln -s /home/citus/diff-so-fancy/diff-so-fancy .local/bin/
|
||||||
|
|
||||||
COPY --link --from=uncrustify-builder /uncrustify/usr/ /usr/
|
COPY --link --from=uncrustify-builder /uncrustify/usr/ /usr/
|
||||||
|
|
||||||
|
@ -212,7 +212,5 @@ RUN sudo chown --from=root:root citus:citus -R ~
|
||||||
# sets default pg version
|
# sets default pg version
|
||||||
RUN pgenv switch 16.1
|
RUN pgenv switch 16.1
|
||||||
|
|
||||||
RUN --mount=type=bind,source=requirements.txt,target=requirements.txt pip install -r requirements.txt
|
|
||||||
|
|
||||||
# make connecting to the coordinator easy
|
# make connecting to the coordinator easy
|
||||||
ENV PGPORT=9700
|
ENV PGPORT=9700
|
||||||
|
|
Loading…
Reference in New Issue