mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Switch to python 3
- #259 Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
e307e548e0
commit
28a3db5579
11 changed files with 30 additions and 23 deletions
|
@ -2,7 +2,7 @@ FROM archlinux/base
|
|||
|
||||
RUN pacman -Sy --noconfirm archlinux-keyring
|
||||
RUN pacman -Syyu --noconfirm
|
||||
RUN pacman -S --noconfirm gnutls util-linux bash-completion cmake python python2 python2-dateutil git libfaketime man-db groff
|
||||
RUN pacman -S --noconfirm gnutls util-linux bash-completion cmake python python-dateutil git libfaketime man-db groff
|
||||
RUN pacman -S --noconfirm make gcc
|
||||
|
||||
# Setup language environment
|
||||
|
|
|
@ -7,6 +7,7 @@ RUN yum install which cmake3 devtoolset-7-gcc* -y
|
|||
RUN yum install python-dateutil -y
|
||||
RUN source scl_source enable devtoolset-7; gcc --version; cmake3 --version
|
||||
RUN ln -s /usr/bin/cmake3 /usr/bin/cmake
|
||||
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
||||
|
||||
# Setup language environment
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
|
|
@ -4,10 +4,10 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y build-essential cmake git uuid-dev libgnutls28-dev libfaketime man locales
|
||||
RUN apt-get install -y python
|
||||
RUN apt-get install -y python3 python3-dateutil
|
||||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
|
||||
RUN apt-get install -y tzdata
|
||||
RUN apt-get install -y python-dateutil
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||
|
|
|
@ -4,10 +4,10 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y build-essential cmake git uuid-dev libgnutls28-dev libfaketime man locales
|
||||
RUN apt-get install -y python
|
||||
RUN apt-get install -y python3 python3-dateutil
|
||||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
|
||||
RUN apt-get install -y tzdata
|
||||
RUN apt-get install -y python-dateutil
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
FROM fedora:28
|
||||
|
||||
RUN dnf update -y
|
||||
RUN dnf install python git gcc gcc-c++ cmake make gnutls-devel libuuid-devel libfaketime man -y
|
||||
RUN dnf install python-dateutil -y
|
||||
RUN dnf install -y python3 python3-dateutil git gcc gcc-c++ cmake make gnutls-devel libuuid-devel libfaketime man
|
||||
RUN alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
FROM fedora:29
|
||||
|
||||
RUN dnf update -y
|
||||
RUN dnf install python git gcc gcc-c++ cmake make gnutls-devel libuuid-devel libfaketime man -y
|
||||
RUN dnf install python-dateutil -y
|
||||
RUN dnf install -y python3 python3-dateutil git gcc gcc-c++ cmake make gnutls-devel libuuid-devel libfaketime man
|
||||
RUN alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||
|
||||
|
|
|
@ -4,7 +4,18 @@ FROM gentoo/stage3-x86:latest
|
|||
# copy the entire portage volume in
|
||||
COPY --from=gentoo/portage:latest /var/db/repos/gentoo /var/db/repos/gentoo
|
||||
|
||||
RUN (CNT=60 ; while [[ ${CNT} -ne 0 ]] ; do echo "RUNNING (${CNT})" ; sleep 60 ; ((CNT--)) ; done ) & emerge -qv sys-libs/readline:0 net-libs/gnutls:0= sys-apps/util-linux dev-util/cmake sys-devel/make dev-vcs/git sys-libs/libfaketime sys-apps/man-db; kill %1
|
||||
RUN (CNT=60 ; while [[ ${CNT} -ne 0 ]] ; do echo "RUNNING (${CNT})" ; sleep 60 ; ((CNT--)) ; done ) & \
|
||||
emerge -qv sys-libs/readline:0 \
|
||||
net-libs/gnutls:0= \
|
||||
sys-apps/util-linux \
|
||||
dev-util/cmake \
|
||||
dev-lang/python \
|
||||
dev-python/python-dateutil \
|
||||
sys-devel/make \
|
||||
dev-vcs/git \
|
||||
sys-libs/libfaketime \
|
||||
sys-apps/man-db ; \
|
||||
kill %1
|
||||
|
||||
# Setup language environment
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
FROM opensuse/leap:15
|
||||
|
||||
RUN zypper install -y python awk coreutils git gcc gcc-c++ cmake make libgnutls-devel libuuid-devel libfaketime man
|
||||
RUN zypper install -y python-dateutil
|
||||
RUN zypper install -y python3 python3-dateutil awk coreutils git gcc gcc-c++ cmake make libgnutls-devel libuuid-devel libfaketime man
|
||||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
|
||||
ENV TZ=Europe/Berlin
|
||||
|
||||
|
|
|
@ -3,11 +3,8 @@ FROM ubuntu:16.04
|
|||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y build-essential cmake git uuid-dev libgnutls28-dev libfaketime man locales
|
||||
RUN apt-get install -y python
|
||||
|
||||
RUN apt-get install -y tzdata
|
||||
RUN apt-get install -y python-dateutil
|
||||
RUN apt-get install -y build-essential cmake git uuid-dev libgnutls28-dev libfaketime man locales python3 python3-dateutil tzdata
|
||||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||
|
|
|
@ -3,11 +3,8 @@ FROM ubuntu:18.04
|
|||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y build-essential cmake git uuid-dev libgnutls28-dev libfaketime man locales
|
||||
RUN apt-get install -y python
|
||||
|
||||
RUN apt-get install -y tzdata
|
||||
RUN apt-get install -y python-dateutil
|
||||
RUN apt-get install -y build-essential cmake git uuid-dev libgnutls28-dev libfaketime man locales python3 python3-dateutil tzdata
|
||||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||
|
|
|
@ -3,7 +3,8 @@ set -x
|
|||
brew install gnutls
|
||||
brew install cmake
|
||||
brew install libfaketime
|
||||
pip install python-dateutil
|
||||
brew install python3
|
||||
python -m pip install python3-dateutil
|
||||
git clean -dfx
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue