Commit 14efcd9e authored by Michele Carignani's avatar Michele Carignani
Browse files

extend build script with generation of document annexes

parent 231f3034
Loading
Loading
Loading
Loading
+16 −5
Original line number Diff line number Diff line
@@ -12,12 +12,10 @@ ARG ssh_prv_key
RUN DEBIAN_FRONTEND=noninteractive apt update \
	&& apt install python3 git -y \
	&& apt install python3-pip -y \
        && apt install openssh-server -y \
    && DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y \
    && DEBIAN_FRONTEND=noninteractive apt-get autoclean \
    && rm -rf /var/lib/apt/lists/*


RUN echo "docker-robot-STF583" > /etc/hostname \
    && echo "root:etsi" | chpasswd

@@ -26,7 +24,6 @@ RUN useradd --create-home --shell /bin/bash --user-group etsi --groups sudo \
    && adduser etsi sudo \
    && echo "etsi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers


RUN DEBIAN_FRONTEND=noninteractive \
        && mkdir -p /home/etsi/dev/robot \
        && cd /home/etsi/dev/robot 
@@ -37,16 +34,30 @@ RUN DEBIAN_FRONTEND=noninteractive \
        && cd /home/etsi/dev/robot \
	&& git clone https://github.com/etsi-cti-admin/robotframework-mockserver 

ADD . /home/etsi/dev/robot
ADD requirements.txt /home/etsi/dev/robot/
ADD extensions /home/etsi/dev/robot/extensions

RUN ls /home/etsi/dev/robot

RUN DEBIAN_FRONTEND=noninteractive \
	&& cd /home/etsi/dev/robot \
	&& pip3 install -r requirements.txt \
	&& chmod +x /home/etsi/dev/robot/scripts/* \
	&& cd  robotframework-mockserver \
	&& patch -p1 < ../extensions/mockserverlibrary.patch \
	&& python3 -m pip install -e .

RUN DEBIAN_FRONTED=noninteractive \
	cd /home/etsi/dev/ \
	mkdir -p build \
	&& git clone https://forge.etsi.org/rep/forge-tools/robot2doc.git \
	&& cd robot2doc \
	&& pip3 install -r requirements.txt \
	&& python3 -m pip install -e .

ADD . /home/etsi/dev/robot

RUN	chmod +x /home/etsi/dev/robot/scripts/*

CMD tail -f /dev/null

+3 −1
Original line number Diff line number Diff line
@@ -5,7 +5,9 @@
#set -e
#set -vx

docker run stf583-rf-validation:latest "bash" \
mkdir -p build

docker run -v $(pwd)/build:/home/etsi/dev/build stf583-rf-validation:latest "bash" \
	-c  "/home/etsi/dev/robot/scripts/validate.sh"

ret=$? 
+8 −1
Original line number Diff line number Diff line
@@ -17,4 +17,11 @@ for i in */*/*.robot ; do
    fi
done

exit $res
cd /home/etsi/dev/robot2doc/robot2doc

mkdir -p /home/etsi/dev/build

python3 create_sols.py ../../robot 'local' ../../build
res2=$?

exit $res && $res2