I believe I fulfilled the requirements specified for the task, I don’t know it is marked as failed. Please someone should look into it @mmumshad
Put your task up for review, so other people can look at it. Someone will definitely help out
Hi everyone, @Ayman, @mmumshad, @Tej-Singh-Rana
I did all of steps as mentioned is the statement and the response is
" As per ‘/opt/docker/Dockerfile’ on App Server 2 apache is not configured to use port ‘5004’"
Attach the statement, Dockerfile and image with the summary
Statement
As per recent requirements shared by the Nautilus application development team, they need custom images created for one of their projects. Several of the initial testing requirements are already been shared with DevOps team. Therefore, create a docker file /opt/docker/Dockerfile (please keep D capital of Dockerfile) on App server 2 in Stratos DC and configure to build an image with the following requirements:
a. Use ubuntu as the base image.
b. Install apache2 and configure it to work on 5004 port. (do not update any other Apache configuration settings like document root etc).
Dockerfile
FROM ubuntu
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y apache2 apache2-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN sed -i "s/80/5004/" /etc/apache2/ports.conf
EXPOSE 5004
ENTRYPOINT ["/usr/sbin/apache2ctl"]
CMD ["-D", "FOREGROUND", "-k", "start"]