Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 843 Bytes

File metadata and controls

23 lines (19 loc) · 843 Bytes

For local development

  1. sudo chown -R ubuntu go-gateway/
  2. Build the dev container with tag name ipns-gateway-local docker build --target dev . -t ipns-gateway-local
  3. Run the image in interactive terminal mode "-it" , with volume mount "-v ${PWD}:/work", with entry point as shell terminal "sh" docker run -it -v ${PWD}:/work -p 8888:8888 ipns-gateway-local sh
  4. mkdir app
  5. cd app
  6. go mod init github.com/ipns-link/go-gateway/app
  7. create a app.go

For build

  1. Build the build container with tag name ipns-gateway-build sudo docker build --target build . -t ipns-gateway-build

For deployment

  1. Build the build container with tag name ipns-gateway sudo docker build --target runtime . -t ipns-gateway sudo docker build . -t ipns-gateway

attach to running docker docker exec -it "name of the container" sh