-
Notifications
You must be signed in to change notification settings - Fork 5
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
CH-100 Add preliminary docker-compose support #735
Merged
Merged
Changes from all commits
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
d25230f
CH-100 Add first code to call a dedicated docker-compose generation
aranega 6f306a1
Squashed commit of the following:
aranega 6bbae19
CH-100 Add first skaffold dedicated generation for docker compose
aranega 5287545
CH-100 Make skaffold script a little bit more generic (ugly)
aranega 9f75c9c
CH-100 Fix issue with entrypoint
aranega c159a4f
CH-100 Remove generation of chart files for docker-compose
aranega 02bd318
CH-100 Rollback default per-app helm template directory
aranega 1a57064
CH-100 Add subdomain configuration
aranega b97c19c
CH-100 Fix bad "links" generation
aranega 85dcfd9
CH-100 Add support for aliases and service links
aranega 1ac8226
CH-100 Add first support for auto databases
aranega 56e22b7
CH-100 Add finer grain port handling
aranega 336b558
CH-100 Change way port is exposed to outside world
aranega a004ffb
CH-100 Fix issue with env var quoting
aranega f73108c
CH-100 Add special behavior to produce allvalues.yaml
aranega 2370b20
CH-100 Add actual docker-compose.yaml generation in harness-deployment
aranega 5ed630d
CH-100 Add first dedicated templates for postgres
aranega 111a4f3
CH-100 Add volumes for db
aranega ce4596a
CH-100 Add first template for events
aranega 3868b56
CH-100 Refactor templates for the db
aranega a0476d6
CH-100 Add /etc/hosts generation
aranega bd3e423
CH-100 Add specific varenvs by container
aranega 8851c48
CH-100 Rename some templates
aranega ced7cd2
CH-100 Add first traeffik configuration
aranega f7ebeb0
CH-100 Fix bad indentation in docker-compose.yaml
aranega 8fdcba6
CH-100 Remove exposition of ports
aranega 428a619
CH-100 Add post-process mechanism to generate files
aranega 9d6c8b2
CH-100 Add new templates
aranega ae7cf19
CH-100 Add new templates (not modified yet)
aranega 7acc7f5
CH-100 Add generation of resources files
aranega 571c2ab
CH-100 Add dependency between service and db
aranega 9c8c19e
CH-100 Add secret handling
aranega f6d0c67
CH-100 Remove argo from dependencies
aranega 4fd6dee
CH-100 Change from pyyaml to ruamel
aranega 86c0e4f
CH-100 Remove tmp "events" from deps
aranega a5909ce
CH-100 Add back sc.yaml
aranega 4379252
CH-100 Add first handling of NFS volume
aranega 46ee140
CH-100 Add volumes conditionnally
aranega e135c6a
CH-100 Add first tutorial about docker compose
aranega 0f70146
CH-100 Add first real config for gatekeeper
aranega 6bbef64
CH-100 Add reverse proxy config for gatekeeper
aranega 3b437cf
CH-100 Fix path to generated resources
aranega 1135b99
CH-100 Fix bad GK configuration
aranega b23f03b
CH-100 Adapt gk configuration
aranega 361ca46
CH-100 Fix gk configuration
aranega 74d074e
CH-100 Comment unused "ports"
aranega fec25be
CH-100 Fix issue with service names in dependencies
aranega 0db12d8
CH-100 Fix issue with db-volumes
aranega f8d4c84
CH-100 Fix health check for account services
aranega 4121180
CH-100 Fix issue with dependencies
aranega d81abc2
Merge branch 'develop' of github.com:MetaCell/cloud-harness into feat…
aranega 5bf5532
CH-100 Change tagPolicy for docker-compose target
aranega 319352b
CH-100 Add first information for the docker compose target
aranega 7ec48e1
CH-100 Update documentation
aranega d85389a
Merge branch 'develop' into feature/CH-100-merge
aranega 7edfcc4
#CH-100 improve documentation
filippomc e5d56b7
CH-100 First refactoring
aranega 368725a
CH-100 Clean imports/comments
aranega a4cd813
CH-100 Refactor helm test
aranega 1d63bc4
CH-100 Add tests for docker compose target
aranega b125dfc
CH-100 Add tests for docker compose
aranega 891b237
Merge branch 'feature/CH-100' of github.com:MetaCell/cloud-harness in…
aranega 2c7e264
CH-100 Fix type hinting for Python 3.9
aranega 866dee9
CH-100 Add conditional test for docker compose if "helm" is installed
aranega f226829
CH-100 Update scripts
aranega ac4b863
CH-100 Fix imports of harness-deployment
aranega 9b4dcaa
CH-100 Fix issue with TAG policy in skaffold for docker compose
aranega 10f2c0f
CH-100 Update configuration for db in docker compose
aranega 83d9b8a
CH-100 Add support to link databases with service in docker compose
aranega e5361ca
CH-100 Change location of traefik config files
aranega 4c5d369
CH-100 Add specific option to expose locally a DB
aranega 6cf0a83
Merge branch 'develop' of github.com:MetaCell/cloud-harness into feat…
filippomc fba11c6
Merge branch 'develop' of github.com:MetaCell/cloud-harness into feat…
filippomc 4f5f34c
CH-110 fix dc resources mapping when not numbers
filippomc bbc57d2
chore: remove unneded dependencies
filippomc 2a87ba5
CH-110 small fixes + tests
filippomc 5adab28
CH-110 chore: ignore generated compose file
filippomc c10719e
CH-126 update python client generation
filippomc b344129
CH-110 improve output on error
filippomc 1ddd023
CH-126 improve code generation
filippomc 97ff173
CH-110 improve output on error
filippomc a5477a9
CH-110 fix tests for docker-compose
filippomc e5fb656
Merge branch 'develop' of github.com:MetaCell/cloud-harness into feat…
filippomc 501ad71
Merge branch 'feature/CH-147-lint' of github.com:MetaCell/cloud-harne…
filippomc f69b4dd
Merge branch 'develop' of github.com:MetaCell/cloud-harness into feat…
filippomc 8bdb619
CH-66 change secrets in configmap
filippomc ea20917
Fix merge issues
filippomc 4fe5c4c
Remove wrong dependency
filippomc b9c3979
CH-147 fix linting issue
filippomc e838008
CH-17 fix some dependencies
filippomc 4a04180
CH-17 fix python backend debug
filippomc 5a4700f
Update test CI/CD
filippomc 65bcc2b
CH-17 fix build issue
filippomc 1562e95
CH-17 fix broken API tests
filippomc 0f88e07
Improve testing docs
filippomc 2535a16
Improve cookie auth automations
filippomc 18c47cd
Lint fixes
filippomc 0eae79b
Lint fixes
filippomc 3529200
CH-110 small changes to docker compose generation
filippomc 08b9645
CH-100 refactoring, small fixes
filippomc 7eb8ca3
Linting fix
filippomc 8bb9a1b
Linting fix
filippomc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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
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,5 +1,7 @@ | ||
connexion[swagger-ui]==2.14.2 | ||
swagger-ui-bundle >= 0.0.2 | ||
Flask == 2.2.5 | ||
swagger-ui-bundle==0.0.9 | ||
python_dateutil >= 2.6.0 | ||
setuptools >= 21.0.0 | ||
Flask<3.0.0 | ||
|
||
|
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
97 changes: 97 additions & 0 deletions
97
applications/events/deploy/templates-compose/deployments.yaml
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,97 @@ | ||
{{- define "events.deployment" }} | ||
events: | ||
networks: | ||
- ch | ||
image: solsson/kafka:2.3.0@sha256:b59603a8c0645f792fb54e9571500e975206352a021d6a116b110945ca6c3a1d | ||
ports: | ||
- "9094:9092" | ||
expose: | ||
- 5555 | ||
- 9094 | ||
- 9092 | ||
environment: | ||
- CLASSPATH=/opt/kafka/libs/extensions/* | ||
- KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/etc/kafka/log4j.properties | ||
- JMX_PORT=5555 | ||
command: | ||
- "./bin/kafka-server-start.sh" | ||
- "/etc/kafka/server.properties" | ||
- "--override" | ||
- "default.replication.factor=1" | ||
- "--override" | ||
- "min.insync.replicas=1" | ||
- "--override" | ||
- "offsets.topic.replication.factor=1" | ||
- "--override" | ||
- "offsets.topic.num.partitions=1" | ||
depends_on: | ||
events-kafka-init: | ||
condition: service_completed_successfully | ||
|
||
events-kafka-init: | ||
networks: | ||
- ch | ||
image: solsson/kafka-initutils@sha256:f6d9850c6c3ad5ecc35e717308fddb47daffbde18eb93e98e031128fe8b899ef | ||
command: | ||
- "/bin/bash" | ||
- "/etc/kafka-configmap/init.sh" | ||
environment: | ||
|
||
pzoo: | ||
networks: | ||
- ch | ||
expose: | ||
- 2181 | ||
- 2888 | ||
- 3888 | ||
image: solsson/kafka:2.3.0@sha256:b59603a8c0645f792fb54e9571500e975206352a021d6a116b110945ca6c3a1d | ||
command: | ||
- "./bin/zookeeper-server-start.sh" | ||
- "/etc/kafka/zookeeper.properties" | ||
environment: | ||
- KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/etc/kafka/log4j.properties | ||
depends_on: | ||
events-pzoo-init: | ||
condition: service_completed_successfully | ||
|
||
events-pzoo-init: | ||
networks: | ||
- ch | ||
expose: | ||
image: solsson/kafka-initutils@sha256:f6d9850c6c3ad5ecc35e717308fddb47daffbde18eb93e98e031128fe8b899ef | ||
command: | ||
- "/bin/bash" | ||
- "/etc/kafka-configmap/init.sh" | ||
environment: | ||
- PZOO_REPLICAS=1 | ||
- ZOO_REPLICAS=0 | ||
|
||
zoo: | ||
networks: | ||
- ch | ||
expose: | ||
- 2181 | ||
- 2888 | ||
- 3888 | ||
image: solsson/kafka:2.3.0@sha256:b59603a8c0645f792fb54e9571500e975206352a021d6a116b110945ca6c3a1d | ||
command: | ||
- "./bin/zookeeper-server-start.sh" | ||
- "/etc/kafka/zookeeper.properties" | ||
environment: | ||
- KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/etc/kafka/log4j.properties | ||
depends_on: | ||
events-zoo-init: | ||
condition: service_completed_successfully | ||
|
||
events-zoo-init: | ||
networks: | ||
- ch | ||
image: solsson/kafka-initutils@sha256:f6d9850c6c3ad5ecc35e717308fddb47daffbde18eb93e98e031128fe8b899ef | ||
command: | ||
- "/bin/bash" | ||
- "/etc/kafka-configmap/init.sh" | ||
environment: | ||
- PZOO_REPLICAS=1 | ||
- ZOO_REPLICAS=0 | ||
- ID_OFFSET=2 | ||
{{- end }} |
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
19 changes: 19 additions & 0 deletions
19
applications/nfsserver/deploy/templates-compose/nfsserver-deployment.yaml
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,19 @@ | ||
{{- define "nfsserver.deployment" }} | ||
aranega marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{{- with .apps.nfsserver}} | ||
|
||
{{ .name }}: | ||
image: {{ .harness.deployment.image }} | ||
environment: | ||
# NFS useDNS? {{ .nfs.useDNS }} | ||
{{- if .nfs.useDNS }} | ||
- NFS_SERVER={{ printf "nfs-server.%s.svc.cluster.local" .namespace }} | ||
{{- end }} | ||
- NFS_PATH={{ .nfs.path }} | ||
- PROVISIONER_NAME={{ printf "%s-nfs-provisioner" .namespace }} | ||
|
||
volumes: | ||
- type: volume | ||
source: {{ .nfs.volumeName }} | ||
target: {{ .nfs.path }} | ||
{{- end }} | ||
{{- end }} |
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,11 +1,3 @@ | ||
connexion[swagger-ui] >= 2.6.0; python_version>="3.6" | ||
# 2.3 is the last version that supports python 3.4-3.5 | ||
connexion[swagger-ui] <= 2.3.0; python_version=="3.5" or python_version=="3.4" | ||
# connexion requires werkzeug but connexion < 2.4.0 does not install werkzeug | ||
# we must peg werkzeug versions below to fix connexion | ||
# https://github.com/zalando/connexion/pull/1044 | ||
werkzeug == 0.16.1; python_version=="3.5" or python_version=="3.4" | ||
swagger-ui-bundle >= 0.0.2 | ||
python_dateutil >= 2.6.0 | ||
setuptools >= 21.0.0 | ||
Flask == 2.1.1 | ||
connexion[swagger-ui]==2.14.2 | ||
Flask == 2.2.5 | ||
swagger-ui-bundle==0.0.9 |
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 |
---|---|---|
|
@@ -3,9 +3,7 @@ harness: | |
soft: | ||
- workflows | ||
- events | ||
- accounts | ||
- common | ||
- nfsserver | ||
- jupyterhub | ||
accounts: | ||
roles: | ||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it doesn't work, better remove it