Bitnami wordpress charm development

Samuel Cozannet samuel.cozannet at canonical.com
Tue Mar 1 07:47:02 UTC 2016


Hi Ney,

I've got myself in the same issue in the past, and found this pretty
useful: dos2unix. You can apt-get install it, then you get a dos2unix and a
unix2dos commands.

If you succeed with the bitnami -> charm, do you think you could create a
generic bitnami converter? That would be interesting.

Good charming!
Best,
Sam


--
Samuel Cozannet
Cloud, Big Data and IoT Strategy Team
Business Development - Cloud and ISV Ecosystem
Changing the Future of Cloud
Ubuntu <http://ubuntu.com>  / Canonical UK LTD <http://canonical.com> / Juju
<https://jujucharms.com>
samuel.cozannet at canonical.com
mob: +33 616 702 389
skype: samnco
Twitter: @SaMnCo_23
[image: View Samuel Cozannet's profile on LinkedIn]
<https://es.linkedin.com/in/scozannet>

On Tue, Mar 1, 2016 at 1:46 AM, Ney Moura <neymourac at gmail.com> wrote:

> I was thinking that i missed some configurations to ran those commands
> properly only.
>
> Since I use nano, I wasn't able to see those.
>
> Thanks for the tip about hook environment and the command!
>
> Mainly for the quick response =D
>
> 2016-02-29 21:31 GMT-03:00 José Antonio Rey <jose at ubuntu.com>:
>
>> Glad that was it! When I opened it on vim, it said [dos] at the bottom,
>> and after googling the error I saw what it was.
>>
>> About the command, what happens is right. You should not be able to
>> execute any of those commands. The commands are only executable in a 'hook
>> environment', meaning only hooks will be able to run them. If you really
>> want to execute one of them, you can use 'juju run --service
>> wordpress-single "command goes here"'.
>>
>> Why do you want to run that manually? Anything missing?
>>
>> --
>> José Antonio Rey
>>
>> On Mon, Feb 29, 2016, 19:22 Ney Moura <neymourac at gmail.com> wrote:
>>
>>> Thanks everyone!
>>>
>>> José Antonio, you were right!
>>>
>>> How did you discover that?
>>>
>>>
>>> But let me challenge you guys even more!
>>>
>>> I need to install something in the VM before using the juju commands,
>>> like status-set? I'm asking this because I wasn't able to run these
>>> commands in there.
>>>
>>>
>>> Thanks again!
>>>
>>> 2016-02-29 19:15 GMT-03:00 José Antonio Rey <jose at ubuntu.com>:
>>>
>>>> This is because you are using Windows line breaks instead of Linux/Unix
>>>> line breaks. Try saving your file with Linux/Unix line breaks and give it a
>>>> go.
>>>>
>>>>
>>>> On 02/29/2016 05:12 PM, David Britton wrote:
>>>>
>>>>> On Mon, Feb 29, 2016 at 07:02:08PM -0300, Ney Moura wrote:
>>>>>
>>>>>>
>>>>>> But I keep having erros with the install hook. It says file not found.
>>>>>>
>>>>>>
>>>>> Maybe I missed it in the tarball -- could you attach a juju debug-log
>>>>> capture while you deploy it?
>>>>>
>>>>> Or, /var/log/all-machines.log from the bootstrap node is the same
>>>>> thing.
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>> --
>>>> José Antonio Rey
>>>>
>>>
>>>
>>>
>>> --
>>> *Ney Moura Conceição*
>>>
>>
>
>
> --
> *Ney Moura Conceição*
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160301/70b26ecc/attachment.html>


More information about the Juju mailing list