Compare commits
1 Commits
app-deploy
...
container-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6096b01123 |
@@ -1,2 +1,15 @@
|
|||||||
# 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
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class Quip {
|
|||||||
@Produces("text/plain")
|
@Produces("text/plain")
|
||||||
public Response index() throws Exception {
|
public Response index() throws Exception {
|
||||||
String host = InetAddress.getLocalHost().getHostName();
|
String host = InetAddress.getLocalHost().getHostName();
|
||||||
return Response.ok("I came, I saw, I conquered...\n").build();
|
return Response.ok("Veni, vidi, vici...\n").build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
|
|||||||
Reference in New Issue
Block a user