Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
InterHop
Omop
susana-front
Commits
2a70de3e
Commit
2a70de3e
authored
May 09, 2021
by
Nicolas Paris
Browse files
Replace host ip within the image
parent
dc1199ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
2a70de3e
FROM
nginx
FROM
nginx
ARG
api_hostname
ARG
api_port=5000
COPY
concept_mapper_front/WebContent /usr/share/nginx/html
COPY
concept_mapper_front/WebContent /usr/share/nginx/html
RUN
apt update
&&
apt
install
wget unzip
-y
RUN
apt update
&&
apt
install
wget unzip
-y
RUN
echo
$api_hostname
WORKDIR
/usr/share/nginx/html/
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
&&
\
# replace with the host private ip to allow selenium to access it from the browser
mv /tmp/resources .
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 .
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment