@Before
public void beforeTest() throws Exception {
List<RequestPattern> reqPattern = new ArrayList<>();
RequestPattern xhrReqPattern = new RequestPattern(Optional.of("*"),
Optional.of(ResourceType.XHR), Optional.of(RequestStage.RESPONSE));
reqPattern.add(xhrReqPattern);
chromeDevTools
.send(Fetch.enable(Optional.of(reqPattern), Optional.of(false)));
}
IMAGE=basic-perl-apache
docker build -t $IMAGE -f Dockerfile .
NAME=basic-perl-cgi
docker run -d -p 9090:80 -p 9443:443 --name $NAME $IMAGE
6268fe7866ecb0f7caf6dd852bcbcf4335f3c097649b43dd8cf5cb76bc1ed150
NAME=basic-perl-cgi
docker logs -f $NAME
[Sun Mar 26 22:37:03.213750 2023] [alias:warn] [pid 6] AH00671: The Alias directive in /etc/apache2/conf.d/mod_fcgid.conf at line 4 will probably never match because it overlaps an earlier ScriptAlias.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
0
wait for apache pid
apache is running with ID 7
NAME=basic-perl-cgi
docker exec -it $NAME sh
/home/docker_user # echo 123
123
docker logs $node -f