File: BUILDING.txt

package info (click to toggle)
httpcomponents-client5 5.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, trixie
  • size: 7,008 kB
  • sloc: java: 72,659; xml: 1,001; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 970 bytes parent folder | download
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
Building Docker containers for compatibility tests
========================================================

= Apache HTTPD 2.4 image

Remark: omit sudo command if executing as root
---
sudo docker build -t httpclient-tests-httpd apache-httpd
---

= Squid 3.3 image

Remark: omit sudo command if executing as root
---
sudo docker build -t httpclient-tests-squid squid
---

= Start containers

---
sudo docker-compose up
---

= SSL key / cert material (optional)

# Issue a certificate request
---
openssl req -config openssl.cnf -new -nodes -sha256 -days 36500  \
 -subj '/O=Apache Software Foundation/OU=HttpComponents Project/CN=test-httpd/emailAddress=dev@hc.apache.org/' \
 -keyout server-key.pem -out server-certreq.pem
---
# Verify the request
---
openssl req -in server-certreq.pem -text -noout
---
# Sign new certificate with the test CA key
---
openssl ca -config openssl.cnf -days 36500 -out server-cert.pem -in server-certreq.pem && rm server-certreq.pem
---