Skip to content

Commit

Permalink
Integration with Dockerhub.
Browse files Browse the repository at this point in the history
  • Loading branch information
dleclercpro committed Nov 30, 2023
1 parent 93bf457 commit e476598
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
24 changes: 24 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Get the directory containing the script
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Change the current directory to the apps directory
cd "$dir/Apps"

# Define constant image details
user="dleclercpro"
app="eda-playground"
release="v1.1.0"

# Build app images
docker build -t $user/$app-broker:$release -f BrokerApp.Dockerfile .
docker build -t $user/$app-order:$release -f OrderApp.Dockerfile .
docker build -t $user/$app-payment:$release -f PaymentApp.Dockerfile .
docker build -t $user/$app-delivery:$release -f DeliveryApp.Dockerfile .

# Push app images to Dockerhub
docker push $user/$app-broker:$release
docker push $user/$app-order:$release
docker push $user/$app-payment:$release
docker push $user/$app-delivery:$release
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.8'
services:
broker:
container_name: broker-app
image: eda-playground/broker
image: dleclercpro/eda-playground-broker:v1.1.0
build:
context: ./Apps
dockerfile: BrokerApp.Dockerfile
Expand All @@ -16,7 +16,7 @@ services:

order:
container_name: order-app
image: eda-playground/order
image: dleclercpro/eda-playground-order:v1.1.0
build:
context: ./Apps
dockerfile: OrderApp.Dockerfile
Expand All @@ -29,7 +29,7 @@ services:

payment:
container_name: payment-app
image: eda-playground/payment
image: dleclercpro/eda-playground-payment:v1.1.0
build:
context: ./Apps
dockerfile: PaymentApp.Dockerfile
Expand All @@ -42,7 +42,7 @@ services:

delivery:
container_name: delivery-app
image: eda-playground/delivery
image: dleclercpro/eda-playground-delivery:v1.1.0
build:
context: ./Apps
dockerfile: DeliveryApp.Dockerfile
Expand Down

0 comments on commit e476598

Please sign in to comment.