Closed MaximeWeyl closed 1 year ago
Using matlab-proxy in my browser, i am not able to drag and drop a 3.4 Mb file.
Here is my Dockerfile :
ARG FROM="ubuntu:20.04" FROM $FROM as ubuntu_myuser SHELL ["/bin/bash", "-l", "-c"] ENV LANG=C.UTF-8 ENV SHELL=/bin/bash ENV WORKSPACE_DIR=/workspace ENV REAL_WORKSPACE_DIR=/.workspace # Creation of myuser USER root RUN mkdir -p $WORKSPACE_DIR && \ chown 42420:42420 $WORKSPACE_DIR && \ addgroup --gid 42420 myuser && \ useradd --uid 42420 -g myuser --shell /bin/bash -d $WORKSPACE_DIR myuser USER myuser WORKDIR /workspace # ----- Step matlab # ========================================== Dependencies ========================================================= # based on the work from : https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2022a/ubuntu20.04/Dockerfile FROM ubuntu_myuser as matlab_deps USER root ENV DEBIAN_FRONTEND="noninteractive" TZ="Etc/UTC" RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates libasound2 libc6 libcairo-gobject2 \ libcairo2 libcap2 libcrypt1 libcrypt-dev libcups2 libdbus-1-3 libdrm2 libfontconfig1 libgbm1 libgdk-pixbuf2.0-0 \ libgl1 libglib2.0-0 libgomp1 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgtk-3-0 libnspr4 libnss3 \ libodbc1 libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpython3.9 libsm6 libsndfile1 libuuid1 \ libx11-6 libx11-xcb1 libxcb-dri3-0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxft2 libxi6 \ libxinerama1 libxrandr2 libxrender1 libxt6 libxtst6 libxxf86vm1 linux-libc-dev locales locales-all make net-tools \ procps sudo unzip wget zlib1g \ && apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* RUN [ -d /usr/share/X11/xkb ] || mkdir -p /usr/share/X11/xkb # Install patched glibc - See https://github.com/mathworks/build-glibc-bz-19329-patch # Note: base-dependencies.txt includes libcrypt-dev and linux-libc-dev to enable installation of patched -dev packages WORKDIR /packages RUN export DEBIAN_FRONTEND=noninteractive &&\ wget -q https://github.com/mathworks/build-glibc-bz-19329-patch/releases/download/ubuntu-focal/all-packages.tar.gz &&\ tar -x -f all-packages.tar.gz \ --exclude glibc-*.deb \ --exclude libc6-dbg*.deb &&\ apt-get install --yes --no-install-recommends ./*.deb &&\ rm -fr /packages WORKDIR / # ========================================== Matlab installation ========================================================= # Source : https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile FROM matlab_deps as matlab_matlab ARG matlab_MATLAB_RELEASE=r2022a # Install mpm dependencies RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \ apt-get install --no-install-recommends --yes \ wget \ unzip \ ca-certificates && \ apt-get clean && apt-get autoremove RUN wget -q https://www.mathworks.com/mpm/glnxa64/mpm && \ chmod +x mpm && \ ./mpm install \ --release=${matlab_MATLAB_RELEASE} \ --destination=/opt/matlab \ --products MATLAB || \ (echo "MPM Installation Failure. See below for more information:" && cat /tmp/mathworks_root.log && false) && \ rm -f mpm /tmp/mathworks_root.log && \ ln -s /opt/matlab/bin/matlab /usr/local/bin/matlab USER myuser WORKDIR /workspace # ========================================== Matlab proxy installation ========================================================= # Adds matlab proxy : https://github.com/mathworks/matlab-proxy/blob/main/examples/Dockerfile FROM matlab_matlab as matlab_matlab-with-proxy USER root # Install dependencies for matlab-proxy RUN DEBIAN_FRONTEND=noninteractive && \ apt-get update && apt-get install --no-install-recommends -y \ && apt-get install --no-install-recommends -y \ python3 \ python3-pip \ xvfb \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* RUN python3 -m pip install matlab-proxy # Set environment variables used by integration ENV MWI_APP_HOST="0.0.0.0" ENV MWI_APP_PORT="8080" ENV MWI_BASE_URL="/" ENTRYPOINT [] CMD ["matlab-proxy-app"]
And here it is built and pushed to dockerhub : ovhaimax/matlab:sizeissue
I do not get this error on https://matlab.mathworks.com/, but I do here with my own Dockerfile of matlab proxy.
Using matlab-proxy in my browser, i am not able to drag and drop a 3.4 Mb file.
Here is my Dockerfile :
And here it is built and pushed to dockerhub : ovhaimax/matlab:sizeissue
I do not get this error on https://matlab.mathworks.com/, but I do here with my own Dockerfile of matlab proxy.