simplify c&cpp&ansible
This commit is contained in:
parent
a4cd89a82b
commit
e7ef2b23e3
@ -1,4 +1,5 @@
|
||||
FROM eoelab.org:1027/ben0i0d/jupyter:py-c
|
||||
|
||||
RUN pip install ansible-kernel && \
|
||||
python -m ansible_kernel.install
|
||||
python -m ansible_kernel.install && \
|
||||
pip cache purge
|
||||
|
@ -5,17 +5,16 @@ USER root
|
||||
WORKDIR /opt
|
||||
|
||||
RUN apt-get update --yes && apt-get install --yes --no-install-recommends git && apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
||||
git clone --depth 1 https://eoelab.org:1027/mirrors/jupyter-c-kernel.git
|
||||
git clone --depth 1 https://eoelab.org:1027/mirrors/jupyter-c-kernel.git && \
|
||||
cd jupyter-c-kernel && pip install -e . && \
|
||||
cd jupyter_c_kernel && install_c_kernel --sys-prefix
|
||||
|
||||
FROM eoelab.org:1027/ben0i0d/jupyter:py-c
|
||||
|
||||
COPY --chown="${NB_UID}:${NB_GID}" --from=builder /opt/jupyter-c-kernel/ /opt/jupyter-c-kernel/
|
||||
COPY --chown="${NB_UID}:${NB_GID}" --from=builder /opt/base/share/jupyter/kernels/ /opt/base/share/jupyter/kernels/
|
||||
|
||||
USER root
|
||||
|
||||
RUN apt-get update --yes && apt-get install --yes gcc && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
USER ${NB_UID}
|
||||
|
||||
RUN cd /opt/jupyter-c-kernel && pip install -e . && \
|
||||
cd jupyter_c_kernel && install_c_kernel --sys-prefix
|
||||
USER ${NB_UID}
|
@ -1,13 +1,17 @@
|
||||
FROM eoelab.org:1027/ben0i0d/jupyter:py-c AS builder
|
||||
|
||||
USER root
|
||||
ENV MAMBA_ROOT_PREFIX=/opt/mamba
|
||||
|
||||
COPY .condarc /root/.condarc
|
||||
COPY .condarc /opt/mamba/.condarc
|
||||
|
||||
USER root
|
||||
|
||||
RUN apt-get update --yes && apt-get install --yes wget && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
||||
wget https://eoelab.org:1027/ben0i0d/sources/raw/commit/ebbcba790d7b1804efde0715592a0665f6b81fbd/micromamba && \
|
||||
chmod +x micromamba && ./micromamba install --yes --root-prefix /opt/mamba xeus-cling -c conda-forge
|
||||
chmod +x micromamba && \
|
||||
./micromamba install --yes --root-prefix /opt/mamba xeus-cling -c conda-forge && \
|
||||
./micromamba clean --yes --all
|
||||
|
||||
FROM eoelab.org:1027/ben0i0d/jupyter:py-c
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user