Page MenuHomePhabricator

Wikimania needs hosting on a server for onsite conference guide
Closed, ResolvedPublic

Description

I was told to reach out to Byron/Ops. We are going to have a web app for a conference guide on site during the week of the conference. I have a technical person who is in charge of making this happen with the volunteers. We need to have this hosted somewhere on a server. Who do I need to have him contact to make this happen/discuss the possibilities? abeaubien@wikimedia.ca (Antoine Beaubien who is on the wikimedia canada board and is managing this project is the point person diretly for this. ). Sorry for the last minute request! Thanks Ellie

Event Timeline

What is the conference guide?

Is it a PDF? A dynamic or static website?

You say its a web app... What is it written in? What dependencies does it have?

Where is the code please? is it in a public repo? it would need a security review before it can get on any production infra. There is also the option to use Cloud Services and get a VM in wmflabs.org

Reedy renamed this task from Urgent - Wikimania needs hosting on a server for onsite conference guide to Wikimania needs hosting on a server for onsite conference guide.Aug 1 2017, 8:13 PM
Reedy triaged this task as High priority.

This is _really_ short notice for something like this, i'm afraid there is not enough time to get this properly reviewed and into production. There is more to it than just uploading files.

I have a technical person who is in charge

Is that person here on Phabricator? Let's add them if we can please. That would be great.

demon added a subscriber: bbogaert.

Hey, so from Operations point of view.. it's a little short notice but we can do it, and i'd be willing to put it on a prod VM for "misc apps", BUT for that it would need a security review from security people and for that we need more details about the app and a link to the source code. If prod doesn't work out, then it could go to Cloud (formerly Labs).

This was supposed to be something that our Volunteer team was going to handle as always for Wikimania. For some reason they didn't give me a heads up about hosting. I'm trying to get 1K people and everything else settled this week, so I cannot be involved at this level. I thought I had added him on the original request. I've tried adding as a subscriber to no avail:

abeaubien@wikimedia.ca

Another option would be to put this on a Labs VM. That would bypass the requirements for security review and ops involvement.

I thought I had added him on the original request. I've tried adding as a subscriber to no avail

This person needs to register an account here on Phabricator, you can't add random emails to tickets.

@eyoung I have mailed Antoine and asked him to please join us here on the ticket. He doesn't have a Phabricator user yet but will be able to login with his existing Wikipedia user.

There is an existing wikimania-support Cloud-VPS project that @Niharika and I "own". It's used for testing the Scholarships app. We could put a new VM into it pretty easily.

What is the conference guide?

Is it a PDF? A dynamic or static website?

You say its a web app... What is it written in? What dependencies does it have?

Hi,

this is a sample matter of hosting HTML, CSS, JS files, and a few pictures. Mainly HTTP needs. But, having PHP is a little plus. I only want to a 2 scripts of 100 lines to upload a JSON file to the server with the sessions informations. That file need to change often during the conference.

But, if it's a lot of trouble, I can manage it myself. I my mind, this was something you would do, since you also host the Wiki for Wikimania, which is our main web site, I could say.

So really, if it's trouble (like creating a VM for this single purpose), then, I can manage it on my side.

Antoine

Hi @Antoine2711 Are the files already in a public git repository by any chance? The process would start with requesting a repository and uploading the files. Did you have a specific URL/ name for this in mind? Since you say a file needs to be changed often during the conference, that sounds like a good reason to put it into "Cloud" (Labs), so that you can handle that yourself without having to go through code review for production. So how about we do it half/half, we get you a VM (creating that is actually not trouble) but then you manage it. You could use a URL in .wmflabs.org. Cheers, Daniel

Hi @Dzahn,

For me, it's really a simple HTTP need. The ideal of the PHP script is to not have to upload frequently a JSON file, it would be sent thru an HTTP POST request. That would be the only PHP in the project. All the rest is static files. So no code to check, as JS code is executed on the machine of the client.

I don't really know what "Cloud" (Labs) involves, but maybe if you give me a link, I can read about.

I don't think we have a GIT repo now, but the original software is there, but with our configuration. Of course, we could create a ùGIT repo just for this. Also, if it's simpler, I can send a zip file with HTML, JS, CSS & picture files.

For the URL, I was thinking of m.wikimania.ca, but I need to check for that. Also, m.wikimania2017.wikimedia.org could be simple and good. But I prefer the former.

Managing the WM is fine with me, I just need to know what platform/software is involved. Not sure this answers all your question, you tell me! ;-)

Cheers, Antoine

Hi Antoine2711, the easiest way to upload the files would probably be if you want to just make a zip file and drag & drop it into the comment field right here on the ticket. (As long as it's really that small). We can upload it into a git repo for you and/or one of us can request a repo here https://www.mediawiki.org/wiki/Gerrit/New_repositories#Step_4:_Request_a_Git_repository

Here is some information about "Cloud VPS". https://wikitech.wikimedia.org/wiki/Help:Cloud_Services_Introduction https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS

We could give you a VM with Debian or Ubuntu Linux and an Apache and PHP preinstalled on it. Adding http://<something>.wmflabs.org and pointing it to that Apache would be easy, by clicking in web UI. You would be able to upload files via scp/sftp.

This should all not be a problem.. except the URLs you mentioned. I'm afraid we can't really do that with m.wikimania.ca and m.wikimania2017.org. We would be limited to something like wikimania2017.wmflabs.org.

Hi @Dzahn,

Hi Antoine2711, the easiest way to upload the files would probably be if you want to just make a zip file and drag & drop it into the comment field right here on the ticket. (As long as it's really that small). We can upload it into a git repo for you and/or one of us can request a repo here https://www.mediawiki.org/wiki/Gerrit/New_repositories#Step_4:_Request_a_Git_repository

Perfect. Let's go for that. Tell me what to do.

Here is some information about "Cloud VPS". https://wikitech.wikimedia.org/wiki/Help:Cloud_Services_Introduction https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS

I'll read that. Thanks.

We could give you a VM with Debian or Ubuntu Linux and an Apache and PHP preinstalled on it. Adding http://<something>.wmflabs.org and pointing it to that Apache would be easy, by clicking in web UI.

Either sounds good, let me ask my dev guys. I'll send you the info in the next hours.

You would be able to upload files via scp/sftp.

SFTP is perfect.

This should all not be a problem.. except the URLs you mentioned. I'm afraid we can't really do that with m.wikimania.ca and m.wikimania2017.org. We would be limited to something like wikimania2017.wmflabs.org.

K, let's go with wikimania2017.wmflabs.org. Anyway, I think I could easily shadow the w.wikimania.ca domaine from wikimania2017.wmflabs.org.

We got pretty much most questions resolved quickly! Thanks for all the help, and like I said, I don't want to take too much time, let's go with the fast/easy ways around this.

Best Regards, Antoine

@Antoine2711 Sounds all good. I will also get back to you tomorrow, we'll get it done.

This comment was removed by greg.

@Antoine2711 Please go to wikitech wiki and make an account there and let me know the user name when done. Thanks!

@Antoine2711 Please go to wikitech wiki and make an account there and let me know the user name when done. Thanks!

Hi @Dzahn, my WikiTech account is the same as my Wiki account: Antoine2711. My personal email is antoine@beaubien.qc.ca.

Cheers, Antoine

Mentioned in SAL (#wikimedia-cloud) [2017-08-03T18:27:58Z] <mutante> added new member Antoine2711 for T172217

fixed simplelap puppet role to support stretch so we can put Apache/PHP on Debian stable VPS:

https://gerrit.wikimedia.org/r/#/c/369993/

but gave up on using it anyways

@Antoine2711

I created a new VM (instance) in the existing project called "wikimania-support" and made you a member and admin.
I installed Apache (2.4) and PHP (7) on it.

On https://wikitech.wikimedia.org you should see under "Manage projects" how you have a "wikimania-support" project. (Or you can enter that into the project filter field).
On https://horizon.wikimedia.org/project/ (same login as wikitech) i configured a "proxy" to point from wikimania2017.wmflabs.org. The name of the instance is "conferenceguide".

http://wikimania2017.wmflabs.org/ already shows the default Debian Apache page now that tells you more where the config is.

Here is info how you should be able to SSH to that (or copy files via scp/sftp).:

https://wikitech.wikimedia.org/wiki/Help:Access#Accessing_instances_with_ProxyCommand_ssh_option_.28recommended.29
https://wikitech.wikimedia.org/wiki/Help:Access_to_instances_with_PuTTY_and_WinSCP

First step, go to wikitech wiki, to "preferences" and add an SSH key there please.

Then use an ssh config like this: (put it in .ssh/config in your home dir)

Host: conferenceguide
ProxyCommand ssh -a -W %h:%p -A antoine2711@primary.bastion.wmflabs.org
User antoine2711

given that the "shell username" you picked during registration was "antoine2711".

After this just typing "ssh conferenceguide" should work and get you on the instance.

From there you can configure the Apache as you like and put the files in place.

@Antoine2711 Is this working for you? Any issues? I will be in travel to Wikimania soon, let me know if i can help with anything else.

@Antoine2711 Is this working for you? Any issues? I will be in travel to Wikimania soon, let me know if i can help with anything else.

@Antoine2711: Five weeks later, what is left to do here?

Yea, that's a bit sad, i really rushed to get that done in time for Wikimania since it sounded so urgent.

greg claimed this task.

Well, you got the hosting setup in time, which was really quick and nicely done. I'd consider this completed even if the result wasn't used. Thanks @Dzahn .

greg removed a project: User-greg.

Can we delete the VM and remove the added user(s) from the Wikimania project?

@Antoine2711 do you have anything on the VM that you don't have somewhere else? We'd like to delete it since it was never used.

Hi you all,

 First, let me thank you for you work' which as been done promptly. Yes, unfortunatly, there was not Mobile App this Wikimania, for mostly bad reasons I won't elaborate here but for whom I take full responsability.

I was thinking about setting up a Mobile App for next year, with the shortcoming that I experienced this year being dealt before Wikimania. That way, we wouldn't be in a rush before next Wikimania.

Does this sound a good ideal on your end?

Regards,

Antoine

Sounds good to me. You could just use the existing VM then and get it prepared for next year. Yup!:)

Ideally, we could generalize it and remove the year-specific bits. Then subsequent Wikimanias can always pick up after (see also scholarships app :))