Skip to content

Commit

Permalink
add logging to propper debug
Browse files Browse the repository at this point in the history
Signed-off-by: mvaras <[email protected]>
  • Loading branch information
mvaras committed Aug 2, 2024
1 parent 97d02eb commit 5a5f5ae
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion upstream/local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
- always
when: run_upstream|bool

- name: "Setting basic task variables"
- name: "Setting basic task variables (!)"
set_fact:
opm_cache_host_bug_line: 'RUN \["/bin/opm", "serve", "/configs", "--cache-dir=/tmp/cache", "--cache-only"\]'
dc_changes_allowed:
Expand Down
22 changes: 20 additions & 2 deletions upstream/roles/build_app_registry/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,26 @@

- name: "Building and pushing app registry"
block:
- name: "Build app registry image '{{ app_registry_image }}' using '{{ app_registry_build_file }}'"
shell: "{{ container_tool }} build --no-cache -t {{ app_registry_image }} -f {{ app_registry_build_dir }}/{{ app_registry_build_file }} {{ bundle_export_dir_app_registry | dirname }}"
- name: "Build app registry image '{{ app_registry_image }}' using '{{ app_registry_build_file }}' (!)"
shell: |
podman system reset -f
podman info
ls -la /var/tmp
sudo du -h /var/tmp
sudo df -h
# df -h
# ls -la /
# podman system df
# export TMPDIR=/mnt/tmp
# sudo mkdir -p "${TMPDIR}"
# sudo chmod 1777 "${TMPDIR}"
# sudo mkdir -p /mnt/storage
# sudo chmod 1777 /mnt/storage
# sudo rm -f /usr/share/containers/storage.conf
# printf '[storage]\ngraphroot = "/mnt/storage"\ndriver = "overlay"\nrunroot = "/mnt/storage"\n' > /usr/share/containers/storage.conf
# cat /usr/share/containers/storage.conf
"{{ container_tool }} build --log-level=debug -t {{ app_registry_image }} -f {{ app_registry_build_dir }}/{{ app_registry_build_file }} {{ bundle_export_dir_app_registry | dirname }}"
- name: "Push app registry image '{{ app_registry_image }}'"
shell: "{{ container_tool }} push {{ container_push_extra }} {{ app_registry_image }}"
Expand Down

0 comments on commit 5a5f5ae

Please sign in to comment.