-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add separate configs for podman and update the readme to reflect changes made earlier (removal of profiles) * make separate setup section for podman
- Loading branch information
Showing
7 changed files
with
145 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
.PHONY: start-localtest | ||
start-localtest: | ||
docker-compose --profile localtest up -d --build | ||
.PHONY: docker-start-localtest | ||
docker-start-localtest: | ||
docker-compose up -d --build | ||
|
||
.PHONY: stop-localtest | ||
stop-localtest: | ||
docker-compose --profile localtest down | ||
.PHONY: docker-stop-localtest | ||
docker-stop-localtest: | ||
docker-compose down | ||
|
||
.PHONY: start-localtest-new-pdf | ||
start-localtest-new-pdf: | ||
docker-compose --profile localtest --profile pdf up -d --build | ||
|
||
.PHONY: stop-localtest-new-pdf | ||
stop-localtest-new-pdf: | ||
docker-compose --profile localtest --profile pdf down | ||
.PHONY: podman-start-localtest | ||
podman-start-localtest: | ||
podman compose --file podman-compose.yml up -d --build | ||
.PHONY: podman-stop-localtest | ||
podman-stop-localtest: | ||
podman compose --file podman-compose.yml down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
version: '3.6' | ||
|
||
networks: | ||
altinntestlocal_network: | ||
external: false | ||
|
||
services: | ||
local.altinn.cloud: | ||
container_name: localtest-loadbalancer | ||
image: nginx:alpine-perl | ||
restart: always | ||
networks: | ||
- altinntestlocal_network | ||
ports: | ||
- "${ALTINN3LOCAL_PORT:-8080}:80" | ||
environment: | ||
- NGINX_HOST=localhost | ||
- NGINX_PORT=80 | ||
- TEST_DOMAIN=${TEST_DOMAIN:-local.altinn.cloud} | ||
- INTERNAL_DOMAIN=host.containers.internal | ||
- ALTINN3LOCAL_PORT=${ALTINN3LOCAL_PORT:-80} | ||
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/ | ||
- NGINX_ENVSUBST_TEMPLATE_SUFFIX=.conf | ||
volumes: | ||
- ./loadbalancer/templates:/etc/nginx/templates/:ro | ||
- ./loadbalancer/www:/www/:ro | ||
|
||
|
||
altinn_platform_pdf: | ||
container_name: altinn-pdf | ||
platform: linux/amd64 | ||
image: ghcr.io/altinn/altinn-pdf:latest | ||
restart: always | ||
networks: | ||
- altinntestlocal_network | ||
ports: | ||
- "5070:5070" | ||
altinn_pdf_service: | ||
container_name: altinn-pdf-service | ||
image: browserless/chrome:1-puppeteer-19.2.2 | ||
restart: always | ||
networks: | ||
- altinntestlocal_network | ||
ports: | ||
- "5300:3000" | ||
|
||
altinn_localtest: | ||
container_name: localtest | ||
image: localtest:latest | ||
restart: always | ||
networks: | ||
- altinntestlocal_network | ||
ports: | ||
- "5101:5101" | ||
build: | ||
context: . | ||
environment: | ||
- DOTNET_ENVIRONMENT=Podman | ||
- ASPNETCORE_URLS=http://*:5101/ | ||
- GeneralSettings__BaseUrl=http://${TEST_DOMAIN:-local.altinn.cloud}:${ALTINN3LOCAL_PORT:-80} | ||
- GeneralSettings__HostName=${TEST_DOMAIN:-local.altinn.cloud} | ||
volumes: | ||
- ./testdata:/testdata | ||
- ${ALTINN3LOCALSTORAGE_PATH:-AltinnPlatformLocal}:/AltinnPlatformLocal | ||
|
||
volumes: | ||
AltinnPlatformLocal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"LocalPlatformSettings": { | ||
"LocalAppMode": "http", | ||
"LocalAppUrl": "http://host.containers.internal:5005", | ||
"LocalTestingStorageBasePath": "/AltinnPlatformLocal/", | ||
"LocalTestingStaticTestDataPath": "/testdata/" | ||
} | ||
} |