From dcc2ccb70e1523fa8bfb434d183ca695d018d862 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Tue, 25 Apr 2017 18:13:29 -0700 Subject: [PATCH] Remove building from docker-compose and move that to a seperate script. I want to be able to distribute docker-compose.yaml without any dependencies. In order to do that, I should make it pull stable images from hub.docker.com instead of trying to build them locally. This will avoid users running untested code from the github repo instead of using the tested version on docker hub. --- build.sh | 11 +++++++++++ docker-compose.yaml | 4 ---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e0471c6 --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +# Use this script to build docker images. + +DOCKER=docker + + +$DOCKER build -t maxking/mailman-core core/ +$DOCKER build -t maxking/mailman-web web/ diff --git a/docker-compose.yaml b/docker-compose.yaml index 895b495..61a87d7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,8 +2,6 @@ version: '2' services: mailman-core: - build: - context: ./core image: maxking/mailman-core:latest container_name: mailman-core hostname: mailman-core @@ -23,8 +21,6 @@ services: ipv4_address: 172.19.199.2 mailman-web: - build: - context: ./web image: maxking/mailman-web:latest container_name: mailman-web hostname: mailman-web