Git Product home page Git Product logo

packer-image-debian10-with-nginx-on-gcp's Introduction

Packer image Debian 10 with Nginx and Docker on GCP

This image is made into a Packer using Google Cloud capacities on which Debian 10, Nginx and Docker are installed.

If you want to download this image, then you need to fix the variables in the vars.json file:

"product_images_project_id": You will find this variable in the information about your project in Google Сloud Project ID

"zone":Write any server zone that is convenient for you

"product_name":Write any name your product

"source_image_family":The original Image Family on the basis of which we make our image

"image_description":just a description of your image

In the template file.json, I prescribed to use data from the account.json account to connect. You need to create this file in your Google Cloud account

Open the IAM tab

Next, Service Accounts, and Create a service account to create it.

Fill in the name and click Create.

Next, we are offered to attach roles to our newly created account.

Roles are needed to allow an account to do something specific, for example, only run virtual machines.

Choose two roles: Compute Instance Admin and Service Account User

Next, be sure to create a key, click create, and select the JSON format

You will download the key, the name will be like:

premium-student-2691809-dec8327adc1.json

Now it is important to rename it to account.json, and put it in the folder where the three Packer files are now. Now we need to check if everything is fine with our files, you need to enter this command while in the folder with our files:

packer validate -var-file=vars.json template.json

Then when you saw the message "Template validated successfully" Run the command:

packer build -var-file=vars.json template.json

You should have a message:

Builds finished. The artifacts of successful builds are

By the way, you can always find your image by following the link:

https://console.cloud.google.com/compute/images

packer-image-debian10-with-nginx-on-gcp's People

Contributors

sila4-cyber avatar

Watchers

 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.