|
|
@ -15,34 +15,31 @@ far from being mature, we try here to get only the released part. |
|
|
|
We are talking of: |
|
|
|
[[https://gitlab.adullact.net/pixelhumain/GoGoCarto/-/blob/f3c10f16fc08b533ef44f1325fdb50f87fa73224/docs/installation_docker.md][gogocarto docker install documentation]] |
|
|
|
|
|
|
|
** Intermediate docker image is cached on docker.0k.io if needed |
|
|
|
** Updating |
|
|
|
|
|
|
|
To rebuild a new version, I pushed the huge docker image of |
|
|
|
=gogocarto= container that is required in the process (that contains |
|
|
|
apache and all build/install tools). Note that this should not require |
|
|
|
to be rebuild if anything important changes in the directory =docker/=. |
|
|
|
|
|
|
|
Using: |
|
|
|
This process will ensure to avoid rebuilding the gigantic intermediate image |
|
|
|
needed (with apache and build/install tools). |
|
|
|
|
|
|
|
#+begin_src sh |
|
|
|
docker_tree_hash=$(git rev-parse HEAD:docker) |
|
|
|
docker tag docker_gogocarto docker.0k.io/gogocarto-builder:${docker_tree_hash} |
|
|
|
docker push docker.0k.io/gogocarto-builder:${docker_tree_hash} |
|
|
|
#+end_src |
|
|
|
|
|
|
|
So, if needed, it can be pulled back to avoid the hassle of making it: |
|
|
|
You need to run this from the root of a code checkout of: |
|
|
|
https://gitlab.adullact.net/pixelhumain/GoGoCarto |
|
|
|
|
|
|
|
#+begin_src sh |
|
|
|
|
|
|
|
docker_tree_hash=$(git rev-parse HEAD:docker) |
|
|
|
docker pull docker.0k.io/gogocarto-builder:${docker_tree_hash} && |
|
|
|
docker tag docker.0k.io/gogocarto-builder:${docker_tree_hash} docker_gogocarto |
|
|
|
#+end_src |
|
|
|
## 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} && |
|
|
|
docker push docker.0k.io/gogocarto-builder:${docker_tree_hash} |
|
|
|
else |
|
|
|
docker tag docker.0k.io/gogocarto-builder:${docker_tree_hash} docker_gogocarto |
|
|
|
fi |
|
|
|
|
|
|
|
make up && |
|
|
|
docker-compose -f docker/docker-compose.yml exec gogocarto make init |
|
|
|
|
|
|
|
You still need to do (as of <2020-10-20 Tue>): |
|
|
|
- get the latest source code |
|
|
|
- =make up= to launch de containers with the images |
|
|
|
- =make shell= from the latest git repos |
|
|
|
- =make init= in the container |
|
|
|
#+end_src |
|
|
|
|
|
|
|
** Full release is cached on =docker.0k.io/downloads= |
|
|
|
|
|
|
@ -71,7 +68,7 @@ load-fixtures: ## Create the DB schema, generate DB classes and load fixtures |
|
|
|
This will be done in the =hooks/mongo_database-relation-joined= accordingly. |
|
|
|
|
|
|
|
|
|
|
|
*** create the full data release bundle this is what was made: |
|
|
|
*** create the full data release bundle this is what was made |
|
|
|
|
|
|
|
#+begin_src sh |
|
|
|
## correct bundles links (no idea if it is needed) |
|
|
@ -94,6 +91,7 @@ commit_sha=$(git describe HEAD --tags) |
|
|
|
tar cjv \ |
|
|
|
bin web vendor config src templates translations \ |
|
|
|
--exclude=.git --exclude=.gitignore \ |
|
|
|
--owner=root --group=root \ |
|
|
|
> gogocarto-${commit_sha}.tar.bz2 |
|
|
|
#+end_src |
|
|
|
|
|
|
|