Commit 2a70de3e authored by Nicolas Paris's avatar Nicolas Paris
Browse files

Replace host ip within the image

parent dc1199ad
FROM nginx
ARG api_hostname
ARG api_port=5000
COPY concept_mapper_front/WebContent /usr/share/nginx/html
RUN apt update && apt install wget unzip -y
RUN echo $api_hostname
WORKDIR /usr/share/nginx/html/
RUN wget https://github.com/SAP/openui5/releases/download/1.84.11/openui5-runtime-1.84.11.zip && unzip -o openui5-runtime-1.84.11.zip -d /tmp && \
mv /tmp/resources .
# replace with the host private ip to allow selenium to access it from the browser
RUN find . -type f -exec sed -i "s|http://localhost:5000/|http://$api_hostname:$api_port/|g" {} \;
RUN wget https://github.com/SAP/openui5/releases/download/1.84.11/openui5-runtime-1.84.11.zip
RUN unzip -o openui5-runtime-1.84.11.zip -d /tmp
RUN mv /tmp/resources .
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment