File tree Expand file tree Collapse file tree 3 files changed +5
-34
lines changed Expand file tree Collapse file tree 3 files changed +5
-34
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ podman-compose-start-localtest:
21
21
.PHONY : podman-compose-stop-localtest
22
22
podman-compose-stop-localtest :
23
23
podman-compose --file podman-compose.yml down
24
-
25
24
26
25
.PHONY : podman-selinux-bind-hack
27
26
podman-selinux-bind-hack :
Original file line number Diff line number Diff line change @@ -218,22 +218,6 @@ This would be required if your app requires a role which none of the test users
218
218
219
219
### Known issues
220
220
221
- #### Bind mounts folders gives permission denied. Nginx returns default page
222
-
223
- On some nix systems you might experience problems with the bind mounts used by the containers. If you get the default nginx page when trying to access local.altinn.cloud this might be the case.
224
-
225
- To verify this you can run the following command:
226
-
227
- ``` shell
228
- podman container exec -it localtest-loadbalancer cat /etc/nginx/templates/nginx.conf.conf
229
- ```
230
-
231
- if you get a permission denied message this verifies that the bind mount is not working. A best effort fix for this is to run the following command:
232
-
233
- ``` shell
234
- make podman-selinux-bind-hack
235
- ```
236
-
237
221
#### Localtest reports that the app is not running even though it is
238
222
239
223
If localtest and you app is running, but localtest reports that the app is not running, it might be that the port is not open in the firewall.
Original file line number Diff line number Diff line change @@ -25,15 +25,8 @@ services:
25
25
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/
26
26
- NGINX_ENVSUBST_TEMPLATE_SUFFIX=.conf
27
27
volumes :
28
- - type : bind
29
- source : ./loadbalancer/templates/
30
- target : /etc/nginx/templates/
31
- read_only : true
32
- - type : bind
33
- source : ./loadbalancer/www/
34
- target : /www/
35
- read_only : true
36
-
28
+ - ./loadbalancer/templates/:/etc/nginx/templates/:ro,z
29
+ - ./loadbalancer/www/:/www/:ro,z
37
30
38
31
altinn_platform_pdf :
39
32
container_name : altinn-pdf
@@ -44,6 +37,7 @@ services:
44
37
- altinntestlocal_network
45
38
ports :
46
39
- " 5070:5070"
40
+
47
41
altinn_pdf_service :
48
42
container_name : altinn-pdf-service
49
43
image : browserless/chrome:1-puppeteer-19.2.2
@@ -69,14 +63,8 @@ services:
69
63
- GeneralSettings__BaseUrl=http://${TEST_DOMAIN:-local.altinn.cloud}:${ALTINN3LOCAL_PORT:-8000}
70
64
- GeneralSettings__HostName=${TEST_DOMAIN:-local.altinn.cloud}
71
65
volumes :
72
- - type : volume
73
- source : AltinnPlatformLocal
74
- target : /AltinnPlatformLocal/
75
- read_only : false
76
- - type : bind
77
- source : ./testdata/
78
- target : /testdata/
79
- read_only : true
66
+ - ./testdata/:/testdata/:ro,z
67
+ - AltinnPlatformLocal:/AltinnPlatformLocal/:rw
80
68
81
69
volumes :
82
70
AltinnPlatformLocal :
You can’t perform that action at this time.
0 commit comments