-
Notifications
You must be signed in to change notification settings - Fork 6
Add vendor stack #850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
YuryHrytsuk
merged 10 commits into
ITISFoundation:main
from
YuryHrytsuk:add-vendor-stack
Oct 23, 2024
Merged
Add vendor stack #850
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e175ee6
Add vendor stack
YuryHrytsuk 3ec87e6
Updates
YuryHrytsuk 452b171
Merge remote-tracking branch 'upstream/main' into add-vendor-stack
YuryHrytsuk aa5bfff
Add missing tls configuration
YuryHrytsuk 9e734f2
Updates
YuryHrytsuk a94f0c0
Add port env
YuryHrytsuk 30fc1be
Merge remote-tracking branch 'upstream/main' into add-vendor-stack
YuryHrytsuk 7ef0c90
Add placement and resource constraints
YuryHrytsuk ead0e14
update_config: start-first
YuryHrytsuk 39e16f0
Fixes
YuryHrytsuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,35 @@ | ||
| .DEFAULT_GOAL := help | ||
|
|
||
| # Internal VARIABLES ------------------------------------------------ | ||
| # STACK_NAME defaults to name of the current directory. Should not to be changed if you follow GitOps operating procedures. | ||
| STACK_NAME = $(notdir $(shell pwd)) | ||
| TEMP_COMPOSE=.stack.${STACK_NAME}.yaml | ||
| REPO_BASE_DIR := $(shell git rev-parse --show-toplevel) | ||
|
|
||
| # TARGETS -------------------------------------------------- | ||
| include ${REPO_BASE_DIR}/scripts/common.Makefile | ||
|
|
||
| .PHONY: up ## Deploys registry stack | ||
| up: ${TEMP_COMPOSE} .init .env | ||
| docker stack deploy --with-registry-auth --prune --compose-file $< ${STACK_NAME} | ||
YuryHrytsuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| .PHONY: up-dalco ## Deploys registry stack for Dalco Cluster | ||
| up-dalco: up | ||
|
|
||
| .PHONY: up-aws | ||
| up-aws: up | ||
|
|
||
| .PHONY: up-master ## Deploys registry on master cluster | ||
| up-master: up | ||
|
|
||
| .PHONY: up-public ## Deploys registry on public cluster | ||
| up-public: up | ||
|
|
||
| .PHONY: up-local ## Deploys registry on local deployment | ||
| up-local: up | ||
|
|
||
| # Helpers ------------------------------------------------- | ||
|
|
||
| .PHONY: ${TEMP_COMPOSE} | ||
| ${TEMP_COMPOSE}: docker-compose.yml .env | ||
| ${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< > $@ | ||
This file contains hidden or 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,39 @@ | ||
| version: "3.7" | ||
|
|
||
| services: | ||
| manual: | ||
| image: ${VENDOR_MANUAL_IMAGE} | ||
| init: true | ||
| hostname: "{{.Node.Hostname}}-{{.Task.Slot}}" | ||
| deploy: | ||
| replicas: ${VENDOR_MANUAL_REPLICAS} | ||
| placement: | ||
| constraints: | ||
| - node.labels.simcore==true | ||
| resources: | ||
| limits: | ||
| cpus: "1" | ||
| memory: 2G | ||
| reservations: | ||
| cpus: "0.5" | ||
| memory: 1G | ||
| update_config: | ||
| parallelism: 1 | ||
| order: start-first | ||
| failure_action: continue | ||
| delay: 10s | ||
| labels: | ||
| - traefik.enable=true | ||
| - traefik.docker.network=${PUBLIC_NETWORK} | ||
| - traefik.http.services.vendor_manual.loadbalancer.server.port=${VENDOR_MANUAL_PORT} | ||
| - traefik.http.routers.vendor_manual.entrypoints=https | ||
| - traefik.http.routers.vendor_manual.tls=true | ||
| - traefik.http.routers.vendor_manual.rule=Host(`${VENDOR_MANUAL_DOMAIN}`) | ||
| - traefik.http.routers.vendor_manual.middlewares=ops_gzip@swarm, authenticated_platform_user@swarm | ||
| networks: | ||
| - public | ||
|
|
||
| networks: | ||
| public: | ||
| external: true | ||
| name: ${PUBLIC_NETWORK} |
This file contains hidden or 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,5 @@ | ||
| VENDOR_MANUAL_IMAGE=${VENDOR_MANUAL_IMAGE} | ||
| VENDOR_MANUAL_REPLICAS=${VENDOR_MANUAL_REPLICAS} | ||
| VENDOR_MANUAL_DOMAIN=${VENDOR_MANUAL_DOMAIN} | ||
| VENDOR_MANUAL_PORT=${VENDOR_MANUAL_PORT} | ||
| PUBLIC_NETWORK=${PUBLIC_NETWORK} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.