diff --git a/src/docs/dev/release.adoc b/src/docs/dev/release.adoc index 3d0d715..2ace966 100644 --- a/src/docs/dev/release.adoc +++ b/src/docs/dev/release.adoc @@ -40,7 +40,16 @@ Login into the link:https://quay.io/[Quay.io] container registry. buildah login quay.io ---- -Set the disered tag number. +=== Using Ansible + +[source,bash] +---- +ansible-playbook src/scripts/build/tag-images.yaml -e tag_number="0.0.5" +---- + +=== Using the command line + +Set the desired tag number. [source,bash] ---- diff --git a/src/main/core/Dockerfile b/src/main/core/Dockerfile index 48b219b..86a16f4 100644 --- a/src/main/core/Dockerfile +++ b/src/main/core/Dockerfile @@ -16,6 +16,7 @@ ARG GLPI_FILES_DIR=/var/lib/glpi ARG GLPI_LOG_DIR=/var/log/glpi ARG HTTP_WWW=/var/www/html ARG GLPI_WWW=${HTTP_WWW}/glpi +ARG GLPI_MARKETPLACE_DIR=${GLPI_WWW}/marketplace ARG LOCAL_INSTALLATION_FOLDER=src/main/core RUN mkdir ${GLPI_CONFIG_DIR} ${GLPI_OPT_DIR} ${GLPI_FILES_DIR} ${GLPI_LOG_DIR} @@ -65,6 +66,7 @@ RUN mkdir ${GLPI_FILES_DIR}/_templates \ # && chmod -R 755 ${GLPI_WWW}/*.php VOLUME $GLPI_FILES_DIR +VOLUME $GLPI_MARKETPLACE_DIR VOLUME $GLPI_CONFIG_DIR VOLUME $GLPI_LOG_DIR diff --git a/src/main/core/etc/glpi/local_define.php b/src/main/core/etc/glpi/local_define.php deleted file mode 100644 index 826afb8..0000000 --- a/src/main/core/etc/glpi/local_define.php +++ /dev/null @@ -1,16 +0,0 @@ - /etc/glpi/local_define.php - /etc/glpi/local_define.php +# 0)" + msg: + - "Please specify the tag (tag_number) to apply to the image" tasks: - - name: "Build init image" + - name: "Tag images" ansible.builtin.shell: | - buildah bud -t {{ image_prefix }}_init -f src/main/init/Dockerfile - args: - chdir: "{{ chdir_ref }}" - - - name: "Build web image" - ansible.builtin.shell: | - buildah bud -t {{ image_prefix }}_web -f src/main/web/Dockerfile - args: - chdir: "{{ chdir_ref }}" + buildah push localhost/trikorasolns_glpi_{{ image_to_tag }}:latest docker://quay.io/trikorasolns/glpi-container/glpi-container-{{ image_to_tag }}:{{ tag_number }} + buildah push localhost/trikorasolns_glpi_{{ image_to_tag }}:latest docker://quay.io/trikorasolns/glpi-container/glpi-container-{{ image_to_tag }}:latest + loop: + - core + - init + - web + - cron + loop_control: + loop_var: image_to_tag - # - name: "Build cron image" - # ansible.builtin.shell: | - # buildah bud -t {{ image_prefix }}_init -f src/main/init/Dockerfile - # buildah bud -t {{ image_prefix }}_web -f src/main/web/Dockerfile - # args: - # chdir: "{{ chdir_ref }}" ... diff --git a/src/scripts/build/defaults/main.yaml b/src/scripts/build/vars/main.yaml similarity index 100% rename from src/scripts/build/defaults/main.yaml rename to src/scripts/build/vars/main.yaml