Gateway framework
API gateway and services
Relevant links
https://www.npmjs.com/package/@scendant/gateway https://hub.docker.com/repository/docker/scendant/gateway
Building the container
docker container prune
docker image prune
docker build .
Running the container locally
docker run -d -p 80:80 scendant/gateway -v -k 123 -c
Debugging the container
docker run -it --mount type=bind,source="$(pwd)",target=/usr/local/lib/node_modules/@scendant/gateway --entrypoint /bin/bash scendant/gateway
Get the container from Docker Hub
docker pull scendant/gateway:latest
To get the available options
gateway -h
To build the AWS EC2 image
Launch a new instance with the UserData set to ec2_install.sh and the key pair set to 'Proceed without a key pair'
To update
On EC2:
sudo gateway -u
On Docker:
docker run -d -p 80:80 scendant/gateway -u