quality-dashboard-team team mailing list archive
-
quality-dashboard-team team
-
Mailing list archive
-
Message #00005
Re: postgresql server
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I wasn't able to resurrect the VM but I've created a new one.
You need to use 10.55.60.54 instead of 10.55.60.168.
It has the default django, "hello world" app running as well as
postgresql installed.
Thanks,
Martin
On 03/21/2012 07:09 PM, Martin Mrazik wrote:
> Hi All,
>
> The canonistack instance is down. I'm trying to make it alive
> again but I fear I'll need to create a new instance. I'll keep you
> posted.
>
> Thanks,
>
> Martin
>
> On 03/19/2012 04:16 PM, Martin Mrazik wrote:
>> Hi,
>
>> just to follow-up on our meeting today.
>
>> The canonistack host now has postgresql installed and the user
>> django is in the admin group (so you can sudo and change/install
>> whatever you need). I didn't create any database.
>
>> Thanks,
>
>> Martin
>
>> On 03/06/2012 05:00 PM, Martin Mrazik wrote:
>>> Hi All,
>
>>> On our last Quality Dashboard meeting we were looking for a
>>> playground where we can develop the quality dashboard. I
>>> suggested to use canonistack instance with a private IP for
>>> this purpose and it seems this approach works and it is not so
>>> hard to set it up.
>
>>> If you are interested in the Dashboard development feel free to
>>> follow the steps below[1] to see a running django app there
>>> (currently it only displays "It worked!" -- the default page of
>>> empty project).
>
>>> If you want to know how I created the VM instance, ping me and
>>> I can provide details. It is actually quite easy :-)
>
>>> Thanks,
>
>>> Martin
>
>
>>> [1]
>
>>> 0. You need shell account on chinstrap.canonical.com. If you
>>> don't have one you will need to ask IS.
>
>>> 1. add the following to your ~/.ssh/config. Note that you need
>>> to change the "$YOUR_CHINSTRAP_LOGIN" to your real chinstrap
>>> login. -----snip----- Host 10.55.60.* ProxyCommand ssh
>>> $YOUR_CHINSTRAP_LOGIN@xxxxxxxxxxxxxxxxxxxxxxx nc -q0 %h %p
>>> -----snip-----
>
>>> 2. ssh -L 8000:10.55.60.168:8000 django@10.55.60.168 password:
>>> "django"
>
>>> The command above will create a tunnel to the private IP via
>>> chinstrap. One end of the tunel is localhost:8000. The other
>>> end is 10.55.60.168:8000 where django server is running.
>
>>> 3. with your browser go to http://localhost:8000 You should see
>>> (that is the django instance running on 10.55.60.168):
>>> -----snip----- It worked! Congratulations on your first
>>> Django-powered page. -----snip----- The server is running in
>>> screen so if you do "screen -r" you can start/stop it (or even
>>> add some django code).
>
>>> Thanks,
>
>>> Martin
>
>
>
>
>
>
- --
Martin Mrazik | Product Strategy Quality Lead
Key fingerprint:
0373 C5E5 6A04 39FF 9D06 31B8 B296 2F5D 35FF D83B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk9wYk8ACgkQspYvXTX/2DsIIgCeNQLYYs083d41DRksV1gN+fg2
/vkAnA3bu8sej2soo43if6Cfm06o7Ero
=SpPU
-----END PGP SIGNATURE-----
References