-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Amazon Linux Support #72
Comments
Do you have an application container image where you use the Amazon Linux as its base or are you trying to minify the base image itself? |
Tried both and got the same results. Sorry to be more explicit. I build an application container off the amazonlinux:latest container. I've tried running docker-slim on both the base and the application image and it seems to be broke on both. When I say broke I basically mean there are no files / bin / all the application code or scripts are removed etc. Easy way to reproduce is by running the above and just typing |
What kind of application did you have? Was it a python/ruby/node/java/something else app? What kind of ENTRYPOINT and/or CMD instructions did you have in your Dockerfile? Did you have a wrapper shell script that started your application and potentially did other things or did you invoke your application directly in ENTRYPOINT/CMD or did you have something like supervisord managing several processes in your container or maybe you used docker-compose where you configured the command parameters for your container? |
Sorry didn't see this. None of my applications use entrypoints only commands - most are rails apps. So just running |
@sc-chad thank you for the additional info! really appreciate it! The base OS image is not a great container to minify because there's no way to know what you need there and what you don't in a significant way. You can leverage the Here's one of the sample apps A couple of things to note: For Rails and Ruby apps in general This is necessary to make sure that your Rails app loads extra dependencies it needs, which happens when you its handling HTTP requests.
If you are interested I'll be happy to do an online session to walk through your container setup, so we can get your app container minified. You'll get a small container and I'll have an opportunity to make |
Trying to test out docker-slim on amazonlinux base image and it's causes some very weird behavior. All binaries seem to be missing to start so can't even do
ls
Example:
Dockerfile
FROM amazonlinux:latest
docker-slim build amazonlinux:latest
The text was updated successfully, but these errors were encountered: