Cloud Computing
Cloud computing involves delivering computing services over the internet, such as servers, storage, and applications, on a pay-as-you-go basis. It typically involves using cloud platforms and services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform to deploy and manage software applications.
Example of deploying a web application on AWS Elastic Beanstalk using Docker:
# Dockerfile
FROM node:14
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 80
CMD ["npm", "start"]
# Dockerrun.aws.json
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "myrepo/myapp",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "80"
}
]
}
# Deployment commands
eb init myapp --platform "Docker" --region "us-west-2"
eb create myapp-env
No comments:
Post a Comment