Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.17 KB

File metadata and controls

29 lines (24 loc) · 1.17 KB

This repo was created for debugging headers that incoming to the backend

  1. Clone this repo
  2. Run docker build first docker build -t somerepo/somedir:tag . if you are using multi acrhitecture, follow these steps:
  • docker build -t docker.io/salamflamo/express-js-sample:manifest-arm64 --build-arg ARCH=arm64/ . #running this command on arm machine
  • docker build -t docker.io/salamflamo/express-js-sample:manifest-amd64 --build-arg ARCH=amd64/ . #running this command on amd machine
docker manifest create \
docker.io/salamflamo/express-js-sample:multi \
--amend docker.io/salamflamo/express-js-sample:manifest-arm64 \
--amend docker.io/salamflamo/express-js-sample:manifest-amd64
  • docker push docker.io/salamflamo/express-js-sample:multi #push to docker
  1. Push your somerepo/somedir:tag to your container registry
  2. Edit image repo in this deployment yaml example
  3. Create namespace "sample"
  4. Apply the yaml to kubernetes

Use expose.sh to testing with others

  1. Fork this repo
  2. Upload your ssh public key to your github account
  3. Clone express-js-sample repo using SSH clone
  4. Run command ssh -R 1:localhost:3000 <your github username>@expose.sh
  5. Happy try