From 2ee653562b8aeadf2e0eb8ef14e44f773021410b Mon Sep 17 00:00:00 2001 From: estevesm <sigma@Joaos-MacBook-Pro.local> Date: Wed, 8 Jul 2020 12:25:07 +0100 Subject: [PATCH] Added index.html and updated missing info on README --- README.md | 17 ++++++++++++++--- index.html | 11 +++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 index.html diff --git a/README.md b/README.md index b33aed1..93aac59 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,21 @@ This project contains a set of programs that are used to test webeos CGI capabil 1. Clone this repo to our `EOS` home directory (we can do this using lxplus, aiadm or cernbox desktop app); -2. We head over to cernbox.cern.ch and now we will have to share the repo folder with the service account `a:wwweos` (for prod testing) `a:eosautofstests` (for dev testing) +2. We head over to [cernbox.cern.ch](cernbox.cern.ch) and now we will have to share the repo folder with the service account `a:wwweos` (for prod testing) `a:eosautofstests` (for dev testing) -3. Now we only need to create a UserProvidedDirectory with `path` pointing to the repo folder we have created. +3. Make sure that every thing under the folder `cgi-bin` is executable you can do this by running `chmod +x hello.*` -4. To test that everything is working properly we can just access the website followed by `/cgi-bin/hello.pl` a `Hello, World!` message should appear in the browser. +4. Now we only need to create a `UserProvidedDirectory` CR with `path` pointing to the repo folder we have created. +``` +apiVersion: webeos.webservices.cern.ch/v1alpha1 +kind: UserProvidedDirectory +metadata: + name: <NAME>.webtest.cern.ch +spec: + archived: false + eosPath: /eos/user/<CERN_ID_INITIAL>/<CERN_ID>/webeos-cgi-test +``` + +5. To test that everything is working properly we can just access the website followed by `/cgi-bin/hello.pl` a `Hello, World!` message should appear in the browser. Note: As of July 2020 PHP, Perl, Bash and Python work. C is not supported due to the Docker image not having `gcc` installed. \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..77d675c --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Hello World! Site Title</title> + </head> + <body> + <h1>Hello World!</h1> + </body> +</html> \ No newline at end of file -- GitLab