You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have tried to put sonic server in kubernetes. I want my application and sonic server to be located in the same space.
I have got errors pointing me that sonic image does not have some files like /etc/hosts, /etc/hostname, /etc/resolve.conf. Honestly I stopped trying to make it work after that. Exploring the image I saw that no /etc directory is present.
I have tried to build new image from master branch. Got another error on build step:
I think there is no problem about k8s.It's only a compile problem? so can I see your DockerFile? it hint your " rustup target add x86_64-unknown-linux-gnu" in your DockerFile. You can also build it prev and Copy the bianry file sonic into the base image which fix your production environment..so if you have problem, we can have a discussion. ps: My English is poor, hope to help you!
Hello,
I have tried to put sonic server in kubernetes. I want my application and sonic server to be located in the same space.
I have got errors pointing me that sonic image does not have some files like /etc/hosts, /etc/hostname, /etc/resolve.conf. Honestly I stopped trying to make it work after that. Exploring the image I saw that no /etc directory is present.
I have tried to build new image from master branch. Got another error on build step:
`[+] Building 48.6s (16/18)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 74B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 71B 0.0s
=> [internal] load metadata for gcr.io/distroless/cc:latest 0.4s
=> [internal] load metadata for docker.io/library/rust:slim-bullseye 0.0s
=> [stage-1 1/3] FROM gcr.io/distroless/cc@sha256:5149ac109a77868790638769902c9b088b429a82c2241a0e88547074be01713a 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 14.74kB 0.0s
=> [build 1/10] FROM docker.io/library/rust:slim-bullseye 0.0s
=> CACHED [stage-1 2/3] WORKDIR /usr/src/sonic 0.0s
=> CACHED [build 2/10] RUN apt-get update 0.0s
=> CACHED [build 3/10] RUN apt-get install -y build-essential clang 0.0s
=> CACHED [build 4/10] RUN rustup --version 0.0s
=> CACHED [build 5/10] RUN rustup component add rustfmt 0.0s
=> CACHED [build 6/10] RUN rustc --version && rustup --version && cargo --version 0.0s
=> CACHED [build 7/10] WORKDIR /app 0.0s
=> CACHED [build 8/10] COPY . /app 0.0s
=> ERROR [build 9/10] RUN cargo clean && cargo build --release --target x86_64-unknown-linux-gnu 48.1s
Because of lack of knowledge I could not resolve it.
Is it possible to create new images with Kubernetes support, so it can just work "from the box" ?
The text was updated successfully, but these errors were encountered: