fefe
fefe

Reputation: 9055

Execute some bash script before docker-compose build triggered by command

Is there a way before building of docker containers with docker compose to execute a bash script?

something like

version: "3"
before_script: //execute my local script 
services:
  database: ....

Upvotes: 28

Views: 14920

Answers (1)

Michael Barany
Michael Barany

Reputation: 1669

No there is not.

you can make a custom bash build script that executes your local script before starting the containers

Upvotes: 23

Related Questions