2020-02-10 08:00:54 +00:00
|
|
|
sudo: required
|
refactor(frappe-docker): code cleanup and fixes (#63)
* testing replacement for dbench
* fixed perm issue and added docker control
* fixes and tests
fixed travis test, and perm issue
* auto add permissions
* bench setup anything-else should work now
* removed adding site names to host (its pointless)
* moved redis configuration folder into conf/
* added a docker down feature to dbench and changed some of the docs
* hopefully should fix the args issue
* Condensed Dockerfile
Updated to latest node, and uses python-pip, also condensed a lot the Dockerfile.
* Removed extra line
* Removed MAINTAINER in favor of LABEL
* all installs are in one apt command
* Switch bench to dbench, added -s feature of dbench to bench. updated
Docker file with sudo and vim, and setup travis to run with said changes
* dockerfile: clean up (#52)
* Condensed Dockerfile
Updated to latest node, and uses python-pip, also condensed a lot the Dockerfile.
* fixed travis, and cleaned up dbench a little
* Oops...
* oops, but only for travis, this runs fine
* Travis!
* added help to dbench, and updated readme
* changes some of the wording of the help message
* dbench: fix init issues (#55)
./dbench init would lead to 'missing argument: PATH' issue (#54), and could not find Procfile_docker and site-config.
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* bench setup anything-else should work now
* Clean cache to get a smaller image (#57)
Please include this commit to decrease the size of the docker image, the "rm -rf /var/lib/apt/lists/*" it is not usefull if it is not used in the same stage of the apt-get install RUN, similar with pip cache.
References:
- https://linux.die.net/man/8/apt-get
- https://stackoverflow.com/questions/9510474/removing-pips-cache
- https://semaphoreci.com/blog/2016/12/13/lightweight-docker-images-in-5-steps.html
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file;
(b) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
* removed adding site names to host (its pointless)
* moved redis configuration folder into conf/
* added a docker down feature to dbench and changed some of the docs
* Changed the readme significantly
Please enter the commit message for your changes. Lines starting
* changed test.py to avoid naming errors
* moving some things around for less lines
* some more slight name changes
* added a .gitignore
* added the frappe folder again
* added a .dockerignore and fixed the dockerfile up a bit
* Updating travis' docker and compose
This is the commit message #3:
* bringing chown in dbench back
* some refractoring
* implementing codacy sugestions
* moving some things around
* Updating dbench in some areas
* some random changes and fixes
* dockerfile refactoring
* Refractoring, reducing layers
* removing the py script that took too many lines to do one simple thing
* Fixed up the readme
* some refractoring
* moving to debian slim and refractoring
* adding some logging
* Updated travis to ubuntu xenial, should fix the curl issue
* manually building curl, cause we cant use the latest version...
* maybe we dont need it
* changing the url to curl
* trying this instead
* lets just let it pollute the stream
* please pollute!
2019-04-05 19:50:30 +00:00
|
|
|
|
2020-02-10 08:00:54 +00:00
|
|
|
dist: xenial
|
2017-10-02 04:02:03 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
refactor(frappe-docker): code cleanup and fixes (#63)
* testing replacement for dbench
* fixed perm issue and added docker control
* fixes and tests
fixed travis test, and perm issue
* auto add permissions
* bench setup anything-else should work now
* removed adding site names to host (its pointless)
* moved redis configuration folder into conf/
* added a docker down feature to dbench and changed some of the docs
* hopefully should fix the args issue
* Condensed Dockerfile
Updated to latest node, and uses python-pip, also condensed a lot the Dockerfile.
* Removed extra line
* Removed MAINTAINER in favor of LABEL
* all installs are in one apt command
* Switch bench to dbench, added -s feature of dbench to bench. updated
Docker file with sudo and vim, and setup travis to run with said changes
* dockerfile: clean up (#52)
* Condensed Dockerfile
Updated to latest node, and uses python-pip, also condensed a lot the Dockerfile.
* fixed travis, and cleaned up dbench a little
* Oops...
* oops, but only for travis, this runs fine
* Travis!
* added help to dbench, and updated readme
* changes some of the wording of the help message
* dbench: fix init issues (#55)
./dbench init would lead to 'missing argument: PATH' issue (#54), and could not find Procfile_docker and site-config.
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* bench setup anything-else should work now
* Clean cache to get a smaller image (#57)
Please include this commit to decrease the size of the docker image, the "rm -rf /var/lib/apt/lists/*" it is not usefull if it is not used in the same stage of the apt-get install RUN, similar with pip cache.
References:
- https://linux.die.net/man/8/apt-get
- https://stackoverflow.com/questions/9510474/removing-pips-cache
- https://semaphoreci.com/blog/2016/12/13/lightweight-docker-images-in-5-steps.html
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file;
(b) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
* removed adding site names to host (its pointless)
* moved redis configuration folder into conf/
* added a docker down feature to dbench and changed some of the docs
* Changed the readme significantly
Please enter the commit message for your changes. Lines starting
* changed test.py to avoid naming errors
* moving some things around for less lines
* some more slight name changes
* added a .gitignore
* added the frappe folder again
* added a .dockerignore and fixed the dockerfile up a bit
* Updating travis' docker and compose
This is the commit message #3:
* bringing chown in dbench back
* some refractoring
* implementing codacy sugestions
* moving some things around
* Updating dbench in some areas
* some random changes and fixes
* dockerfile refactoring
* Refractoring, reducing layers
* removing the py script that took too many lines to do one simple thing
* Fixed up the readme
* some refractoring
* moving to debian slim and refractoring
* adding some logging
* Updated travis to ubuntu xenial, should fix the curl issue
* manually building curl, cause we cant use the latest version...
* maybe we dont need it
* changing the url to curl
* trying this instead
* lets just let it pollute the stream
* please pollute!
2019-04-05 19:50:30 +00:00
|
|
|
before_install:
|
2020-02-10 08:00:54 +00:00
|
|
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
2020-02-20 17:37:18 +00:00
|
|
|
- sudo apt-get update && sudo apt-get -y install git
|
2020-02-10 08:00:54 +00:00
|
|
|
- if [ $BUILD == "development" ];then
|
|
|
|
sudo apt-get -y install docker-compose;
|
|
|
|
fi
|
refactor(frappe-docker): code cleanup and fixes (#63)
* testing replacement for dbench
* fixed perm issue and added docker control
* fixes and tests
fixed travis test, and perm issue
* auto add permissions
* bench setup anything-else should work now
* removed adding site names to host (its pointless)
* moved redis configuration folder into conf/
* added a docker down feature to dbench and changed some of the docs
* hopefully should fix the args issue
* Condensed Dockerfile
Updated to latest node, and uses python-pip, also condensed a lot the Dockerfile.
* Removed extra line
* Removed MAINTAINER in favor of LABEL
* all installs are in one apt command
* Switch bench to dbench, added -s feature of dbench to bench. updated
Docker file with sudo and vim, and setup travis to run with said changes
* dockerfile: clean up (#52)
* Condensed Dockerfile
Updated to latest node, and uses python-pip, also condensed a lot the Dockerfile.
* fixed travis, and cleaned up dbench a little
* Oops...
* oops, but only for travis, this runs fine
* Travis!
* added help to dbench, and updated readme
* changes some of the wording of the help message
* dbench: fix init issues (#55)
./dbench init would lead to 'missing argument: PATH' issue (#54), and could not find Procfile_docker and site-config.
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* bench setup anything-else should work now
* Clean cache to get a smaller image (#57)
Please include this commit to decrease the size of the docker image, the "rm -rf /var/lib/apt/lists/*" it is not usefull if it is not used in the same stage of the apt-get install RUN, similar with pip cache.
References:
- https://linux.die.net/man/8/apt-get
- https://stackoverflow.com/questions/9510474/removing-pips-cache
- https://semaphoreci.com/blog/2016/12/13/lightweight-docker-images-in-5-steps.html
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file;
(b) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
* removed adding site names to host (its pointless)
* moved redis configuration folder into conf/
* added a docker down feature to dbench and changed some of the docs
* Changed the readme significantly
Please enter the commit message for your changes. Lines starting
* changed test.py to avoid naming errors
* moving some things around for less lines
* some more slight name changes
* added a .gitignore
* added the frappe folder again
* added a .dockerignore and fixed the dockerfile up a bit
* Updating travis' docker and compose
This is the commit message #3:
* bringing chown in dbench back
* some refractoring
* implementing codacy sugestions
* moving some things around
* Updating dbench in some areas
* some random changes and fixes
* dockerfile refactoring
* Refractoring, reducing layers
* removing the py script that took too many lines to do one simple thing
* Fixed up the readme
* some refractoring
* moving to debian slim and refractoring
* adding some logging
* Updated travis to ubuntu xenial, should fix the curl issue
* manually building curl, cause we cant use the latest version...
* maybe we dont need it
* changing the url to curl
* trying this instead
* lets just let it pollute the stream
* please pollute!
2019-04-05 19:50:30 +00:00
|
|
|
|
2017-10-02 04:02:03 +00:00
|
|
|
install:
|
2020-02-10 08:00:54 +00:00
|
|
|
- if [ $BUILD == "development" ];then
|
|
|
|
chmod ugo+x ./dbench;
|
|
|
|
chmod ugo+x ./test.sh;
|
|
|
|
./dbench setup docker;
|
|
|
|
./dbench init frappe-bench;
|
|
|
|
./dbench new-site site1.local;
|
|
|
|
./dbench setup hosts;
|
|
|
|
fi
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- docker --version
|
2017-10-02 04:02:03 +00:00
|
|
|
|
2020-02-10 08:00:54 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2020-02-17 15:05:50 +00:00
|
|
|
- name: "Test Frappe / ERPNext development"
|
2020-02-10 08:00:54 +00:00
|
|
|
env: BUILD=development
|
|
|
|
script:
|
|
|
|
- ./test.sh
|
|
|
|
- ./dbench setup docker stop
|
2020-02-20 17:37:18 +00:00
|
|
|
- name: "Build Frappe python environment (edge)"
|
2020-02-10 08:00:54 +00:00
|
|
|
script:
|
2020-02-20 12:31:23 +00:00
|
|
|
- docker build -t frappe-worker -f build/frappe-worker/Dockerfile .
|
2020-02-17 15:05:50 +00:00
|
|
|
- docker tag frappe-worker frappe/frappe-worker:edge
|
|
|
|
- docker push frappe/frappe-worker:edge
|
2020-02-20 17:37:18 +00:00
|
|
|
- name: "Build Frappe nginx + static assets (edge)"
|
2020-02-17 15:05:50 +00:00
|
|
|
script:
|
2020-02-20 12:31:23 +00:00
|
|
|
- docker build -t frappe-assets -f build/frappe-assets/Dockerfile .
|
2020-02-17 15:05:50 +00:00
|
|
|
- docker tag frappe-assets frappe/frappe-assets:edge
|
|
|
|
- docker push frappe/frappe-assets:edge
|
2020-02-20 17:37:18 +00:00
|
|
|
- name: "Build ERPNext python environment (edge)"
|
2020-02-17 15:05:50 +00:00
|
|
|
script:
|
2020-02-20 12:31:23 +00:00
|
|
|
- docker build -t erpnext-worker -f build/erpnext-worker/Dockerfile .
|
2020-02-17 15:05:50 +00:00
|
|
|
- docker tag erpnext-worker frappe/erpnext-worker:edge
|
|
|
|
- docker push frappe/erpnext-worker:edge
|
2020-02-20 17:37:18 +00:00
|
|
|
- name: "Build ERPNext nginx + static assets (edge)"
|
2020-02-10 08:00:54 +00:00
|
|
|
script:
|
2020-02-20 12:31:23 +00:00
|
|
|
- docker build -t erpnext-assets -f build/erpnext-assets/Dockerfile .
|
2020-02-10 08:00:54 +00:00
|
|
|
- docker tag erpnext-assets frappe/erpnext-assets:edge
|
|
|
|
- docker push frappe/erpnext-assets:edge
|
2020-02-20 17:37:18 +00:00
|
|
|
- name: "Build Frappe socketio service (edge)"
|
2020-02-10 08:00:54 +00:00
|
|
|
script:
|
2020-02-20 12:31:23 +00:00
|
|
|
- docker build -t frappe-socketio -f build/frappe-socketio/Dockerfile .
|
2020-02-10 08:00:54 +00:00
|
|
|
- docker tag frappe-socketio frappe/frappe-socketio:edge
|
|
|
|
- docker push frappe/frappe-socketio:edge
|
2020-02-20 17:37:18 +00:00
|
|
|
- name: "Build Frappe python environment (v12)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/frappe --branch version-12
|
|
|
|
- cd frappe
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v12*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t frappe-worker:$VERSION -f build/frappe-worker/Dockerfile .
|
|
|
|
- docker tag frappe-worker:$VERSION frappe/frappe-worker:v12
|
|
|
|
- docker tag frappe-worker:$VERSION frappe/frappe-worker:$VERSION
|
|
|
|
- docker push frappe/frappe-worker:$VERSION
|
|
|
|
- name: "Build Frappe nginx + static assets (v12)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/frappe --branch version-12
|
|
|
|
- cd frappe
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v12*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t frappe-assets:$VERSION -f build/frappe-assets/Dockerfile .
|
|
|
|
- docker tag frappe-assets:$VERSION frappe/frappe-assets:v12
|
|
|
|
- docker push frappe/frappe-assets:$VERSION
|
|
|
|
- name: "Build ERPNext python environment (v12)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/erpnext --branch version-12
|
|
|
|
- cd erpnext
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v12*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t erpnext-worker:$VERSION -f build/erpnext-worker/Dockerfile .
|
|
|
|
- docker tag erpnext-worker:$VERSION frappe/erpnext-worker:v12
|
|
|
|
- docker push frappe/erpnext-worker:$VERSION
|
|
|
|
- name: "Build ERPNext nginx + static assets (v12)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/erpnext --branch version-12
|
|
|
|
- cd erpnext
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v12*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t erpnext-assets:$VERSION -f build/erpnext-assets/Dockerfile .
|
|
|
|
- docker tag erpnext-assets:$VERSION frappe/erpnext-assets:v12
|
|
|
|
- docker push frappe/erpnext-assets:$VERSION
|
|
|
|
- name: "Build Frappe socketio service (v12)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/frappe --branch version-12
|
|
|
|
- cd frappe
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v12*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t frappe-socketio:$VERSION -f build/frappe-socketio/Dockerfile .
|
|
|
|
- docker tag frappe-socketio:$VERSION frappe/frappe-socketio:v12
|
|
|
|
- docker push frappe/frappe-socketio:$VERSION
|
|
|
|
- name: "Build Frappe python environment (v11)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/frappe --branch version-11
|
|
|
|
- cd frappe
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v11*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t frappe-worker:$VERSION -f build/frappe-worker/Dockerfile .
|
|
|
|
- docker tag frappe-worker:$VERSION frappe/frappe-worker:v11
|
|
|
|
- docker push frappe/frappe-worker:$VERSION
|
|
|
|
- name: "Build Frappe nginx + static assets (v11)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/frappe --branch version-11
|
|
|
|
- cd frappe
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v11*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t frappe-assets:$VERSION -f build/frappe-assets/Dockerfile .
|
|
|
|
- docker tag frappe-assets:$VERSION frappe/frappe-assets:v11
|
|
|
|
- docker push frappe/frappe-assets:$VERSION
|
|
|
|
- name: "Build ERPNext python environment (v11)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/erpnext --branch version-11
|
|
|
|
- cd erpnext
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v11*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t erpnext-worker:$VERSION -f build/erpnext-worker/Dockerfile .
|
|
|
|
- docker tag erpnext-worker:$VERSION frappe/erpnext-worker:v11
|
|
|
|
- docker push frappe/erpnext-worker:$VERSION
|
|
|
|
- name: "Build ERPNext nginx + static assets (v11)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/erpnext --branch version-11
|
|
|
|
- cd erpnext
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v11*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t erpnext-assets:$VERSION -f build/erpnext-assets/Dockerfile .
|
|
|
|
- docker tag erpnext-assets:$VERSION frappe/erpnext-assets:v11
|
|
|
|
- docker push frappe/erpnext-assets:$VERSION
|
|
|
|
- name: "Build Frappe socketio service (v11)"
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/frappe/frappe --branch version-11
|
|
|
|
- cd frappe
|
|
|
|
- git fetch --tags
|
|
|
|
- export VERSION=$(git tag --list --sort=-version:refname "v11*" | sed -n 1p | sed -e 's#.*@\(\)#\1#')
|
|
|
|
- cd ..
|
|
|
|
- docker build -t frappe-socketio:$VERSION -f build/frappe-socketio/Dockerfile .
|
|
|
|
- docker tag frappe-socketio:$VERSION frappe/frappe-socketio:v11
|
|
|
|
- docker push frappe/frappe-socketio:$VERSION
|