slimtoolkit / slim

Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Apache License 2.0
18.89k stars 704 forks source link

refactor the code to use one set of Docker instructions #545

Open Omkar0114 opened 1 year ago

Omkar0114 commented 1 year ago

Fixes #374

Refactored the code to use one set of Docker instructions. Right now modified the code in the - https://github.com/slimtoolkit/slim/blob/master/pkg/docker/instruction/instruction.go

Omkar0114 commented 1 year ago

Hey @kcq are the proposed changes right? If yes then can I go ahead with this - https://github.com/slimtoolkit/slim/blob/master/pkg/docker/dockerfile/dockerfile.go#L19

https://github.com/slimtoolkit/slim/blob/master/pkg/docker/dockerfile/reverse/reverse.go#L107

Omkar0114 commented 1 year ago

Hi @kcq sorry for pinging you again, can you please review this PR and point out me how to go ahead with this? Thanks!

Omkar0114 commented 11 months ago

HI @kcq, @iximiuz can anyone comment on this PR or review my PR?

kcq commented 11 months ago

@CodiumAI-Agent /review

CodiumAI-Agent commented 11 months ago

PR Analysis

How to use

Tag me in a comment '@CodiumAI-Agent' and add one of the following commands: /review [-i]: Request a review of your Pull Request. For an incremental review, which only considers changes since the last review, include the '-i' option. /describe: Modify the PR title and description based on the contents of the PR. /improve: Suggest improvements to the code in the PR. /ask \<QUESTION>: Pose a question about the PR.

To edit any configuration parameter from 'configuration.toml', add --config_path=new_value For example: /review --pr_reviewer.extra_instructions="focus on the file: ..."

kcq commented 11 months ago

@CodiumAI-Agent /describe

CodiumAI-Agent commented 11 months ago

Preparing pr description...

kcq commented 11 months ago

@CodiumAI-Agent /improve

Omkar0114 commented 11 months ago

Hi @kcq can I improve the code with the above suggestions?

Omkar0114 commented 11 months ago

@CodiumAI-Agent /review

CodiumAI-Agent commented 11 months ago

PR Analysis

How to use

Tag me in a comment '@CodiumAI-Agent' and add one of the following commands: /review [-i]: Request a review of your Pull Request. For an incremental review, which only considers changes since the last review, include the '-i' option. /describe: Modify the PR title and description based on the contents of the PR. /improve: Suggest improvements to the code in the PR. /ask \<QUESTION>: Pose a question about the PR.

To edit any configuration parameter from 'configuration.toml', add --config_path=new_value For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." To list the possible configuration parameters, use the /config command.

Omkar0114 commented 11 months ago

Hi @kcq When this PR will merge I updated the code with all your suggestions.