Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #420

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

test #420

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions hello-java/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ 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.
ADD https://github.com/RedHatTraining/DO288-apps/releases/download/OCP-4.1-1/hello-java.jar /opt/app-root/bin/

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
4 changes: 2 additions & 2 deletions nodejs-helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion quip/src/main/java/com/redhat/training/example/Quip.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down