Re: s2i build set hostname

2016-09-09 Thread Robson Ramos Barreto
2016-09-09 16:13 GMT-03:00 Skarbek, John : > Robson, > > What is it that you are trying to accomplish? In your prior thread you > mention the use of setting up an ftp docker image. I think there’s a > misunderstanding for the purpose of s2i here. > You are right. I'm sorry for the confusion here.

Re: s2i build set hostname

2016-09-09 Thread Skarbek, John
Robson, What is it that you are trying to accomplish? In your prior thread you mention the use of setting up an ftp docker image. I think there’s a misunderstanding for the purpose of s2i here. s2i build is not going to build the Dockerfile that you posted. s2i is meant to take an existing doc

Re: s2i build set hostname

2016-09-09 Thread Robson Ramos Barreto
Sure, I'm trying create an image with ssh because I think that sshd is more easy to test Follow the code so far: # cat Dockerfile # ose-ftp-rhel7 FROM rhel7.2 ENV BUILDER_VERSION 1.0 ENV HOSTNAME ose-ftp.example.com RUN INSTALL_PKGS="openssh-server ipa-client" && KADMIN_PASS="" && HOSTNAME="

Re: s2i build set hostname

2016-09-09 Thread Jonathan Yu
Hey Robson, I see, thanks for the context. I'm unfamiliar with ipa-client, so will just share two thoughts: 1. The hostname is fixed for the lifetime of the container (that is, once the pod starts, it will keep its hostname until it crashes or is stopped) 2. If you want to choose a hostname, cons

Re: s2i build set hostname

2016-09-09 Thread Robson Ramos Barreto
Hello Jonathan Thank you for your time. I'm trying to install the ipa-client on which must have a fixed hostname My final goal is set up a FTP container with centralized authentication as I asked for advice: http://lists.openshift.redhat.com/openshift-archives/users/2016-September/msg00026.html

Re: s2i build set hostname

2016-09-08 Thread Jonathan Yu
Hey Robson, Can you elaborate more on what you're trying to do and why you need to change the hostname? I'm no expert, but I believe changing the hostname requires root, and s2i builds typically run as a nonprivileged user, so it's likely not possible to change the hostname from within the build

s2i build set hostname

2016-09-08 Thread Robson Ramos Barreto
Hello Guys, Is there any way to set hostname when building a s2i ? Thank you ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users