SIOS-Technology-Inc / dacrane

"Dacrane" is a Delivery as Code (DaC) tool for deploying cloud infrastructures and applications anywhere.
Apache License 2.0
61 stars 1 forks source link

Multiple types of configuration functions #8

Closed t-ikeda-sti closed 1 year ago

t-ikeda-sti commented 1 year ago

User Story

Developers want to run their applications in the cloud or on local PCs. Multiple configurations are represented as code, and the developer wants to easily switch between which configuration is used.

Acceptance Criteria

The if property switches the resource to be created. (Use the functionality implemented in #7 .)

if: ${{ data.config.service == "docker" }}
kind: resource
provider: docker
parameters: ...
---

if: ${{ data.config.service == "aks" }}
kind: resource
provider: azure-kubernetes-service
parameters: ...

Implement a docker resource provider. The parameters are given as follows.

kind: resource
name: docker
provider: docker
parameters:
  image: sample-api
  tag: ${{ data.argument.tag }}
  port: 3000:3000
  env:
    - name: PORT
      value: 3000

Ability to switch between local Docker and Azure App Services services.

t-ikeda-sti commented 1 year ago

Implemented.