Skip to content

Commit

Permalink
added more examples for the docker app
Browse files Browse the repository at this point in the history
  • Loading branch information
gvalmon committed Apr 13, 2024
1 parent 5b474bf commit df0cabf
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions example/services/docker_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
.define_service(:docker_app)
.images(:ruby_app)
.deployer_strategy(:docker)
.attributes(
deployer: {
detached: false,
image_name: :ruby_app,
container_name: "test_docker_app",
delete_if_exists: true,
env_file_names: [:test]
.attributes do
artifact_store = KuberKit::Core::Artifacts::ArtifactStore.new
artifact = artifact_store.get(:kuber_kit_repo)
root_path = artifact.cloned_path

{
deployer: {
detached: false,
container_name: "test_docker_app",
image_name: :ruby_app,
networks: ["test_network"],
volumes: ["#{root_path}:/app"],
delete_if_exists: true
}
}
)
end

0 comments on commit df0cabf

Please sign in to comment.