Skip to content

Add init container#12

Open
kaarolch wants to merge 2 commits intoschneidexe:masterfrom
kaarolch:add_init_container
Open

Add init container#12
kaarolch wants to merge 2 commits intoschneidexe:masterfrom
kaarolch:add_init_container

Conversation

@kaarolch
Copy link

@kaarolch kaarolch commented Oct 3, 2018

Hi Schnecke,
I added example docker file for your tpl binary, it could be use as init Container inside i.e. Kubernetes.

Copy link
Owner

@schneidexe schneidexe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Schnappi, thanks for your contrib. Looks like I got notifications disabled on my own stuff so I just stumbled upon it...

@@ -0,0 +1,6 @@
if [ ! -d "${DST_PATH}" ]; then
mkdir -p ${DST_PATH}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not enough. If DEPTH is >1 you have to create sub dirs as well. Better to move this to L5 and use sub path of the src file to create dst sub path dirs.

@@ -0,0 +1,13 @@
FROM alpine

ENV VERSION 0.4.5
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.4.6 is out by now

ENV VERSION 0.4.5
ENV SRC_PATH /src
ENV DST_PATH /dest
ENV DEPTH 1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd go with infinite depth as default...

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.

2 participants