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

Run action from a custom image #223

Open
httpdss opened this issue Nov 16, 2022 · 6 comments
Open

Run action from a custom image #223

httpdss opened this issue Nov 16, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@httpdss
Copy link

httpdss commented Nov 16, 2022

Suggestion

currently all actions run from a dflook built image. TERRAFORM_PRE_RUN has to constantly run to install specific packages.
im thinking on an image: input where we can point to a custom image on our docker repo.

@httpdss httpdss added the enhancement New feature or request label Nov 16, 2022
@httpdss httpdss changed the title Be able to run from a custom image Run action from a custom image Nov 16, 2022
@dflook
Copy link
Owner

dflook commented Nov 19, 2022

Hello @httpdss, I'd love to add this but I don't think it's possible. The metadata format doesn't allow image to reference input or environment variables 😞.

@jonathan-d-palumbo
Copy link

Is there still no way to achieve this? I would like to use this action but my terraform requires the AWS cli be installed inside the docker container.

@dflook
Copy link
Owner

dflook commented Nov 21, 2023

@jonathan-d-palumbo The TERRAFORM_PRE_RUN environment variable will let you install the aws cli, the downside is it needs to run for every step. There is still no way I know of the use a custom image with it pre-installed.

@jonathan-d-palumbo
Copy link

jonathan-d-palumbo commented Nov 21, 2023

@dflook Thanks for your response. Much appreciated, I suppose if needed I can always fork the repository. It seems excessive but I'm not sure I want to install AWS each time the action runs either.

@dflook
Copy link
Owner

dflook commented Nov 22, 2023

I've written up the options available for customising the image here.

@jonathan-d-palumbo
Copy link

You da man dflook! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants