Skip to content

Conversation

@pPrecel
Copy link
Contributor

@pPrecel pPrecel commented Dec 3, 2024

Description

Changes proposed in this pull request:

  • support building simple applications from source code

Changes in the binary size:

  • from main - 68MiB
  • from branch - 84MiB

How to use this feature:

  1. create dir /tmp/sources and put following files in it:

/tmp/sources/main.go:

package main

import (
    "fmt"
    "net/http"
    "os"
)

func main() {
    mux := &http.ServeMux{}
    mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
  	  fmt.Println("got request")
  	  w.WriteHeader(200)
  	  w.Write([]byte("oky doky"))
    })
    if err := http.ListenAndServe(":8080", mux); err != nil {
  	  fmt.Println(err.Error())
  	  os.Exit(1)
    }
}

/tmp/sources/go.mod:

module github.com/kyma-project/pack-test

go 1.23.2
  1. run the feature by using the following command:
go run main.go alpha app push --name test-app --app-path /tmp/sources --container-port 8080 --expose

Related issue(s)

@pPrecel pPrecel added kind/feature Categorizes issue or PR as related to a new feature. area/cli Related to all activities around CLI labels Dec 3, 2024
@pPrecel pPrecel requested a review from a team as a code owner December 3, 2024 22:15
@kyma-bot kyma-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. cla: yes Indicates the PR's author has signed the CLA. labels Dec 3, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Dec 5, 2024
@pPrecel pPrecel merged commit 5584083 into kyma-project:main Dec 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli Related to all activities around CLI cla: yes Indicates the PR's author has signed the CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm Looks good to me! size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants