mirror of https://github.com/citusdata/citus.git
prebuild pipenv for regress and citus_dev
parent
f891f6ba2b
commit
1fc1ec7bf5
|
@ -98,6 +98,15 @@ RUN make -sj8
|
||||||
|
|
||||||
RUN make install DESTDIR=/uncrustify
|
RUN make install DESTDIR=/uncrustify
|
||||||
|
|
||||||
|
FROM base AS pipenv
|
||||||
|
|
||||||
|
RUN sudo pip3 install pipenv
|
||||||
|
|
||||||
|
WORKDIR /workspaces/citus/
|
||||||
|
COPY src/ src/
|
||||||
|
RUN ls -al
|
||||||
|
RUN ( cd src/test/regress && pipenv install )
|
||||||
|
|
||||||
# assemble the final container by copying over the artifacts from separately build containers
|
# assemble the final container by copying over the artifacts from separately build containers
|
||||||
FROM base AS devcontainer
|
FROM base AS devcontainer
|
||||||
|
|
||||||
|
@ -110,27 +119,29 @@ RUN sudo apt update \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
gdb \
|
gdb \
|
||||||
htop \
|
htop \
|
||||||
|
lsof \
|
||||||
man \
|
man \
|
||||||
|
net-tools \
|
||||||
pspg \
|
pspg \
|
||||||
vim \
|
vim \
|
||||||
&& sudo apt clean
|
&& sudo apt clean
|
||||||
|
|
||||||
|
RUN sudo pip3 install pipenv pipenv-shebang
|
||||||
|
|
||||||
# add some common tools to the final container
|
# add some common tools to the final container
|
||||||
# bin directory for user tools
|
# bin directory for user tools
|
||||||
RUN mkdir .bin
|
RUN mkdir .bin
|
||||||
ENV PATH="/home/citus/.bin:${PATH}"
|
ENV PATH="/home/citus/.bin:${PATH}"
|
||||||
|
|
||||||
# install citus-dev
|
# install citus-dev
|
||||||
RUN git clone https://github.com/citusdata/tools.git citus-tools \
|
RUN git clone --branch feature/citus-dev-pipenv-shebang https://github.com/citusdata/tools.git citus-tools \
|
||||||
&& pip3 install -r citus-tools/citus_dev/requirements.txt \
|
&& ( cd citus-tools/citus_dev && pipenv install ) \
|
||||||
&& ln -s /home/citus/citus-tools/citus_dev/citus_dev .bin/ \
|
&& ln -s /home/citus/citus-tools/citus_dev/citus_dev .bin/ \
|
||||||
&& 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/
|
||||||
|
|
||||||
# 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/ \
|
&& ln -s /home/citus/diff-so-fancy/diff-so-fancy .bin/
|
||||||
&& git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" \
|
|
||||||
&& git config --global interactive.diffFilter "diff-so-fancy --patch"
|
|
||||||
|
|
||||||
COPY --from=uncrustify-builder /uncrustify/usr/ /usr/
|
COPY --from=uncrustify-builder /uncrustify/usr/ /usr/
|
||||||
|
|
||||||
|
@ -138,6 +149,8 @@ COPY --from=pg14 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||||
COPY --from=pg15 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
COPY --from=pg15 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||||
# COPY --from=pg16 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
# COPY --from=pg16 /home/citus/.pgenv-staging/ /home/citus/.pgenv/
|
||||||
|
|
||||||
|
COPY --from=pipenv /home/citus/.local/share/virtualenvs/ /home/citus/.local/share/virtualenvs/
|
||||||
|
|
||||||
# place to run your cluster with citus_dev
|
# place to run your cluster with citus_dev
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
RUN sudo mkdir /data \
|
RUN sudo mkdir /data \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"image": "citus/devcontainer:dev-20230705",
|
"image": "citus/devcontainer:dev-20230725",
|
||||||
"runArgs": [
|
"runArgs": [
|
||||||
"--cap-add=SYS_PTRACE",
|
"--cap-add=SYS_PTRACE",
|
||||||
"--security-opt",
|
"--security-opt",
|
||||||
|
|
Loading…
Reference in New Issue