|
|
@ -27,16 +27,18 @@ https://gitlab.adullact.net/pixelhumain/GoGoCarto |
|
|
|
docker_tree_hash=$(git rev-parse HEAD:docker) |
|
|
|
## Intermediate docker image is cached on docker.0k.io if needed |
|
|
|
if ! docker pull docker.0k.io/gogocarto-builder:${docker_tree_hash}; then |
|
|
|
make build && |
|
|
|
docker tag docker_gogocarto docker.0k.io/gogocarto-builder:${docker_tree_hash} && |
|
|
|
make docker-build && |
|
|
|
docker tag gogocarto_gogocarto:latest docker.0k.io/gogocarto-builder:${docker_tree_hash} && |
|
|
|
docker push docker.0k.io/gogocarto-builder:${docker_tree_hash} |
|
|
|
else |
|
|
|
docker tag docker.0k.io/gogocarto-builder:${docker_tree_hash} docker_gogocarto |
|
|
|
docker tag docker.0k.io/gogocarto-builder:${docker_tree_hash} gogocarto_gogocarto:latest |
|
|
|
fi |
|
|
|
make up && |
|
|
|
docker-compose -f docker/docker-compose.yml exec gogocarto make init |
|
|
|
docker-compose exec gogocarto make init |
|
|
|
#+end_src |
|
|
|
|
|
|
|
Last =make init= is building the actual code to be served. |
|
|
|
|
|
|
|
** Full release is cached on =docker.0k.io/downloads= |
|
|
|
|
|
|
|
This is the content of the source tree, once populated by =make init=. |
|
|
@ -80,13 +82,25 @@ sed -ri "s/^(<\?php)/\1\n\ini_set('memory.limit', '1024M');/" \ |
|
|
|
web/index.php bin/console |
|
|
|
sed -ri "s%dirname\(__DIR__\)\.'%'/opt/apps/gogocarto%g" \ |
|
|
|
web/index.php |
|
|
|
sed -ri "s/gogocarto_default/'%env(MONGODB_DATABASE)%_default'/g" \ |
|
|
|
sed -ri "s/\"use_as_saas=%env\(resolve:USE_AS_SAAS\)%\/%env\(resolve:DATABASE_NAME\)%\"/'%env(resolve:DATABASE_NAME)%'/g" \ |
|
|
|
config/packages/doctrine_mongodb.yaml |
|
|
|
|
|
|
|
## Add missing tags in git |
|
|
|
git log --format="%H" -- config/parameters.yaml | |
|
|
|
while read h; do |
|
|
|
printf "%s\t%s\n" "$h" "$(git show $h:config/parameters.yaml | |
|
|
|
grep version | |
|
|
|
cut -f 2 -d ":" | |
|
|
|
xargs echo)" |
|
|
|
done | uniq -f 1 | |
|
|
|
while read a b; do |
|
|
|
git tag "$b" "$a" 2>/dev/null |
|
|
|
done |
|
|
|
commit_sha=$(git describe HEAD --tags) |
|
|
|
tar cjv \ |
|
|
|
bin web vendor config src templates translations \ |
|
|
|
--exclude=.git --exclude=.gitignore \ |
|
|
|
--exclude=.git --exclude=.gitignore --exclude=.github \ |
|
|
|
--owner=root --group=root \ |
|
|
|
bin web vendor config src templates translations \ |
|
|
|
> gogocarto-${commit_sha}.tar.bz2 |
|
|
|
#+end_src |
|
|
|
|
|
|
|