coscup2021-tw-sample-go

command module
v0.0.0-...-7a54e8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 4 Imported by: 0

README

Welcome to coscup2021-tw-sample-go 👋

Build

coscup 2021 tw - Google Cloud Buildpacks 剖析與實踐 source code

Author

👤 KAI CHU CHUNG

Usage

build container image by pack

  1. Install Docker
  2. Install the pack tool (a CLI for running Buildpacks)
  3. build container image by pack & gcr.io/buildpacks/builder:v1 builder
    # You could change container image as you want
    pack build --builder gcr.io/buildpacks/builder:v1 ghcr.io/cage1016/coscup2021-tw-sample-go
    

Build contaiern image by skaffold

  1. Install skaffold
  2. build container image by skaffold
    skaffold build 
    

Deploy to Google Cloud Run

Run on Google Cloud

Build Cloud Function by pack

  1. build container image by pack & gcr.io/buildpacks/builder:v1 builder
    # You could change container image as you want
    pack build hello-coscup-2021-tw-get --builder gcr.io/buildpacks/builder:v1 --env GOOGLE_FUNCTION_TARGET=HelloCocsup2021tw -p functions
    
  2. run container image locally
    docker run --rm -p 8080:8080 hello-coscup-2021-tw-get
    
  3. curl hello-coscup-2021-tw-get
    curl localhost:8080
    

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 KAI CHU CHUNG.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL