- download .deb 64 bit package for ubuntu from https://code.visualstudio.com/download
- open terminal and goto the location where the file exists
- type the following
- sudo dpkg -i code_1.27.2-1536736588_amd64.deb
- goto search bar
- type visual studio code
- lock it to launcher
Tuesday, September 25, 2018
installation of visual studio code for angular
Monday, September 24, 2018
Wednesday, August 8, 2018
Tuesday, August 7, 2018
domain driven design
- books “Domain-driven Design” by Eric Evans and “Implementing Domain-driven Design” by Vaughn Vernon
- value object is the object of a class whose constructor is private and which is constructed with the help of factory method inside it. they are not treated as entity. and two value objects having same state are considered to be equal.
- https://deviq.com/value-object
- they are small
- they are immutable
- https://martinfowler.com/bliki/ValueObject.html
- https://enterprisecraftsmanship.com/2016/01/11/entity-vs-value-object-the-ultimate-list-of-differences/
- value objects can be considered as @component
- address is a good example of value object
- value object should not be in a separate table.
- value object should not have own identity
- aggregates
docker
- sudo docker pull netflixoss/eureka generates the following error
- Using default tag: latest
Error response from daemon: manifest for netflixoss/eureka:latest not found
solution is -> - sudo docker pull netflixoss/eureka:1.3.1
- where 1.3.1 is the tag
- following is the way to run i.e create a container:
- sudo docker run netflixoss/eureka:1.3.1
- the problem is unable to connect to the port
- https://stackoverflow.com/questions/47612400/docker-run-unable-to-access-jar-file
- https://bartwullems.blogspot.com/2017/03/docker-error-err
- http://blog.thoward37.me/articles/where-are-docker-images-stored/
- https://stackoverflow.com/questions/25101312/does-all-running-docker-containers-have-a-separate-process-id
- sudo docker container ls -> will all the running containers
- docker --help//help commands
- how to locate Dockerfile of pulled docker image ?
- docker-compose.yml
- If you need to customize an image image, you should create a Dockerfile, with the first line:
FROM ubuntu - Yes, every docker container will have a different PID on your host machine.
You can get a docker containers PID by doing:
If you kill the process on your host, your docker container will die.docker inspect --format '{{ .State.Pid }}' CONTAINER_ID
example
sudo docker inspect --format '{{ .State.Pid }}' 18f966e5228f
Subscribe to:
Posts (Atom)