Skip to content

Commit

Permalink
Merge pull request #92 from spryker/feature/cronicle
Browse files Browse the repository at this point in the history
[DRAFT] Cronicle
  • Loading branch information
stanislavrussu authored Aug 12, 2021
2 parents 6ed2cdf + 9a3ad79 commit 1399320
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,9 @@ Vagrant.configure(2) do |config|
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
vb.customize(["modifyvm", :id, "--memory", VM_MEMORY, "--cpus", VM_CPUS, "--cpuexecutioncap", "75", "--audio", "none"])
end

config.vm.provision "shell", inline: "rm -f /etc/profile.d/cronicle_env_variables.sh", run: "always"
config.vm.provision "file", source: "cronicle/cronicle_env_variables.sh", destination: "/tmp/cronicle_env_variables.sh", run: "always"
config.vm.provision "shell", inline: "mv /tmp/cronicle_env_variables.sh /etc/profile.d/cronicle_env_variables.sh", run: "always"
config.vm.provision "file", source: "cronicle/cronicle_setup.sh", destination: "/data/shop/development/current/bin/cronicle_setup.sh", run: "always"
end
12 changes: 12 additions & 0 deletions cronicle/cronicle_env_variables.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

export SPRYKER_CRONICLE_BASE_PATH=/data/shop/development/current
export SPRYKER_PROJECT_ROOT=/data/shop/development/current
export SPRYKER_ENABLED_SCHEDULERS="{\"cronicle\":{\"base_url\":\"http:\\/\\/localhost:3012\",\"api_key\":\"secure-string\"}}"
export SPRYKER_ENABLED_SCHEDULER_STORES="[\"DE\",\"AT\",\"US\"]"
export SPRYKER_STORE_SPECIFIC="{\"DE\":{\"APPLICATION_STORE\":\"DE\",\"SPRYKER_SEARCH_NAMESPACE\":\"de_search\",\"SPRYKER_KEY_VALUE_STORE_NAMESPACE\":1,\"SPRYKER_BROKER_NAMESPACE\":\"DE_development_zed\",\"SPRYKER_SESSION_BE_NAMESPACE\":2},\"AT\":{\"APPLICATION_STORE\":\"AT\",\"SPRYKER_SEARCH_NAMESPACE\":\"at_search\",\"SPRYKER_KEY_VALUE_STORE_NAMESPACE\":1,\"SPRYKER_BROKER_NAMESPACE\":\"AT_development_zed\",\"SPRYKER_SESSION_BE_NAMESPACE\":2},\"US\":{\"APPLICATION_STORE\":\"US\",\"SPRYKER_SEARCH_NAMESPACE\":\"us_search\",\"SPRYKER_KEY_VALUE_STORE_NAMESPACE\":1,\"SPRYKER_BROKER_NAMESPACE\":\"DE_development_zed\",\"SPRYKER_SESSION_BE_NAMESPACE\":2}}"
export SPRYKER_CURRENT_SCHEDULER="cronicle"
export SPRYKER_SCHEDULER_API_KEY="secure-string"
export SPRYKER_SCHEDULER_ADMIN_USERNAME="spryker"
export SPRYKER_SCHEDULER_ADMIN_PASSWORD="secret"
export SPRYKER_SCHEDULER_ADMIN_EMAIL="[email protected]"
7 changes: 7 additions & 0 deletions cronicle/cronicle_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

cd ${SPRYKER_CRONICLE_BASE_PATH}/cronicle
node bin/build.js dist
./bin/control.sh setup
node bin/hook.js before-start
./bin/control.sh start

0 comments on commit 1399320

Please sign in to comment.