Giter Site home page Giter Site logo

okteto / go-getting-started Goto Github PK

View Code? Open in Web Editor NEW
43.0 11.0 55.0 337 KB

Develop Go Apps in Kubernetes with Okteto

Home Page: https://www.okteto.com

License: Apache License 2.0

Dockerfile 18.12% Makefile 16.46% Go 43.02% Shell 22.41%
okteto go golang kubernetes development debug cloud-native docker

go-getting-started's Introduction

Getting Started on Okteto with Go

This example shows how to use the Okteto CLI to develop a Go Sample App directly in Kubernetes. The Go Sample App is deployed using Kubernetes manifests.

This is the application used for the Getting Started on Okteto with Go tutorial.

go-getting-started's People

Contributors

pchico83 avatar rberrelleza 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-getting-started's Issues

Error building `hello-world` application when following Getting Started guide

Describe the bug

I'm following this guide: https://www.okteto.com/docs/samples/golang/

When trying to deploy via okteto deploy --build it stops with error:

$ okteto deploy --build
 i  Using default @ kind-kind as context
 i  Building 'Dockerfile' using your local docker daemon
[+] Building 1.4s (8/8) FINISHED
 => [internal] load .dockerignore                                                                                                                                                                             0.0s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                          0.0s
 => => transferring dockerfile: 176B                                                                                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/golang:buster                                                                                                                                              1.1s
 => [1/4] FROM docker.io/library/golang:buster@sha256:6be60119fd752c3ee530cb13f778801af1519a6b40e58539545c546d6e04b610                                                                                        0.0s
 => [internal] load build context                                                                                                                                                                             0.0s
 => => transferring context: 2.49kB                                                                                                                                                                           0.0s
 => CACHED [2/4] WORKDIR /app                                                                                                                                                                                 0.0s
 => CACHED [3/4] ADD . .                                                                                                                                                                                      0.0s
 => ERROR [4/4] RUN go build -o /usr/local/bin/hello-world                                                                                                                                                    0.3s
------
 > [4/4] RUN go build -o /usr/local/bin/hello-world:
okteto/okteto#8 0.208 error obtaining VCS status: exit status 128
okteto/okteto#8 0.208        Use -buildvcs=false to disable VCS stamping.
------
 x  Error building service 'hello-world': error building image (status code 1) : process "/bin/sh -c go build -o /usr/local/bin/hello-world" did not complete successfully: exit code: 1

To Reproduce
Steps to reproduce the behavior:

I suspect just follow Getting Started doc.

Expected behavior

Deploy happens with no error.

Desktop (please complete the following information):

  • OS: Linux
  • Version
# lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 20.3
Release:        20.3
Codename:       una

Additional context

No.

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.