Skip to content

Commit

Permalink
add docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoujols committed Sep 15, 2024
1 parent 84f5a4c commit 43f2da9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions castor.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,16 @@ function install(): void
function doc_server_start(): void
{
run('source venv/bin/activate && mkdocs serve');
}

#[AsTask(name: 'docker:build', description: 'Démarrage du serveur de documentation')]
function docker_build(): void
{
run('docker compose build --no-cache && docker tag mock-veliko-api-app bfoujols/mock-veliko-api:latest && docker run -p 9042:80 bfoujols/mock-veliko-api:latest');
}

#[AsTask(name: 'docker:push', description: 'Démarrage du serveur de documentation')]
function docker_push(): void
{
run('docker tag mock-veliko-api-app bfoujols/mock-veliko-api:latest && docker push bfoujols/mock-veliko-api:latest');
}

0 comments on commit 43f2da9

Please sign in to comment.