Skip to content

Instantly share code, notes, and snippets.

@sergeycherepanov
Last active April 27, 2025 11:33
Show Gist options
  • Save sergeycherepanov/45067fba1120fdd68e4fd9097c4b981b to your computer and use it in GitHub Desktop.
Save sergeycherepanov/45067fba1120fdd68e4fd9097c4b981b to your computer and use it in GitHub Desktop.
coder-orocommerce
# .coder.yaml
# This is a Coder configuration file. It tells Coder how to create a workspace
# for this repository. You can use variables like {{org}}, {{repo}}, and {{ref}}
# to dynamically generate values.
#
# This configuration works well with Coder's git-clone module. To use it, you
# can add the following to your template:
#
# data "coder_parameter" "a660_custom_install" {
# type = "string"
# name = "Install Script"
# description = "The git repository URL to be cloned."
# default = "git clone https://github.com/{{org}}/{{repo}}/tree/{{ref}} . && nvm install && composer install --no-interaction && bin/console --env=prod --timeout=1800 oro:install --language=en --formatting-code=en_US --organization-name='Acme Inc.' --user-name=admin [email protected] --user-firstname=John --user-lastname=Doe --user-password='$ecretPassw0rd' --application-url=$ORO_BASE_URL --sample-data=y && bin/console --env=dev cache:cl"
# mutable = true
#}
#
# module "git-clone" {
# source = "registry.coder.com/modules/git-clone/coder"
# version = "1.0.12"
# agent_id = <your-agent-id>
# url = data.coder_parameter.git_url.value
# }
# Replace with your Coder deployment URL
host: https://cloudspace.sh
# Specify the Coder template for this repository
template: htz-pct-orocommerce
# Define a name for the new workspace using variables such as {{org}}, {{repo}},
# and {{ref}} to dynamically generate values. This name is crucial as it is used
# to identify and potentially reuse an existing workspace within Coder.
name: {{repo}}-{{ref}}
# Uncomment and use 'parameters' to override template defaults
parameters:
- name: "Install Script"
value: "git clone https://github.com/{{org}}/{{repo}}/tree/{{ref}} . && nvm install && composer install --no-interaction && bin/console --env=prod --timeout=1800 oro:install --language=en --formatting-code=en_US --organization-name='Acme Inc.' --user-name=admin [email protected] --user-firstname=John --user-lastname=Doe --user-password='$ecretPassw0rd' --application-url=$ORO_BASE_URL --sample-data=y && bin/console --env=dev cache:cl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment