[IMP]GOLEM service with master handling

This commit is contained in:
Fabien Bourgeois 2016-10-17 19:02:39 +02:00
parent 476e95887e
commit 8839906325
4 changed files with 25 additions and 3 deletions

View File

@ -0,0 +1,13 @@
FROM odoo:8.0
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
WORKDIR /opt/odoo/extra-addons
RUN git clone --depth 1 -b 8.0 https://github.com/OCA/community-data-files \
&& git clone --depth 1 -b 8.0 https://github.com/OCA/l10n-france \
&& git clone --depth 1 -b 8.0 https://github.com/OCA/partner-contact \
&& git clone --depth 1 -b 8.0 https://github.com/OCA/vertical-association
WORKDIR /opt/odoo/custom-addons
ADD code/yaltik.tar.gz yaltik/
ADD code/golemmaster.tar.gz golem/
WORKDIR /opt/odoo

View File

@ -1,8 +1,16 @@
version: '2'
services:
odoo:
golem:
build: .
image: golem:base
extends:
file: ../base.yml
service: odoo
golemmaster:
build:
context: .
dockerfile: Dockerfile.master
image: golem:master
extends:
file: ../base.yml
service: odoo

View File

@ -1,7 +1,8 @@
#!/bin/bash
CODE_PATH="/home/fabien/bak/code"
LOCAL_PATH="$CODE_PATH/linux/dockerfiles/images/odoo/golem/code"
LOCAL_PATH="$CODE_PATH/linux/docker/images/odoo/golem/code"
cd $CODE_PATH/odoo/yaltik/ && git archive --format=tar.gz master \
> $LOCAL_PATH/yaltik.tar.gz &&
cd $CODE_PATH/odoo/golem && git archive --format=tar.gz stable \
> $LOCAL_PATH/golem.tar.gz
> $LOCAL_PATH/golem.tar.gz &&
git archive --format=tar.gz master > $LOCAL_PATH/golemmaster.tar.gz

Binary file not shown.