Code Monkey home page Code Monkey logo

pickaxe's Introduction

pickaxe ⛏️

Deployable Minecraft server with Pulumi on Google Cloud.

picture of a pickaxe

This is the infrastructure-as-code (IaC) that I use to create a on-demand, small, and cheap Minecraft server to play with friends. The server can be shutdown and the server data will be kept in a disk and can be later restored in a new instance. That way, your instance does not need to be always running and the infrascture cost can be drastically reduced. It also deploys in a preemptible, so you don't need to worry about forgeting the instance running since it will shutdown after 24h.

It uses Pulumi as the IaC framework to deploy de server infrastructure on Google Cloud. Inspired by Futurice's Terraform recipe.

Usage

  1. Make sure you have Pulumi installed and configured.
  2. Create an empty directory where you want to place the server infrastrcuture.
  3. In this directory, run:
pulumi new https://github.com/paulopacitti/pickaxe

Architecture

infrastructure diagram

  • IP: represents an Address resource. To communicate with the Internet and instances outside of the same network, you must specify the instance’s external IP address. In this case, is a static IP address to access the Minecraft server.
  • Network: represents a VPC network to conect the multiple resources of the infrastructure.
  • Firewall: represents Firewall Rule resource. Firewall rules allow or deny ingress traffic to, and egress traffic from your instances. Allow access to the Minecraft server port.
  • Disk: represents a Persistent Disk resource. Persistent disks are durable storage devices that function similarly to the physical disks in a desktop or a server. Persistent disks are located independently from your virtual machine instances, so you can detach or move persistent disks to keep your data even after you delete your instances. It uses the cos-stable image, so it has docker installed on it to run a itzg/minecraft-server container.
  • Instance: represents a VM instance. It will attach to the disk resource to run the Minecraft server, connect to the VPC and use the Address resource as its external IP to be accessed through the internet.

The external IP address resource can be later registered in a domain to be easily accessed by the server players.

pickaxe's People

Contributors

paulopacitti avatar

Stargazers

Christopher Davison avatar Benjamin Bond avatar Teemu Siikaniemi avatar Hellyson Ferreira avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.