Compare commits
1 Commits
container-
...
manage-bui
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bfaaf80549 |
@@ -1,15 +1,2 @@
|
|||||||
# Use the httpd-parent image as base
|
# Use the httpd-parent image as base
|
||||||
FROM quay.io/redhattraining/httpd-parent
|
FROM quay.io/redhattraining/httpd-parent
|
||||||
LABEL io.openshift.expose-services="8080:http"
|
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
RUN sed -i "s/Listen 80/Listen 8080/g" /etc/httpd/conf/httpd.conf
|
|
||||||
RUN sed -i "s/#ServerName www.example.com:80/ServerName 0.0.0.0:8080/g" /etc/httpd/conf/httpd.conf
|
|
||||||
|
|
||||||
RUN chgrp -R 0 /var/log/httpd /var/run/httpd && \
|
|
||||||
chmod -R g=u /var/log/httpd /var/run/httpd
|
|
||||||
|
|
||||||
USER 1001
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ public class ServerHostEndPoint {
|
|||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
String msg = "I am running on server "+host+" Version 1.0 \n";
|
String msg = "I am running on server "+host+" Version 2.0 \n";
|
||||||
return Response.ok(msg).build();
|
return Response.ok(msg).build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user