-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
42 lines (24 loc) · 1007 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
JSON_SERVER_ADDRESS=`/sbin/ip route|awk '/default/ { print $3 }'`
cat << EOFA
******************************************************
https://github.com/mkowsiak/JSONDocker
******************************************************
Python Programming Specialization JSON testing server
------------------------------------------------------
Server is running, try to connect to the server
following way:
http://localhost:80/
http://localhost:80/index.php
http://localhost:80/custom_json.php
http://localhost:80/slow.php
You can also access content using Python
import requests
import json
p = requests.get("http://localhost:80")
print(p.json())
Have fun!
EOFA
/etc/init.d/apache2 start
# we want to prevent container from quiting
/bin/bash