Giter Club home page Giter Club logo

Comments (6)

joshuacox avatar joshuacox commented on May 23, 2024

I duplicated everything in arch linux as well, same exact issue there.

from kompose.

joshuacox avatar joshuacox commented on May 23, 2024

hmm using the release binary works just fine:

curl -L https://github.com/kubernetes/kompose/releases/download/v1.32.0/kompose-linux-amd64 -o kompose

so this is specific to the go installation?

from kompose.

cdrage avatar cdrage commented on May 23, 2024

I duplicated everything in arch linux as well, same exact issue there.

Hmmm really odd, can you run it with kompose convert -v for verbose output?

It could be that the binary when installing via go is messed up / or using an old binary.

from kompose.

martinjirku avatar martinjirku commented on May 23, 2024

yeah, I've tried to replicate it here in this Dockerfile:

FROM debian:bookworm

# Install dependencies
RUN apt-get update && apt-get install -y \
    curl \
    gnupg \
    wget

# Install Golang 1.19.8
RUN curl -LO https://golang.org/dl/go1.19.8.linux-amd64.tar.gz && \
    tar -C /usr/local -xzf go1.19.8.linux-amd64.tar.gz && \
    rm go1.19.8.linux-amd64.tar.gz

# Set environment variables
ENV PATH="/usr/local/go/bin:/root/go/bin:${PATH}"

RUN go install github.com/kubernetes/kompose@latest
WORKDIR /test
RUN wget https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml

# Run the command on container startup
CMD [ "kompose", "convert", "-f", "compose.yaml" ]

a than

docker build -t kompose-test .
docker run kompose-test

Output:

harry@fedora:~/dev/test$ docker run kompose-test
INFO Kubernetes file "redis-leader-service.yaml" created
INFO Kubernetes file "redis-replica-service.yaml" created
INFO Kubernetes file "web-service.yaml" created
INFO Kubernetes file "redis-leader-deployment.yaml" created
INFO Kubernetes file "redis-replica-deployment.yaml" created
INFO Kubernetes file "web-deployment.yaml" created

from kompose.

sosan avatar sosan commented on May 23, 2024

same here, successfully converted with golang 1.19.8 and kompose@latest

DEBU Checking validation of provider: kubernetes  
DEBU Checking validation of controller:           
DEBU Compose file dir: /app                       
DEBU Target Dir: .                                
INFO Kubernetes file "redis-leader-service.yaml" created 
INFO Kubernetes file "redis-replica-service.yaml" created 
INFO Kubernetes file "web-service.yaml" created   
INFO Kubernetes file "redis-leader-deployment.yaml" created 
INFO Kubernetes file "redis-replica-deployment.yaml" created 
INFO Kubernetes file "web-deployment.yaml" created

from kompose.

cdrage avatar cdrage commented on May 23, 2024

Closing this for now as unreproduceable.

from kompose.

Related Issues (20)

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.