Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Make the entrypoint extensible #59

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

inkblot
Copy link

@inkblot inkblot commented Oct 26, 2017

Based on the techniques described at https://www.camptocamp.com/en/actualite/flexible-docker-entrypoints-scripts/

Enable downstream users of the image to mount additional entrypoint
functionality at runtime or optionally build derivative images with extended
functionality via the /docker-entrypoint.d directory

Based on the techniques described at https://www.camptocamp.com/en/actualite/flexible-docker-entrypoints-scripts/

Enable downstream users of the image to mount additional entrypoint
functionality at runtime or optionally build derivative images with extended
functionality via the /docker-entrypoint.d directory
@inkblot inkblot mentioned this pull request Oct 26, 2017
@jefferai
Copy link
Member

@slackpad This is really more a question for the higher level HC containers as I don't want to do something in the Vault container and not elsewhere. Thoughts?

@inkblot
Copy link
Author

inkblot commented Oct 30, 2017

What do you mean by "higher level HC containers"? The vault dockerfile starts from alpine

@jefferai
Copy link
Member

@inkblot
Copy link
Author

inkblot commented Oct 30, 2017

Changes in the Hashicorp base image won't have any impact on the vault image, since the vault dockerfile says FROM alpine:3.6 not FROM hashicorp/docker-base

So yes, by all means, add the functionality to the base image. I am in favor of making all of the Hashicorp container entrypoints extensible, but I'm not in a rush either.

@jefferai
Copy link
Member

docker-base isn't an image, it's a set of common files across containers. The point is that I don't want the Vault container deviating from the others.

@inkblot
Copy link
Author

inkblot commented Nov 5, 2017

It looks like docker-base is just a mechanism for getting a couple of go executables into the image (sidebar: why aren't these delivered via an actual base image?). Are you suggesting that dumb-init should handle running any scripts found under /docker-entrypoint.d?

@jefferai
Copy link
Member

jefferai commented Nov 5, 2017

They are not part of an actual base image because the people we worked with at Docker to make an official image had a preference for us to use Alpine and add versus make a derivative base image.

@isuftin
Copy link

isuftin commented Jan 8, 2018

@inkblot Any thoughts on when this might be merged in?

@jefferai
Copy link
Member

jefferai commented Jan 9, 2018

I think it's just waiting on the conflicts to be resolved.

@inkblot
Copy link
Author

inkblot commented Jan 19, 2018

It is resolved

@madmanmax
Copy link

@inkblot is it possible to solve the merge conflicts and get it merged it? it would be great to have this functionality!

@nsteinmetz
Copy link

nsteinmetz commented May 4, 2018

Hi there,

Do we agree that this extensions does not allow to have scripts such as:

vault secrets enable -path=docker kv
vault write docker @/tmp/vault/secrets/docker.json status=ok

Due to the fact that vault will be really launch after scripts have been executed ?

@madmanmax
Copy link

@nsteinmetz I was a bit too excited about this. indeed, this extensions doesn't really solve the problem. this is more like pre-processing scripts (e.g. install a linux package or something), but we need something for post-processing scripts, after vault has been executed.

@hashicorp-cla
Copy link

hashicorp-cla commented Dec 6, 2019

CLA assistant check
All committers have signed the CLA.

@grigorov
Copy link

grigorov commented Sep 5, 2020

How many time is need for merge this PR?

@netsandbox
Copy link

@jefferai any news regarding this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants