11 lines
552 B
Bash
Executable File
11 lines
552 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
FLIGHTS_INFO_PROD_IMAGE_NAME=flights-information:prod
|
|
FLIGHTS_INFO_TEST_IMAGE_NAME=flights-information:test
|
|
FLIGHTS_INFORMATION=flights-information
|
|
|
|
sudo docker build $FLIGHTS_INFORMATION -f $FLIGHTS_INFORMATION/Dockerfile.prod -t ${FLIGHTS_INFO_PROD_IMAGE_NAME}
|
|
sudo docker build $FLIGHTS_INFORMATION -f $FLIGHTS_INFORMATION/Dockerfile.test --build-arg "BASE_IMAGE=$FLIGHTS_INFO_PROD_IMAGE_NAME" -t ${FLIGHTS_INFO_TEST_IMAGE_NAME}
|
|
sudo docker compose -f flights-domain/docker-compose.yml --env-file $FLIGHTS_INFORMATION/.env.dev up
|
|
|