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

swift: not found on focal-slim #303

Open
GP89 opened this issue Jun 10, 2022 · 3 comments
Open

swift: not found on focal-slim #303

GP89 opened this issue Jun 10, 2022 · 3 comments

Comments

@GP89
Copy link

GP89 commented Jun 10, 2022

Hey I think there's an issue with the focal-slim build

$ docker run -it swift:5.6-focal-slim swift version
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "swift": executable file not found in $PATH: unknown.

swift binary doesn't appear to be on there

I noticed in the slim docker file it doesn't apt-get install for gnupg. Could that be why?

@tomerd
Copy link
Contributor

tomerd commented Jun 10, 2022

the slim docker file is not designed to include the toolchain, not only had the runtime requirements for running swift based programs

@GP89
Copy link
Author

GP89 commented Jun 10, 2022

Ah ok thanks! Sorry I feel stupid now!
So the idea might be build on focal and then copy the built app over to slim for a smaller end container?

@tomerd
Copy link
Contributor

tomerd commented Jun 11, 2022

So the idea might be build on focal and then copy the built app over to slim for a smaller end container?

exactly

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

No branches or pull requests

2 participants