Skip to content

Instantly share code, notes, and snippets.

@pogin503
Last active December 27, 2022 14:55
Show Gist options
  • Save pogin503/ac45b5ad48ad10ecf63e4aee4628ac7c to your computer and use it in GitHub Desktop.
Save pogin503/ac45b5ad48ad10ecf63e4aee4628ac7c to your computer and use it in GitHub Desktop.
awx インストールログ
# AWX 2.10.2のdocker-composeログ
⋊> /V/e/w/a/awx on 5dd0eab806 make docker-compose-build (base) 22:47:07
Unable to import setuptools-scm, attempting to install now...
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
ansible-playbook tools/ansible/dockerfile.yml -e build_dev=True -e receptor_image=quay.io/ansible/receptor:devel
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit
localhost does not match 'all'
PLAY [Render AWX Dockerfile and sources] **********************************************************
TASK [Gathering Facts] ****************************************************************************
ok: [localhost]
TASK [dockerfile : Create _build directory] *******************************************************
changed: [localhost]
TASK [dockerfile : Render supervisor configs] *****************************************************
changed: [localhost] => (item=supervisor.conf)
changed: [localhost] => (item=supervisor_task.conf)
TASK [dockerfile : Render Dockerfile] *************************************************************
changed: [localhost]
PLAY RECAP ****************************************************************************************
localhost : ok=4 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
DOCKER_BUILDKIT=1 docker build -t ghcr.io/ansible/awx_devel:HEAD \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from=ghcr.io/ansible/awx_devel:HEAD .
[+] Building 1021.0s (26/48)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 7.65kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 56B 0.0s
=> [internal] load metadata for quay.io/centos/centos:stream9 3.1s
=> ERROR importing cache manifest from ghcr.io/ansible/awx_devel:HEAD 1.1s
=> FROM quay.io/ansible/receptor:devel 72.0s
=> => resolve quay.io/ansible/receptor:devel 1.4s
=> => sha256:631c38496aeeb1e7333beb57a46317d95351b22ec8a34adf8f5e8a75216f76 4.40kB / 4.40kB 0.0s
=> => sha256:5af5d4bc82b80d453447c5cbfdb3ffa69b5b928600eeb3bf4ceccd21490 58.04MB / 58.04MB 66.0s
=> => sha256:b67e78d693280c2af7ec1ad9d6c0a45186438fa2512367b51c0e23390ff393 1.05kB / 1.05kB 0.0s
=> => sha256:04124f1674ef4c0891ada0ec7df9231eda807e82880953df1c2e67c8541f08 1.57kB / 1.57kB 0.0s
=> => sha256:5b9aaaf49e398a0b8dcc7460748c26ee40e4e675f2cf84233648645c5ad877 9.15kB / 9.15kB 0.7s
=> => sha256:04093ecf5e03ba0e6566bf56efd9268fbb4b4bcd47f7b645a8b2bebd44bd70 3.88kB / 3.88kB 1.6s
=> => sha256:adeb8b88f5dd12e20307f8638eb4fa7fe39e694a751e1e8140f5810b80218832 230B / 230B 1.9s
=> => sha256:5dc62af5610dae7911dd92fd44fc5f227ce1f76675fda4b5d8a6eaf519db0 7.88MB / 7.88MB 10.4s
=> => sha256:0f697a3d261491b0e00a1e05b4a687b5a1211b8e1c017726214df7d9d4e 22.48MB / 22.48MB 43.3s
=> => extracting sha256:5af5d4bc82b80d453447c5cbfdb3ffa69b5b928600eeb3bf4ceccd2149028b83 3.7s
=> => extracting sha256:5b9aaaf49e398a0b8dcc7460748c26ee40e4e675f2cf84233648645c5ad87746 0.0s
=> => extracting sha256:04093ecf5e03ba0e6566bf56efd9268fbb4b4bcd47f7b645a8b2bebd44bd70fe 0.0s
=> => extracting sha256:adeb8b88f5dd12e20307f8638eb4fa7fe39e694a751e1e8140f5810b80218832 0.0s
=> => extracting sha256:5dc62af5610dae7911dd92fd44fc5f227ce1f76675fda4b5d8a6eaf519db0650 0.8s
=> => extracting sha256:0f697a3d261491b0e00a1e05b4a687b5a1211b8e1c017726214df7d9d4e24ecc 0.7s
=> [builder 1/9] FROM quay.io/centos/centos:stream9@sha256:0a7e70a92900160c24857fc2d5d6f85 64.0s
=> => resolve quay.io/centos/centos:stream9@sha256:0a7e70a92900160c24857fc2d5d6f85c0fcc06fd 0.0s
=> => sha256:042d15e2b361fec0506fd8cdaf40c300c03fb51f271cd7490186d55b4341af70 350B / 350B 0.0s
=> => sha256:7dff2699f5ecaa6903559f7ef705625b8b01b94d9ec4f308f416f23f66b2ed 1.16kB / 1.16kB 0.0s
=> => sha256:45ee252af6d41a719272258f5b9c5de270d63fe341621f8e033d8ac8dde 57.97MB / 57.97MB 58.5s
=> => sha256:0a7e70a92900160c24857fc2d5d6f85c0fcc06fda352f65d4fd331427c58f6cc 858B / 858B 0.0s
=> => extracting sha256:45ee252af6d41a719272258f5b9c5de270d63fe341621f8e033d8ac8dde9640b 5.1s
=> [internal] load build context 0.1s
=> => transferring context: 47.57kB 0.1s
=> https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/po 0.0s
=> https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/stable/co 0.0s
=> [stage-1 2/32] RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' && 104.8s
=> [builder 2/9] RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' && 457.7s
=> [stage-1 3/32] RUN pip3 install virtualenv supervisor dumb-init 16.8s
=> [stage-1 4/32] RUN rm -rf /root/.cache && rm -rf /tmp/* 0.3s
=> [stage-1 5/32] RUN dnf -y install crun gdb gtk3 gettext hostname 322.7s
=> [stage-1 6/32] RUN pip3 install black git+https://github.com/coderanger/supervisor-std 15.8s
=> [builder 3/9] RUN pip3 install virtualenv build 10.7s
=> [stage-1 7/32] RUN dnf --enablerepo=baseos-debug -y install python3-debuginfo || : 0.7s
=> [stage-1 8/32] RUN dnf install -y epel-next-release && dnf install -y inotify-tools && 43.5s
=> [builder 4/9] ADD Makefile /tmp/Makefile 0.1s
=> [builder 5/9] RUN mkdir /tmp/requirements 0.4s
=> [builder 6/9] ADD requirements/requirements.txt requirements/requirements_tower_unin 0.0s
=> [builder 7/9] RUN cd /tmp && make requirements_awx 229.7s
=> [builder 8/9] ADD requirements/requirements_dev.txt /tmp/requirements 0.0s
=> [builder 9/9] RUN cd /tmp && make requirements_awx_dev 79.2s
=> [stage-1 9/32] COPY --from=builder /var/lib/awx /var/lib/awx 168.7s
=> ERROR [stage-1 10/32] RUN ln -s /var/lib/awx/venv/awx/bin/awx-manage /usr/bin/awx-manage 0.1s
------
> importing cache manifest from ghcr.io/ansible/awx_devel:HEAD:
------
------
> [stage-1 10/32] RUN ln -s /var/lib/awx/venv/awx/bin/awx-manage /usr/bin/awx-manage:
------
failed to add snapshot xpggxwsl46r84qu4c5t00vr1k to lease: input/output error
make: *** [docker-compose-build] Error 1
# docker-composeモジュールをインストール
# pip install docker-compose
⋊> /V/e/w/a/awx on 5dd0eab806 make docker-compose-build (base) 23:25:32
ansible-playbook tools/ansible/dockerfile.yml -e build_dev=True -e receptor_image=quay.io/ansible/receptor:devel
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit
localhost does not match 'all'
PLAY [Render AWX Dockerfile and sources] **********************************************************
TASK [Gathering Facts] ****************************************************************************
ok: [localhost]
TASK [dockerfile : Create _build directory] *******************************************************
ok: [localhost]
TASK [dockerfile : Render supervisor configs] *****************************************************
ok: [localhost] => (item=supervisor.conf)
ok: [localhost] => (item=supervisor_task.conf)
TASK [dockerfile : Render Dockerfile] *************************************************************
ok: [localhost]
PLAY RECAP ****************************************************************************************
localhost : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
DOCKER_BUILDKIT=1 docker build -t ghcr.io/ansible/awx_devel:HEAD \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from=ghcr.io/ansible/awx_devel:HEAD .
[+] Building 45.4s (29/48)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for quay.io/centos/centos:stream9 0.9s
=> ERROR importing cache manifest from ghcr.io/ansible/awx_devel:HEAD 1.4s
=> [internal] load build context 0.1s
=> => transferring context: 1.31kB 0.0s
=> CACHED https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/st 0.0s
=> CACHED FROM quay.io/ansible/receptor:devel 0.0s
=> => resolve quay.io/ansible/receptor:devel 0.2s
=> CACHED https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/st 0.0s
=> [builder 1/9] FROM quay.io/centos/centos:stream9@sha256:0a7e70a92900160c24857fc2d5d6f85c 0.0s
=> CACHED [stage-1 2/32] RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' 0.0s
=> CACHED [stage-1 3/32] RUN pip3 install virtualenv supervisor dumb-init 0.0s
=> CACHED [stage-1 4/32] RUN rm -rf /root/.cache && rm -rf /tmp/* 0.0s
=> CACHED [stage-1 5/32] RUN dnf -y install crun gdb gtk3 gettext host 0.0s
=> CACHED [stage-1 6/32] RUN pip3 install black git+https://github.com/coderanger/supervis 0.0s
=> CACHED [stage-1 7/32] RUN dnf --enablerepo=baseos-debug -y install python3-debuginfo || 0.0s
=> CACHED [stage-1 8/32] RUN dnf install -y epel-next-release && dnf install -y inotify-to 0.0s
=> CACHED [builder 2/9] RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' & 0.0s
=> CACHED [builder 3/9] RUN pip3 install virtualenv build 0.0s
=> CACHED [builder 4/9] ADD Makefile /tmp/Makefile 0.0s
=> CACHED [builder 5/9] RUN mkdir /tmp/requirements 0.0s
=> CACHED [builder 6/9] ADD requirements/requirements.txt requirements/requirements_tow 0.0s
=> CACHED [builder 7/9] RUN cd /tmp && make requirements_awx 0.0s
=> CACHED [builder 8/9] ADD requirements/requirements_dev.txt /tmp/requirements 0.0s
=> CACHED [builder 9/9] RUN cd /tmp && make requirements_awx_dev 0.0s
=> CACHED [stage-1 9/32] COPY --from=builder /var/lib/awx /var/lib/awx 0.0s
=> [stage-1 10/32] RUN ln -s /var/lib/awx/venv/awx/bin/awx-manage /usr/bin/awx-manage 0.4s
=> [stage-1 11/32] COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/r 38.6s
=> [stage-1 12/32] RUN openssl req -nodes -newkey rsa:2048 -keyout /etc/nginx/nginx.key -ou 1.0s
=> ERROR [stage-1 13/32] RUN dnf install -y podman && rpm --restore shadow-utils 2>/dev/nul 2.7s
------
> importing cache manifest from ghcr.io/ansible/awx_devel:HEAD:
------
------
> [stage-1 13/32] RUN dnf install -y podman && rpm --restore shadow-utils 2>/dev/null:
#27 2.009 Last metadata expiration check: 0:34:37 ago on Tue 27 Dec 2022 01:51:49 PM UTC.
#27 2.364 History database is not writable: SQLite error on "/var/lib/dnf/history.sqlite": Executing an SQL statement failed: attempt to write a readonly database
#27 2.450 History database is not writable: SQLite error on "/var/lib/dnf/history.sqlite": Executing an SQL statement failed: attempt to write a readonly database
#27 2.460 Error: SQLite error on "/var/lib/dnf/history.sqlite": Executing an SQL statement failed: attempt to write a readonly database
------
executor failed running [/bin/sh -c dnf install -y podman && rpm --restore shadow-utils 2>/dev/null]: exit code: 1
make: *** [docker-compose-build] Error 1
# cleanを実行
⋊> /V/e/w/a/awx on 5dd0eab806 make clean (base) 23:26:28
rm -rf node_modules
rm -rf awx/ui/node_modules
rm -rf awx/ui/build
rm -rf awx/ui/src/locales/_build
rm -rf awx/ui/.ui-built
mkdir -p awx/ui/build/static
rm -rf build awx-21.10.2 *.egg-info
rm -rf .tox
find . -type f -regex ".*\.py[co]$" -delete
find . -type d -name "__pycache__" -delete
rm -f awx/awx_test.sqlite3*
rm -rf requirements/vendor
rm -rf awx/projects
rm -rf awxkit/*.egg-info awxkit/.tox awxkit/build/*
rm -rf dist
rm -rf awx/public
rm -rf awx/lib/site-packages
rm -rf awx/job_status
rm -rf awx/job_output
rm -rf reports
rm -rf tmp
rm -rf .i18n_built
mkdir tmp
⋊> /V/e/w/a/awx on 5dd0eab806 make docker-compose-build (base) 23:33:22
ansible-playbook tools/ansible/dockerfile.yml -e build_dev=True -e receptor_image=quay.io/ansible/receptor:devel
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit
localhost does not match 'all'
PLAY [Render AWX Dockerfile and sources] **********************************************************
TASK [Gathering Facts] ****************************************************************************
ok: [localhost]
TASK [dockerfile : Create _build directory] *******************************************************
ok: [localhost]
TASK [dockerfile : Render supervisor configs] *****************************************************
ok: [localhost] => (item=supervisor.conf)
ok: [localhost] => (item=supervisor_task.conf)
TASK [dockerfile : Render Dockerfile] *************************************************************
ok: [localhost]
PLAY RECAP ****************************************************************************************
localhost : ok=4 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
DOCKER_BUILDKIT=1 docker build -t ghcr.io/ansible/awx_devel:HEAD \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from=ghcr.io/ansible/awx_devel:HEAD .
[+] Building 36.3s (50/50) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for quay.io/centos/centos:stream9 1.0s
=> ERROR importing cache manifest from ghcr.io/ansible/awx_devel:HEAD 1.1s
=> CACHED https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/st 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 1.31kB 0.0s
=> CACHED https://raw.githubusercontent.com/containers/libpod/master/contrib/podmanimage/st 0.0s
=> FROM quay.io/ansible/receptor:devel 0.2s
=> => resolve quay.io/ansible/receptor:devel 0.2s
=> [builder 1/9] FROM quay.io/centos/centos:stream9@sha256:0a7e70a92900160c24857fc2d5d6f85c 0.0s
=> CACHED [stage-1 2/32] RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' 0.0s
=> CACHED [stage-1 3/32] RUN pip3 install virtualenv supervisor dumb-init 0.0s
=> CACHED [stage-1 4/32] RUN rm -rf /root/.cache && rm -rf /tmp/* 0.0s
=> CACHED [stage-1 5/32] RUN dnf -y install crun gdb gtk3 gettext host 0.0s
=> CACHED [stage-1 6/32] RUN pip3 install black git+https://github.com/coderanger/supervis 0.0s
=> CACHED [stage-1 7/32] RUN dnf --enablerepo=baseos-debug -y install python3-debuginfo || 0.0s
=> CACHED [stage-1 8/32] RUN dnf install -y epel-next-release && dnf install -y inotify-to 0.0s
=> CACHED [builder 2/9] RUN dnf -y update && dnf install -y 'dnf-command(config-manager)' & 0.0s
=> CACHED [builder 3/9] RUN pip3 install virtualenv build 0.0s
=> CACHED [builder 4/9] ADD Makefile /tmp/Makefile 0.0s
=> CACHED [builder 5/9] RUN mkdir /tmp/requirements 0.0s
=> CACHED [builder 6/9] ADD requirements/requirements.txt requirements/requirements_tow 0.0s
=> CACHED [builder 7/9] RUN cd /tmp && make requirements_awx 0.0s
=> CACHED [builder 8/9] ADD requirements/requirements_dev.txt /tmp/requirements 0.0s
=> CACHED [builder 9/9] RUN cd /tmp && make requirements_awx_dev 0.0s
=> CACHED [stage-1 9/32] COPY --from=builder /var/lib/awx /var/lib/awx 0.0s
=> CACHED [stage-1 10/32] RUN ln -s /var/lib/awx/venv/awx/bin/awx-manage /usr/bin/awx-manag 0.0s
=> CACHED [stage-1 11/32] COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr 0.0s
=> CACHED [stage-1 12/32] RUN openssl req -nodes -newkey rsa:2048 -keyout /etc/nginx/nginx. 0.0s
=> [stage-1 13/32] RUN dnf install -y podman && rpm --restore shadow-utils 2>/dev/null 23.5s
=> [stage-1 14/32] RUN sed -i -e 's|^#mount_program|mount_program|g' -e '/additionalimage.* 0.3s
=> [stage-1 15/32] RUN mkdir -p /etc/containers/registries.conf.d/ && echo "unqualified-sea 0.3s
=> [stage-1 16/32] ADD tools/ansible/roles/dockerfile/files/rsyslog.conf /var/lib/awx/rsysl 0.0s
=> [stage-1 17/32] ADD tools/ansible/roles/dockerfile/files/wait-for-migrations /usr/local/ 0.0s
=> [stage-1 18/32] ADD tools/ansible/roles/dockerfile/files/stop-supervisor /usr/local/bin/ 0.0s
=> [stage-1 19/32] ADD tools/docker-compose/launch_awx.sh /usr/bin/launch_awx.sh 0.0s
=> [stage-1 20/32] ADD tools/docker-compose/nginx.conf /etc/nginx/nginx.conf 0.0s
=> [stage-1 21/32] ADD tools/docker-compose/nginx.vh.default.conf /etc/nginx/conf.d/nginx.v 0.0s
=> [stage-1 22/32] ADD tools/docker-compose/start_tests.sh /start_tests.sh 0.0s
=> [stage-1 23/32] ADD tools/docker-compose/bootstrap_development.sh /usr/bin/bootstrap_dev 0.0s
=> [stage-1 24/32] ADD tools/docker-compose/entrypoint.sh /entrypoint.sh 0.0s
=> [stage-1 25/32] ADD tools/scripts/config-watcher /usr/bin/config-watcher 0.0s
=> [stage-1 26/32] ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/p 0.0s
=> [stage-1 27/32] ADD https://raw.githubusercontent.com/containers/libpod/master/contrib/p 0.0s
=> [stage-1 28/32] ADD tools/docker-compose/awx.egg-link /tmp/awx.egg-link 0.0s
=> [stage-1 29/32] ADD tools/docker-compose/awx-manage /usr/local/bin/awx-manage 0.0s
=> [stage-1 30/32] ADD tools/scripts/awx-python /usr/bin/awx-python 0.0s
=> [stage-1 31/32] RUN for dir in /var/lib/awx /var/lib/awx/rsyslog /var/ 0.3s
=> [stage-1 32/32] RUN for dir in /etc/containers /var/lib/awx/.config/containe 0.4s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:e0b467f6ad3252e58673eee0fba0ac762111435e90bd2ddee710cb192230f6b7 0.0s
=> => naming to ghcr.io/ansible/awx_devel:HEAD 0.0s
=> exporting cache 0.0s
=> => preparing build cache for export 0.0s
------
> importing cache manifest from ghcr.io/ansible/awx_devel:HEAD:
------
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment