Giter Site home page Giter Site logo

bazel-skaffold-with-golang's Introduction

bazel-skaffold-with-golang

  • 2023.04.14 - 팀그릿 백엔드팀에서 진행한 Bazel(Gazelle) + Skaffold(Kubernetes) 스터디입니다.
  • 지식을 공유해 주신 주찬님! 감사합니다 :) 팀그릿 내부에서 사용할 파이프라인을 개발하고 있습니다. 추후에 발표도 진행해 볼 예정입니다.

Bazel Build

$ bazel build //:gazelle

Starting Skaffold

$ minikube start
😄  Darwin 13.2.1 의 minikube v1.30.1
✨  기존 프로필에 기반하여 docker 드라이버를 사용하는 중
👍  minikube 클러스터의 minikube 컨트롤 플레인 노드를 시작하는 중
🚜  베이스 이미지를 다운받는 중 ...
🔄  Restarting existing docker container for "minikube" ...
🐳  쿠버네티스 v1.26.3 을 Docker 23.0.2 런타임으로 설치하는 중
🔗  Configuring bridge CNI (Container Networking Interface) ...
🔎  Kubernetes 구성 요소를 확인...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  애드온 활성화 : storage-provisioner, default-storageclass
🏄  끝났습니다! kubectl이 "minikube" 클러스터와 "default" 네임스페이스를 기본적으로 사용하도록 구성되었습니다.
$ skaffold dev
Generating tags...
 - hello-world -> hello-world:c95a1dc-dirty
Checking cache...
 - hello-world: Found Locally
Tags used in deployment:
 - hello-world -> hello-world:6af8a825b6cb86653fb076081372ea00e6009923263f065f1cfee80fbc295390
Starting deploy...
 - deployment.apps/hello-world created
Waiting for deployments to stabilize...
 - deployment/hello-world is ready.
Deployments stabilized in 2.131 seconds
Port forwarding deployment/hello-world in namespace default, remote port 3000 -> http://127.0.0.1:3000
Listing files to watch...
 - hello-world
Press Ctrl+C to exit
Watching for changes...
[hello-world] 
[hello-world]  ┌───────────────────────────────────────────────────┐ 
[hello-world]  │                   Fiber v2.43.0                   │ 
[hello-world]  │               http://127.0.0.1:3000               │ 
[hello-world]  │       (bound on host 0.0.0.0 and port 3000)       │ 
[hello-world]  │                                                   │ 
[hello-world]  │ Handlers ............. 2  Processes ........... 1 │ 
[hello-world]  │ Prefork ....... Disabled  PID ................. 1 │ 
[hello-world]  └───────────────────────────────────────────────────┘ 
[hello-world] 

bazel-skaffold-with-golang's People

Contributors

dev-hyunsang avatar

Stargazers

 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.