Skip to content

ARTSZL/2048-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Dockerized 2048 Game Deployment on AWS Elastic Beanstalk

This project create the popular 2048 game using Docker and deploys it to AWS Elastic Beanstalk. The 2048 game source code is available at https://github.com/gabrielecirulli/2048. Thanks to N4si for the step by step walkthrough.

Prerequisites

Before getting started, ensure you have the following prerequisites:

Getting Started

Follow the steps below to deploy the 2048 game on AWS Elastic Beanstalk.

  1. Create the Dockerfile.

  2. Build the Docker image. Replace 2048-docker with your desired image name.

    docker build -t 2048-docker .
    
  3. Run the Docker container to test the game locally.

    docker run -d -p 80:80 2048-docker
    
  4. The game should now be accessible in your web browser at http://localhost:80.

  5. Stop the Docker container once you have tested the game.

    docker stop $(docker ps -a -q)
    
  6. Create an AWS Elastic Beanstalk application using the EB CLI. Replace my-2048-game with your desired application name.

    eb init -p docker my-2048-game
    
  7. Create an environment and deploy the game to AWS Elastic Beanstalk.

    eb create my-2048-environment
    
  8. Access your deployed game through the provided Elastic Beanstalk URL.

Cleanup

To terminate the AWS resources and Docker containers created for this project, follow these steps:

  1. Terminate the Elastic Beanstalk environment.

    eb terminate my-2048-environment
    
  2. Remove the AWS Elastic Beanstalk application.

    eb terminate my-2048-game
    
  3. Remove the Docker image and container.

    docker stop $(docker ps -a -q)
    docker rmi docker-2048
    

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

2048 Game by gabrielecirulli Docker AWS Elastic Beanstalk

Feel free to contribute to this project and make improvements. If you encounter any issues, please open a GitHub issue.

About

Simple game 2048 created using Docker and deployed on AWS Elastic Beanstalk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published