diff --git a/hello-java/Containerfile b/hello-java/Containerfile index db3005d308..5b581e34dd 100644 --- a/hello-java/Containerfile +++ b/hello-java/Containerfile @@ -9,7 +9,6 @@ ENV JAVA_OPTIONS -Xmx512m # Install the Java runtime, create a user for running the app, and set permissions RUN yum install -y --disableplugin=subscription-manager java-1.8.0-openjdk-headless && \ yum clean all --disableplugin=subscription-manager -y && \ - useradd wildfly && \ mkdir -p /opt/app-root/bin # Copy the runnable fat JAR to the container. @@ -17,12 +16,12 @@ ADD https://github.com/RedHatTraining/DO288-apps/releases/download/OCP-4.1-1/h COPY run-app.sh /opt/app-root/bin/ -RUN chown -R wildfly:wildfly /opt/app-root && \ - chmod -R 700 /opt/app-root +RUN chgrp -R 0 /opt/app-root && \ + chmod -R g=u /opt/app-root EXPOSE 8080 -USER wildfly +USER 1001 # Run the fat JAR CMD /opt/app-root/bin/run-app.sh diff --git a/nodejs-helloworld/package.json b/nodejs-helloworld/package.json index 338e1f7ead..7392902b2b 100644 --- a/nodejs-helloworld/package.json +++ b/nodejs-helloworld/package.json @@ -7,8 +7,8 @@ "start": "node app.js" }, "author": "Red Hat Training", - "license": "ASL", + "license": "Apache-2.0", "dependencies": { - "express" "4.14.x" + "express": "4.14.0" } } diff --git a/quip/src/main/java/com/redhat/training/example/Quip.java b/quip/src/main/java/com/redhat/training/example/Quip.java index 27afa775ae..21320af3d9 100644 --- a/quip/src/main/java/com/redhat/training/example/Quip.java +++ b/quip/src/main/java/com/redhat/training/example/Quip.java @@ -14,7 +14,7 @@ public class Quip { @Produces("text/plain") public Response index() throws Exception { String host = InetAddress.getLocalHost().getHostName(); - return Response.ok("Veni, vidi, vici...\n").build(); + return Response.ok("I came, I saw, I conquered hello.\n").build(); } @GET