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
As an Osmosis engineer, I would like images to be lightweight and compatible with any environment so that they work on any platform I happen to work on
Oftentimes, I find that our images and/or binaries might work on some OS/VM and not others. When my environment changes, I happen to spend the majority of my time debugging our Docker images instead of focusing on a task.
Task 4.1 - Allow Images to be Built as Non-root
The major bottleneck in this category is that our images are built as a root. This has caused me issues numerous times. For example, when we create files in a container mounted on a volume, these files cannot be removed from the host unless the host is root. While this is not an issue locally, it is troublesome in CI.
This issue was fixed earlier for our release scripts but it seems to be broken again. Our main image and any other image that creates files on a volume (a lot of them are in e2e tests) should have the ability to be built as non-root.
Task 4.2
RUN, COPY, and ADD directives add additional layers, contributing to bigger image size. We should minimize these.
For example, these RUNs could probably be on one line:
Background
Oftentimes, I find that our images and/or binaries might work on some OS/VM and not others. When my environment changes, I happen to spend the majority of my time debugging our Docker images instead of focusing on a task.
Task 4.1 - Allow Images to be Built as Non-root
The major bottleneck in this category is that our images are built as a root. This has caused me issues numerous times. For example, when we create files in a container mounted on a volume, these files cannot be removed from the host unless the host is root. While this is not an issue locally, it is troublesome in CI.
This issue was fixed earlier for our release scripts but it seems to be broken again. Our main image and any other image that creates files on a volume (a lot of them are in e2e tests) should have the ability to be built as non-root.
Task 4.2
RUN
,COPY
, andADD
directives add additional layers, contributing to bigger image size. We should minimize these.For example, these
RUN
s could probably be on one line:osmosis/Dockerfile
Lines 11 to 14 in d5cd033
Resources
Status
The text was updated successfully, but these errors were encountered: