Giter Site home page Giter Site logo

packtpublishing / google-cloud-platform-cookbook Goto Github PK

View Code? Open in Web Editor NEW
30.0 7.0 30.0 1.27 MB

Google Cloud Platform Cookbook, published by Packt

License: MIT License

JavaScript 26.32% CSS 0.11% HTML 8.28% PHP 0.63% Shell 0.66% Python 5.57% HCL 0.23% Dockerfile 0.13% Hack 0.05% Less 55.89% Handlebars 1.86% Procfile 0.01% Jinja 0.27%

google-cloud-platform-cookbook's Introduction

Google Cloud Platform Cookbook

This is the code repository for Google Cloud Platform Cookbook, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Google Cloud Platform is a cloud computing platform that offers products and services to host applications using a state-of-the art infrastructure and technology. You can build and host applications and websites, store data, and analyze data on Google's scalable infrastructure. This book follows a recipe-based approach, giving you hands-on experience to make the most out of Google Cloud services.

This book starts with practical recipes, giving you heads-up on how to utilize Google Cloud's common services. Then, you’ll see how to make full use of Google Cloud components such as Networking, Security, Management, and Developer tools. Next, we deep dive into implementing core Google Cloud services into your organization, with practical recipes on App Engine, Compute Engine Microservices with Cloud functions, Virtual Networks, and Cloud Storage. Later, we provide recipes on implementing authentication and security, Cloud APIs, command-line management, deployment management, and Cloud SDK.

Finally, we cover administration troubleshooting tasks with compute and container engine and how to monitor your organization’s efficiency with best practices. By the end of this book, you’ll have a complete understanding of how to implement Google Cloud services in your organization with ease.

Instructions and Navigation

All of the code is organized into folders. For example, Chapter02.

Important:

  • Install the Google Cloud SDK

  • For testing Python code, install the Google Cloud Client Library for Python:

    pip install google-cloud
    
  • Or use this repository

  • For testing Node.js code, you can do an npm install of the required Node.js packages

The code will look like the following:

#! /bin/bash
apt-get update
apt-get install -y apache2
cat <<EOF > /var/www/html/index.html
<html><body><h1>Hello World</h1>
<p>Web server on the alpha and beta networks</p>
</body></html>
EOF

The readers should have a Linux VM, which is where the examples can be downloaded to and executed. The Linux VM will act as your development machine. Make sure that your development machine has enough space to handle the number of dependencies that will be installed along with the code. A basic understanding of cloud services and GCP is necessary.

Few recipes have simple configuration of services and others will require changes to source code. Hence, a familiarity with a programming language (Python/Node.js) and basic Linux knowledge will be beneficial.

Due to the rapid evolution of tools and dependencies, there is the possibility of commands and code breaking. Head over to the documentation if you need to modify the commands/code to suit your needs.

Related Products

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781788291996

google-cloud-platform-cookbook's People

Contributors

dominicpereira92 avatar khushbusutar avatar legorie avatar packt-itservice avatar packtutkarshr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-cloud-platform-cookbook's Issues

Chapter 1 gcloud compute instance command gives error

I'm following the book and entered the command:

gcloud compute instances create mysite-instance \
--image-family=debian-8 \
--image-project=debian-cloud \
--machine-type=g1-small \
--scopes userinfo-email,cloud-platform \
--metadata-from-file startup-script=./startup-script.sh \
--zone us-east1-c \
--tags mysite-server 

Error resulted:

ERROR: (gcloud.compute.instances.create) Could not fetch resource:
 - The resource 'projects/debian-cloud/global/images/family/debian-8' was not found

I'm new to working with google cloud command shell. So, not sure if this is an issue with how I'm entering the command or the command it self is incorrect. I've edited the startup script as suggested in the book.

My local system: windows 10 64-bit, Node v10.15.1, Google Cloud SDK 235.0.0

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.