1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | processManagement:
fork: true
net:
bindIp: localhost
port: 27017
storage:
dbPath: /var/lib/mongo
systemLog:
destination: file
path: "/var/log/mongodb/mongod.log"
logAppend: true
storage:
journal:
enabled: true
|
Tuesday, August 3, 2021
Mongodb /etc/mongod.conf
Monday, August 2, 2021
How to mount AWS EFS Drive to Linux EC2 Instance
sudo su user1-
sudo yum install nfs-utils
mkdir -p /fileshare
chown user1:usergrp1 /fileshare
chmod ugo+rwx /fileshare
sudo vi /etc/fstab
--Get Info from Attach EFS from AWS [You need Network Access ]
fs-123456.efs.us-east-1.amazonaws.com:/ /fileshare nfs4 rw,intr,hard,_netdev,nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport
sudo mount -a
sudo reboot now
EFS is regional
Tuesday, July 27, 2021
Sunday, July 18, 2021
Docker: Docker Commands : Exhaustive
docker image ls
docker container run <image> --name <containerName>
docker container run -it <image> command
docker container start -at <container>
docker container exec -it <container> command
docker container top
NO ? Why ?
Each of below lines creates own containers
docker container run -p 80:80 -d nginx
docker container run -p 8080:80 -d nginx
Thursday, July 15, 2021
Maven : -DskipTests vs -Dmaven.test.skip=true
-DskipTests
compiles the tests, but skips running them
-Dmaven.test.skip=true
skips compiling the tests and does not run them
Also this one might be important
maven.test.skip is honored by Surefire, Failsafe and the Compiler Plugin
So the complete set of test options for Maven would be:
- -DskipTests ==> compiles the tests, but skips running them
- -Dmaven.test.skip.exec=true ==> the tests get compiled, but not executed.
- -Dmaven.test.skip=true ==> doesn't compile or execute the tests.
Azure - Pipeline - Add Approver for Stage
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
https://www.baeldung.com/spring-properties-file-outside-jar https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-featu...
-
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
The decision was made to block such external HTTP repositories by default https://stackoverflow.com/questions/66980047/maven-build-failure-d...