Sha256: 5e65a9614a57abb87e1241c62c130c87c2702876667efacf1d7d4d1b5368bb3f
Contents?: true
Size: 804 Bytes
Versions: 1
Compression:
Stored size: 804 Bytes
Contents
# frozen_string_literal: true module Neptuno module Docker # Build docker container for Neptuno project class Up < Neptuno::CLI::Base desc "Docker: bring up docker containers for current project" option :all, type: :boolean, default: false, desc: "Run on all services" option :wait, type: :boolean, default: true, desc: "Wait for services to be healthy" argument :services, type: :array, required: false, desc: "Optional list of services" def call(services: [], **options) command_services_to("come up", all: options.fetch(:all), services_as_args: services) do |services, _project| make_service_files(services) system("cd #{neptuno_path} && docker compose up -d --wait #{services.join(" ")}") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neptuno-1.5.0 | lib/neptuno/docker/up.rb |