diff --git a/.ci/ubuntu22.10_py3/Dockerfile b/.ci/ubuntu22.10_py3/Dockerfile new file mode 100644 index 0000000..cca3ac6 --- /dev/null +++ b/.ci/ubuntu22.10_py3/Dockerfile @@ -0,0 +1,33 @@ +FROM ubuntu:22.04 + +MAINTAINER DESY, Jan Kotanski + +RUN apt-get -qq update && export DEBIAN_FRONTEND=noninteractive && apt-get -qq install -y software-properties-common curl +RUN curl http://repos.pni-hdri.de/debian_repo.pub.gpg | apt-key add - +RUN add-apt-repository "deb http://repos.pni-hdri.de/apt/ubuntu jammy main" -y +RUN apt-get -qq update && export DEBIAN_FRONTEND=noninteractive && apt-get -qq dist-upgrade +RUN apt-get -qq update && export DEBIAN_FRONTEND=noninteractive && apt-get -qq install -y mysql-client mysql-client python3-h5py python3-sphinx apt-utils debconf-utils net-tools omniidl libomniorb4-dev libcos4-dev libzmq3-dev python3-distutils python3-pninexus python3-lxml +RUN export DEBIAN_FRONTEND=noninteractive && apt-get -qq install -y python3-pninexus python3-h5py python3-setuptools python3-pyqt5 python3-pyqt5.qtsvg python3-qtchecker qtchooser +RUN useradd -ms /bin/bash tango +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "mysql-server mysql-server/root_password password rootpw"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "mysql-server mysql-server/root_password_again password rootpw"' +RUN apt-get -qq update && apt-get -qq install -y python3-mysqldb mysql-server +RUN /bin/bash -c 'sleep 10' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "tango-db tango-db/db/app-user string tango"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "tango-db tango-db/mysql/app-pass password rootpw"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "tango-db tango-db/mysql/admin-pass password rootpw"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "tango-db tango-db/password-confirm password rootpw"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "tango-db tango-db/app-password-confirm password rootpw"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "nxsconfigserver-db nxsconfigserver-db/mysql/app-pass password rootpw"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "nxsconfigserver-db nxsconfigserver-db/mysql/admin-pass password rootpw"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "nxsconfigserver-db nxsconfigserver-db/app-password-confirm password rootpw"' +RUN /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; debconf-set-selections <<< "nxsconfigserver-db nxsconfigserver-db/db/app-user string tango"' + +RUN sed -i "s/\[mysql\]/\[mysqld\]\nsql_mode = NO_ZERO_IN_DATE,NO_ENGINE_SUBSTITUTION\ncharacter_set_server=latin1\ncollation_server=latin1_swedish_ci\n\[mysql\]/g" /etc/mysql/mysql.conf.d/mysql.cnf + +ENV PKG_CONFIG_PATH=/home/tango/lib/pkgconfig +ENV DISPLAY=":99.0" +ENV MYSQL_HOST=127.0.0.1 +USER tango +WORKDIR /home/tango + diff --git a/README.rst b/README.rst index 3f32812..efa87f9 100644 --- a/README.rst +++ b/README.rst @@ -58,12 +58,12 @@ Extract the sources and run .. code-block:: console - $ python setup.py install + $ python3 setup.py install Debian packages ^^^^^^^^^^^^^^^ -Debian Bookworm, Bullseye, Buster and Ubuntu Lunar, Jammy, Focal packages can be found in the HDRI repository. +Debian Bookworm, Bullseye, Buster and Ubuntu Oracular, Lunar, Jammy packages can be found in the HDRI repository. To install the debian packages, add the PGP repository key @@ -201,7 +201,7 @@ If the `RecoderPath` property of MacroServer is not set one can do it by .. code-block:: console - $ nxsetup add-recorder-path /usr/lib/python2.7/dist-packages/sardananxsrecorder + $ nxsetup add-recorder-path /usr/lib/python3/dist-packages/sardananxsrecorder where the path should point the `sardananxsrecorder` package.