From cd19babd6e1ccb600c2c14699c8bba88a591b5a0 Mon Sep 17 00:00:00 2001 From: jekkos Date: Wed, 11 Apr 2018 01:21:00 +0200 Subject: [PATCH] Update Cloud install procedure (#1939) --- .travis.yml. | 35 +++++++++++++++++++++++++++++++++++ INSTALL.md | 5 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .travis.yml. diff --git a/.travis.yml. b/.travis.yml. new file mode 100644 index 000000000..25805dd1d --- /dev/null +++ b/.travis.yml. @@ -0,0 +1,35 @@ +sudo: required +dist: trusty +group: deprecated-2017Q4 +branches: + except: + - weblate +services: + - docker +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 + - date=`date +%Y%m%d%H%M%S` && branch=${TRAVIS_BRANCH} && rev=`git rev-parse --short=6 + HEAD` && sed -i "s/\$1/\$1.$date.$branch.$rev/g" deployment.json +script: + - docker run --rm -v $(pwd):/app composer/composer install + - docker run --rm -v $(pwd):/app -w /app lucor/php7-cli php bin/install.php translations + develop + - docker run --rm -it -v $(pwd):/app -w /app digitallyseamless/nodejs-bower-grunt + sh -c "npm install && bower install && grunt package" + - docker-compose build +env: + - TAG=$(echo ${TRAVIS_BRANCH} | sed s/feature\\///) +after_success: '[ -n ${DOCKER_USERNAME} ] && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" + && docker tag opensourcepos_php "jekkos/opensourcepos:$TAG" && docker tag opensourcepos_sqlscript + jekkos/opensourcepos:sqlscript && docker push "jekkos/opensourcepos:$TAG" && docker + push jekkos/opensourcepos:sqlscript' +deploy: + provider: bintray + file: deployment.json + user: jekkos + on: + all_branches: true + key: ${BINTRAY_API_KEY} diff --git a/INSTALL.md b/INSTALL.md index 4dab34766..a2c7a100c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -60,8 +60,11 @@ A quick option would be to install directly to [Digitalocean](https://m.do.co/c/ Create a DO account first, add a droplet with preconfigured LAMP and follow the instructions for Local Install below. You will be running a provisioned VPS within minutes. -Cloud install using Docker +Cloud install using Docker -------------------------- +This installation is NOT Recommended anymore and will soon be replaced by a one click DO installation procedure. +Existing setups will keep working until the 21th of May but will need to be migrated in time in order to ensure user's safety. + If you want to run a quick demo of ospos or run it permanently in the cloud, then we suggest using Docker cloud together with the DigitalOcean hosting platform. This way all the