diff --git a/README.md b/README.md index b33aed1ae1c8b2c1acad1b5e4bf6a12a467d8ccb..93aac59eb4e8d8ca01f67bb65fbd78449495d989 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 0000000000000000000000000000000000000000..77d675caa9d05feced3ee64435d3760051c62eaf --- /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