# NOTE: the following image name is the openEuler docker images name from dailybuild,
# may need to modify
FROM  openeuler-24.03-lts:latest

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

COPY openEuler.repo /etc/yum.repos.d/

RUN yum update -y && yum install -y \
    sudo git tar curl patch shadow-utils make cmake gcc gcc-c++ \
    rpm-build dnf-plugins-core make rpmdevtools wget python3-pip

RUN yum update -y && yum install -y openssl-devel libffi-devel \
    python3-devel python3-wheel

RUN sed -i s'/TMOUT=300/TMOUT=300000000000/' /etc/bashrc

RUN rpmdev-setuptree

WORKDIR /root/
RUN git clone https://atomgit.com/openeuler/openstack.git \
    && cd openstack/tools/oos \
    && pip3 install -r requirements.txt \
    && python3 setup.py develop