Skip to content

Replace EFS with object storage #855

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

Open
wants to merge 78 commits into
base: master
Choose a base branch
from

Conversation

munishchouhan
Copy link
Member

this PR will replace efs which wave uses for build, scan and mirror with object storage

Signed-off-by: munishchouhan <hrma017@gmail.com>
@munishchouhan munishchouhan self-assigned this Jun 10, 2025
@munishchouhan munishchouhan marked this pull request as draft June 10, 2025 07:53
munishchouhan and others added 25 commits June 10, 2025 12:59
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
munishchouhan and others added 13 commits July 16, 2025 17:20
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
@munishchouhan munishchouhan marked this pull request as ready for review July 17, 2025 22:40
@munishchouhan munishchouhan requested a review from pditommaso July 17, 2025 23:02
Signed-off-by: munishchouhan <hrma017@gmail.com>
@munishchouhan munishchouhan requested review from jordeu and fntlnz July 21, 2025 07:58
@munishchouhan
Copy link
Member Author

Currently, in this PR, layers are uploaded to object store by changing the stream to byte array, I am working on stream the layers to object store

objectStorageOperations.upload(UploadRequest.fromBytes(IOUtils.toByteArray(stream), target, "application/x-tar"))

objectStorageOperations.upload(UploadRequest.fromBytes(TarGzipUtils.untarGzip(stream), target, "application/octet-stream"))

objectStorageOperations.upload(UploadRequest.fromBytes(TarGzipUtils.untarGzip(stream), contextDir, "application/octet-stream"))

@fntlnz
Copy link

fntlnz commented Jul 21, 2025

@munishchouhan is this ready for review?

Signed-off-by: munishchouhan <hrma017@gmail.com>
@munishchouhan
Copy link
Member Author

I have added InputStreamUploadRequest to pass InputStream to upload method instead of a byte array
But I also found that micronaut is changing the InputStream to byte array when sending an HTTP request to AWS

https://github.com/micronaut-projects/micronaut-object-storage/blob/089269b09978b5ecadf89079c34d08e2e808ca9d/object-storage-aws/src/main/java/io/micronaut/objectstorage/aws/AwsS3Operations.java#L227

@munishchouhan
Copy link
Member Author

I have added a PR in micronaut to see if it is possible to send inputstream in http request
micronaut-projects/micronaut-object-storage#632

@munishchouhan
Copy link
Member Author

@munishchouhan is this ready for review?

@fntlnz yes its ready

Signed-off-by: munishchouhan <hrma017@gmail.com>
@munishchouhan
Copy link
Member Author

I have also added CustomAwsS3Operations to send inputstream in httprequest

Signed-off-by: munishchouhan <hrma017@gmail.com>
@munishchouhan
Copy link
Member Author

tested successfully in dev

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.

None yet

2 participants