Provides a HRM framework.
Components :
A common request handler providing user authentication and authorization.
Features:
A. Time logging for users -> (8000) marking their start and end time for day with updates mentioning the work done during the day.
B. Attendance. ([port]) <>
C. DB handler.[8081] A microservice handling all database calls made by all other microservices.
curl -OL https://golang.org/dl/go1.16.7.linux-amd64.tar.gz
sudo tar -C /usr/local -xvf go1.16.7.linux-amd64.tar.gz
sudo vim ~/.profile
export PATH=$PATH:/usr/local/go/bin
export GO111MODULE="auto"
export GOBIN="/home/kaustubh/go/bin"
export GOMODCACHE="/home/kaustubh/go/pkg/mod"
export GOPATH="/home/kaustubh/go"
export GOPROXY="https://proxy.golang.org"
source ~/.profile
go mod init github.com/Lkishor123/Gnbsim_5G
Downloading packages
go mod tidy Running project. go run ./cmd/api
- curl -OL https://golang.org/dl/go1.16.7.linux-amd64.tar.gz
- sudo tar -C /usr/local -xvf go1.16.7.linux-amd64.tar.gz
- sudo vim ~/.profile
- export PATH=$PATH:/usr/local/go/bin
- export GO111MODULE="auto"
- export GOBIN="/home/vagrant/go/bin"
- export GOMODCACHE="/home/vagrant/go/pkg/mod"
- export GOPATH="/home/vagrant/go"
- export GOPROXY="https://proxy.golang.org"
- source ~/.profile
- go mod init
project_name
- go mod tidy
- Step 1
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
- Step 2
sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
sudo chmod g+rwx "$HOME/.docker" -R
- Step 3
Enable
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
Disable
sudo systemctl disable docker.service
sudo systemctl disable containerd.service
https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes
sudo docker rm $(sudo docker ps -a -f status=exited -q)
sudo docker rmi -f $(sudo docker images -a -q)
Build Steps : sudo docker build -t name:version .
sudo docker run --name cont_name -it --cap-add=NET_ADMIN --device /dev/net/tun --privileged --rm image:version /bin/bash
sudo docker exec -it container