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

Samba setup.sh fails on docker 1.11.1, envsubst need the env variables exported #48

Open
njhsi-zz opened this issue May 16, 2016 · 0 comments

Comments

@njhsi-zz
Copy link

njhsi-zz commented May 16, 2016

besides issue #47 reported that the "-D info" no longer outputs "Init Path", envsubst fails also using the env variables (USER,GROUP .. ) to create smb.conf.

workaround:

FROM svendowideit/samba
# Install docker client
ENV DOCKER_VERSION 1.11.1
RUN curl -sSLf https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz | tar -xzvf - 'docker' && chmod +x docker/* && mv docker/* /bin
RUN rmdir /docker && mv /bin/docker /
RUN sed --in-place 's/Init Path/Root Dir/g' /setup.sh
RUN sed --in-place 's/USER=/export USER=/g' /setup.sh
RUN sed --in-place 's/PASSWORD=/export PASSWORD=/g' /setup.sh
RUN sed --in-place 's/USERID=/export USERID=/g' /setup.sh
RUN sed --in-place 's/GROUP=/export GROUP=/g' /setup.sh
RUN sed --in-place 's/DOCKER_HOST=/export DOCKER_HOST=/g' /setup.sh
RUN sed --in-place 's/READONLY=/export READONLY=/g' /setup.sh
RUN sed --in-place 's/CONTAINER=/export CONTAINER=/g' /setup.sh

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

No branches or pull requests

1 participant