ยง2024-10-22
This is the Dockerfile to test installation of Wildduck
#
# 2024-10-22
# dockerfile to test installation of Wildduck
# [Wildduck Installer]([WildDuck Installer](https://github.com/nodemailer/wildduck/blob/master/setup/README.md))
#
FROM ubuntu:noble
# Set non-interactive mode for apt
# ENV DEBIAN_FRONTEND=noninteractive
# Update the package list and install the required packages
RUN apt-get update && \
apt-get install -y build-essential wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# In order to build MongoDB, Python 3.10+ is required, and several Python modules must be installed.
#
# install https://www.python.org/ftp/python/3.10.15/Python-3.10.15.tar.xz
ENV PYTHON_VERSION=3.10.15
RUN wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz && \
tar xvf Python-$PYTHON_VERSION.tar.xz && \
cd Python-$PYTHON_VERSION && \
./configure --enable-optimizations --with-ensurepip=install && \
make -j 6 && \
make altinstall && \
rm -rf Python-$PYTHON_VERSION.tar.xz Python-$PYTHON_VERSION
# PYthon3 -version
# Python 3.12.3
# pip pip --version
# pip 24.0 from /usr/lib/python3/dist-packages/pip (python 3.12)
#
#
# git clone
#
# RUN git clone https://github.com/mongodb/mongo.git
#
# WORKDIR /mongo
#
# Command to run when starting the container
CMD ["bash"]
#
#
#
# Notes
#
# docker build -f Dockerfile.mongoDB.Python-3.10.15.Jammy --tag mongodb_python3.10.15:jammy (--no-cache) ./
# docker run -it mongodb_python3.10.15:jammy
# docker run -d -p 42100:8000 --mount type=bind,source=/volume1/JupyterHub,target=/home/alexlai/JupyterHub --name jupyterhub mongodb_python3.10.15:jammy jupyterhub
# outside-port:inside-port
# docker ps
# docker stop (NAMES)
# docker rm (NAMES)
# docker image prune
#
# docker run -it mongodb:jammy
# python3 -m venv /PYTHON-3.12.3
# source /PYTHON-3.12.3/bin.activate
# pip3 install 'poetry==1.5.3'
# buildscripts/poetry_sync.sh
# git checkout r8.0.0 -b test
# time python3 buildscripts/scons.py install-core -j6 --ssl --linker=gold CFLAGS="-march=armv8-a+crc -mtune='cortex-a73.cortex-a53' " --disable-warnings-as-errors >log 2>&1 &
# export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
# /PYTHON-3.10.12/bin/python3 -m poetry install --no-root --sync
# Downgrading zope-interface (5.5.2 -> 5.0.0): Failed
# pip wheel --use-pep517 "zope-interface (==5.0.0)"
#