File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ apk add --no-cache --virtual .build-deps \
4646#
4747# Prepare destination scratchfs
4848#
49+ mkdir -p /scratchfs/etc/haproxy/conf.d /scratchfs/etc/ssl /scratchfs/usr/sbin /scratchfs/var/lib/haproxy/stats
50+
4951# Create self-signed certificate
5052openssl req -x509 -newkey rsa:4096 -nodes -keyout /scratchfs/etc/ssl/localhost.pem.key -out /scratchfs/etc/ssl/localhost.pem -days 365 -sha256 -subj "/CN=localhost"
5153chown 1000:1000 /scratchfs/etc/ssl/localhost.pem.key /scratchfs/var/lib/haproxy /scratchfs/var/lib/haproxy/stats
@@ -216,7 +218,6 @@ ls -lh /usr/sbin/haproxy
216218file /usr/sbin/haproxy
217219/usr/sbin/haproxy -vv
218220
219- mkdir -p /scratchfs/etc/haproxy/conf.d /scratchfs/etc/ssl /scratchfs/usr/sbin /scratchfs/var/lib/haproxy/stats
220221cp /usr/sbin/haproxy /scratchfs/usr/sbin/
221222
222223EOF
You can’t perform that action at this time.
0 commit comments