Hi,
On Mon, Nov 9, 2015 at 11:00 PM, Imesh Gunaratne <[email protected]> wrote: > > We need to remove sudo from this command/bash script: > sudo docker build -t wso2/base-image:${wso2_base_image_version} . > > If sudo is needed the entire script should be run in that mode. > I don't think entire script needs to be run in sudo mode. There are some maven build commands if run in sudo mode it will try to download artifacts for root user's maven repo space. Also there are some file copy commands if run in sudo mode it will mess up the ownership of folder structure. Removing sudo mode from docker build command is a bad idea since it forces users to either run in sudo mode or add Docker user to sudoers group which is a security risk. Thanks. > >> Does anyone aware of how to execute docker termination from Docker >> Quickstart Terminal with sudo permission? >> >> Try to do a sudo docker ps > sudo docker ps > sudo docker rm -f [container id] > > Thanks > > >> Thanks, >> Reka >> >> On Mon, Nov 9, 2015 at 8:05 PM, Gayan Gunarathne <[email protected]> wrote: >> >>> The command that we used to retrieve the configurator_version is not >>> working as we don't have a pom in the base-image.May be we get >>> the configurator_version from parent pom and but seems that command is not >>> working when we point to the parent pom.We may not need to read >>> this configurator_version from the pom? >>> >>> [1] >>> https://github.com/wso2/private-paas-cartridges/blob/master/common/docker/base-image/build.sh#L25 >>> >>> Thanks, >>> Gayan >>> >>> -- >>> >>> Gayan Gunarathne >>> Technical Lead, WSO2 Inc. (http://wso2.com) >>> Committer & PMC Member, Apache Stratos >>> email : [email protected] | mobile : +94 775030545 <%2B94%20766819985> >>> >>> >>> >> >> >> >> -- >> Reka Thirunavukkarasu >> Senior Software Engineer, >> WSO2, Inc.:http://wso2.com, >> Mobile: +94776442007 >> >> >> > > > -- > *Imesh Gunaratne* > Senior Technical Lead > WSO2 Inc: http://wso2.com > T: +94 11 214 5345 M: +94 77 374 2057 > W: http://imesh.gunaratne.org > Lean . Enterprise . Middleware > > -- Akila Ravihansa Perera WSO2 Inc.; http://wso2.com/ Blog: http://ravihansa3000.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
