Skip to content

go-related/library-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library

Create the executeble

  • create a bin for linux
    GOOS=linux GOARCH=amd64 go build -o bin/library cmd/*go
    
  • create a bin for mac
     go build -o bin/library cmd/*go
    

Run the tests

  • run the test
 go test -v -race ./...
  • run
      ./bin/library
    

Build the image

  1. Build the image and run it

    docker build  -t libarary-1 --build-arg FILEDIR="./config" --build-arg FILENAME="library.local.yaml" --build-arg TARGETFILENAME="library.yaml" .
    
    docker rm -f libraryservice
    docker run --name libraryservice -p 8081:8081 -it libarary-1
    
    
     docker build  -t libarary-k8:v3.0 --build-arg FILEDIR="./config" --build-arg FILENAME="library.k8.yaml" --build-arg TARGETFILENAME="library.yaml" .
     docker tag libarary-k8:v3.0 jtabaku/generalimages:libaray-api-v3.0
     docker push  jtabaku/generalimages:libaray-api-v3.0
    
    
     minikube service web-service --url
    

About

a rest application build with Gin about a library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published