Sha256: b2945bbf2673959bbe01c68672c7aa660d41fadd3bc5061cfa14d860d4525891
Contents?: true
Size: 1.98 KB
Versions: 3
Compression:
Stored size: 1.98 KB
Contents
# Do not edit this file below this point. Any changes will be overwritten. # # Example `test` command which will start and wait for all services before # running tests: # # test: start wait # bundle exec rspec # yarn test app/javascript # bundle exec rubocop # yarn run eslint app/javascript # .PHONY: start stop migrate docker build push start <%= wait_commands %> ### Container management commands ### COMPOSE:=HOST_UID=$(shell id -u) docker-compose start: @echo "Starting containers..." @${COMPOSE} up -d --scale application=$${INSTANCES:-1} @make wait stop: @echo "Stopping containers..." @${COMPOSE} down @echo "All containers stopped." ### Database utility commands ### migrate: wait-database @echo "Running migrations..." @${COMPOSE} run application bundle exec rake db:migrate @echo "Migrations complete." ### Service healthcheck commands ### wait: <%= wait_commands %> @echo "All Containers ready." wait-application: @bin/rake orchestration:application:wait wait-database: @bin/rake orchestration:database:wait wait-mongo: @bin/rake orchestration:mongo:wait wait-nginx-proxy: @bin/rake orchestration:nginx_proxy:wait wait-rabbitmq: @bin/rake orchestration:rabbitmq:wait ### Docker build commands ### docker: build push build: @echo "Preparing build." @mkdir -p ./docker/.build @git show master:./Gemfile > ./docker/Gemfile @git show master:./Gemfile.lock > ./docker/Gemfile.lock @echo "Building..." @git archive --format tar.gz -o docker/.build/context.tar.gz master @docker build \ --build-arg BUNDLE_GITHUB__COM \ --build-arg BUNDLE_BITBUCKET__ORG \ -t $(shell bin/rake orchestration:docker:username)/<%= app_id %> \ -t $(shell bin/rake orchestration:docker:username)/<%= app_id %>:$(shell git rev-parse --short --verify master) \ ./docker/ @echo "Build complete." push: VERSION := $(shell git rev-parse --short --verify master) push: docker push $(shell bin/rake orchestration:docker:username)/<%= app_id %>:${VERSION}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
orchestration-0.2.5 | lib/orchestration/templates/Makefile.erb |
orchestration-0.2.4 | lib/orchestration/templates/Makefile.erb |
orchestration-0.2.3 | lib/orchestration/templates/Makefile.erb |