Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly define entrypoint for kost app #25

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Explicitly define entrypoint for kost app #25

merged 1 commit into from
Jan 22, 2025

Conversation

Pokom
Copy link
Contributor

@Pokom Pokom commented Jan 22, 2025

After rolling the change out to our internal systems, it was failing with the following error message:

Unable to find image 'grafana/kost:latest' locallylatest: Pulling from
internal61a05b: Pulling fs layerec31cd2b3349: Pulling fs
layerec31cd2b3349: Verifying Checksumec31cd2b3349: Download
complete89320e7119e2: Verifying Checksum89320e7119e2: Download
completec9e7f561a05b: Verifying Checksumc9e7f561a05b: Download
complete89320e7119e2: Pull completec9e7f561a05b: Pull
completeec31cd2b3349: Pull completeDigest:
sha256:884a38041601c23cf471fef574e267d16d225f9047d8f3de143dbc770a90726fStatus:
Downloaded newer image for grafana/kost:latestdocker: Error response
from daemon: failed to create task for container: failed to create shim
task: OCI runtime create failed: runc create failed: unable to start
container process: exec: "./kost": stat ./kost: no such file or
directory: unknown.

After pulling the image locally, I noticed that there was no binary for kost.

This explicitly sets the entrypoint for kost to be /app/kost and removes WORKDIR /root.

This explicitly sets the entrypoint for kost to be `/app/kost`.
After rolling the change out to our internal systems, it was failing
with the following error message:

```
Unable to find image 'grafana/kost:latest' locallylatest: Pulling from
internal61a05b: Pulling fs layerec31cd2b3349: Pulling fs
layerec31cd2b3349: Verifying Checksumec31cd2b3349: Download
complete89320e7119e2: Verifying Checksum89320e7119e2: Download
completec9e7f561a05b: Verifying Checksumc9e7f561a05b: Download
complete89320e7119e2: Pull completec9e7f561a05b: Pull
completeec31cd2b3349: Pull completeDigest:
sha256:884a38041601c23cf471fef574e267d16d225f9047d8f3de143dbc770a90726fStatus:
Downloaded newer image for grafana/kost:latestdocker: Error response
from daemon: failed to create task for container: failed to create shim
task: OCI runtime create failed: runc create failed: unable to start
container process: exec: "./kost": stat ./kost: no such file or
directory: unknown.
```
After pulling the image locally, I noticed that there was no binary for
`kost`.
@Pokom Pokom requested a review from a team as a code owner January 22, 2025 21:18
@Pokom Pokom merged commit d3c573f into main Jan 22, 2025
2 checks passed
@Pokom Pokom deleted the fix-dockerfile branch January 22, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants