Tag: 亚马逊sqs

使用docker和SQS的AWS Beanstalk上的Sinatra应用程序

我已经构build了一个简单的sinatra应用程序,用于侦听本地主机上的POST请求(包含来自AWS SQS的消息),并configuration了一个dockerfile以便于部署。 西纳特拉: set :environment, 'staging' set :bind, 'localhost' set :port, '80' before do request.body.rewind @request_payload = JSON.parse request.body.read end post '/' do # do stuff with payload end Dockerfile: #https://dockerfile.github.io/#/ruby FROM dockerfile/ruby # Install dependencies RUN apt-get update RUN apt-get install postgresql-common postgresql-9.3 libpq-dev -y # Copy the Gemfile and Gemfile.lock into the image […]