From f11c2d7a4dfb3776898547b99a8f7b5bc6fea94c Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 7 Jul 2016 13:17:48 +0200 Subject: [PATCH] Move init sql to data only container (#616) Update travis config to build new setup Add git sha-1 to ospos version string --- .gitattributes | 1 + .travis.yml | 9 ++++++--- application/config/config.php | 11 +++++++++++ application/config/theme.php | 15 --------------- database/Dockerfile | 6 ++++++ docker-cloud.yml | 6 ++++-- docker-compose.test.yml | 4 ++++ docker-compose.yml | 8 ++++++-- 8 files changed, 38 insertions(+), 22 deletions(-) delete mode 100644 application/config/theme.php create mode 100644 database/Dockerfile diff --git a/.gitattributes b/.gitattributes index 32d68b41c..65fd95ef1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ dist/ merge=ours application/language/**/*.php merge=ours text=auto +application/config/config.php ident diff --git a/.travis.yml b/.travis.yml index 4e8b890ce..49794753f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,12 +13,15 @@ before_install: - curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > docker-compose - chmod +x docker-compose - sudo mv docker-compose /usr/local/bin - - docker-compose -v - - docker -v script: - docker-compose build - docker-compose up -d after_success: - - '[ -n ${DOCKER_USERNAME} ] && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker tag opensourcepos_php jekkos/opensourcepos:$TRAVIS_BRANCH && docker push jekkos/opensourcepos' + - > + '[ -n ${DOCKER_USERNAME} ] && + docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && + docker tag opensourcepos_php jekkos/opensourcepos:$TRAVIS_BRANCH && + docker tag opensourcepos_sqlscript jekkos/opensourcepos:sqlscript && + docker push jekkos/opensourcepos' diff --git a/application/config/config.php b/application/config/config.php index 13142627a..e9f7ae6db 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -12,6 +12,17 @@ defined('BASEPATH') OR exit('No direct script access allowed'); */ $config['application_version'] = '3.0.0'; +/* +|-------------------------------------------------------------------------- +| Commit sha1 +|-------------------------------------------------------------------------- +| +| This is the commit hash for the version you are currently using +| +| +*/ +$config['commit_sha1'] = '$Id$'; + /* |-------------------------------------------------------------------------- | Internal to OSPOS XSS Clean diff --git a/application/config/theme.php b/application/config/theme.php deleted file mode 100644 index 807e85503..000000000 --- a/application/config/theme.php +++ /dev/null @@ -1,15 +0,0 @@ -