Closed NimG98 closed 4 years ago
start
Navigate to the start directory.
Navigate to the start directory.
line and make the next part a separate paragraph[x] Change the following sentence :
Minishift already includes the oc binary, to use the oc commands, run the following command to configure your PATH to include the binary
To make it two sentences:
"Minishift already includes the oc binary. To use..."
[x] output of minishift oc-env
command for mac has linux output:
system
image):
Now that the environment is set up, ensure that you are in the
start
directory and run the following command to build a Docker image:
[x] Add backticks to "system" - > system
Now that the system Docker image is built, deploy it using a resource configuration file.
[ ] hotspots in yaml file are highlighting extra blank lines below
[x] Change RUNNING
to Running
to match the command output:
Ensure that your
system-deployment
pod isRUNNING
:
[ ] code on sidepane hides the appropriate things, but if you click the file header on the codepane, it stops hiding those parts and shows the entire file
[x] Not sure if www.mywebapp.com
is needed:
Now you have to expose the service using a route so that external users can access the microservice through a host name, such as
www.mywebapp.com
.
[x] output of oc get routes
is displaying service where it should say route
[x] change "host name" -> "hostname"
[x] change host-name
-> hostname
Run the following command to push your microservice:
oc get imagestream
command. This is so they don't have to scroll up again since they forgot the command:
Update the configuration file to add the
inventory
resources, making sure to update the inventoryimage field
with the appropriate image link.
system.ip
and inventory.ip
) aren't highlighting anythinghost-name
in earlier sections and using host-ip
in this section
[system-route-host-ip]
and[inventory-route-host-ip]
mvn verify
command substitution for Mac does not work properly:
command not found: -Dsystem.ip=system-route-nim-project.192.168.64.2.nip.io
- it's treating each line as a separate command, and hence it fails.
mvn verify
command \
is messing up when you click the copy button and paste it into the terminal
mvn verify -Ddockerfile.skip=true
is automatically run, without the rest of the commandNote:
tested travisTest.sh and it is failing locally. The travis environment has openshift project as myproject
. When i run the travisTest locally, it build's docker image using the specified oc project, which in my case is nim-project
:
docker build -t `oc registry info`/`oc project -q`/system:test system/.
So it ends up becoming docker build -t 172.30.1.1:5000/nim-project/system:test system/.
But the test.yaml
has myproject
as the project name, and hence the failure.
Maybe make the oc project name in test.yaml
match oc project -q
,
or remember to make sure the travis environment never changes the openshift project, otherwise it will cause failures
End-to-end test:
201X
201X, 2019
curl http://\[host-name\]/system/properties
instead of
curl http://[host-name]/system/properties
.
It's fine for copying and pasting into other applications in Mac though (such as browsers, text files)
[ ] license years are off
- a lot of the files look like they were taken from old guides, and are either the same or were modified
- if they were never changed, they should have that old year/year-range: e.g.
201X
- if they were modified, then it should say e.g.
201X, 2019
Already talked to Gilbert about this, since it's a new guide, it isn't wrong to have all the licence years at 2019, even if they're identical to applications from other guides.
[ ] need to use:
- ideal pom
- latest LMP (3.1)
Addressing in upcoming PR, from mai/simple-pom
branch
- [ ] add guide to draft automation tests
Note:
- tested travisTest.sh and it is failing locally. The travis environment has openshift project as
myproject
. When i run the travisTest locally, it build's docker image using the specified oc project, which in my case isnim-project
:docker build -t `oc registry info`/`oc project -q`/system:test system/.
So it ends up becomingdocker build -t 172.30.1.1:5000/nim-project/system:test system/.
But thetest.yaml
hasmyproject
as the project name, and hence the failure.- Maybe make the oc project name in
test.yaml
matchoc project -q
, or remember to make sure the travis environment never changes the openshift project, otherwise it will cause failures
Regarding this, when Travis starts a test, it'll automatically use the myproject
project since I did not specify for it to create a specific project name, therefore the test.yaml
file is already configured to use the myproject
name. I already tested and ensured everything worked before merging the CI tests in a previous PR, so if you retry the script locally with the myproject
project name, everything will (or should) run as expected with no errors.
hotspots in yaml file are highlighting extra blank lines below
UI issue, they're already aware, I can't fix it.
Issues that weren't addressed were moved to #10, everything else in here was addressed, closing.
Peer Review: review to be done by a peer member.
pom.xml
,server.xml
, etc files are cleancurl
command where applicableliberty-maven-plugin
orliberty-gradle-plugin
where applicablepage-tags
are used in a guide:MicroProfile, Maven, Docker, Kubernetes, Gradle, Java EE, Security, Cloud
. Only these tags are visible on the website. Latest list here.attribution
statement is accurate for the guidetravisTest.sh
script, if any, is accurate and consistent with other guidesPeer Testing: tests to be done by a peer member.
Guide’s contributor’s (if available, otherwise peer tester’s) responsibility:
curl
command for URL visitsdiff -r start/ finish/
and there's no differencesPeer Tester’s responsibility: