chaoss / augur

Python library and web service for Open Source Software Health and Sustainability metrics & data collection. You can find our documentation and new contributor information easily here: https://oss-augur.readthedocs.io/en/main/ and learn more about Augur at our website https://augurlabs.io
https://oss-augur.readthedocs.io/en/main/
MIT License
592 stars 845 forks source link

Docker-compose: rustup: not found #2952

Open sebastian-luna-valero opened 1 week ago

sebastian-luna-valero commented 1 week ago

Description:

Deploying augur using docker:

https://oss-augur.readthedocs.io/en/main/docker/getting-started.html

Does not work.

How to reproduce:

  1. clone repo
git clone https://github.com/chaoss/augur.git
cd augur/
  1. create env file
vi .env
AUGUR_GITHUB_API_KEY=<pat>
AUGUR_GITHUB_USERNAME=<user>
  1. run it
sudo docker-compose up --detach

Expected behavior:

All docker services up and running.

Screenshots N/A

Log files

Using the main branch

[+] Running 2/2
 ! rabbitmq Warning                                                                                                                                                                                           1.7s 
 ! augur Warning                                                                                                                                                                                              1.7s 
[+] Building 190.9s (27/46)                                                                                                                                                                         docker:default
 => [rabbitmq internal] load build definition from Dockerfile                                                                                                                                                 0.1s
 => => transferring dockerfile: 721B                                                                                                                                                                          0.0s
 => [rabbitmq internal] load metadata for docker.io/library/rabbitmq:3.12-management-alpine                                                                                                                   1.8s
 => [rabbitmq internal] load .dockerignore                                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [rabbitmq  1/10] FROM docker.io/library/rabbitmq:3.12-management-alpine@sha256:0b44fbcc3a4bf22d00090f1353127577dbe1fcb109c41669733a9d7ecf6c3a78                                                           5.0s
 => => resolve docker.io/library/rabbitmq:3.12-management-alpine@sha256:0b44fbcc3a4bf22d00090f1353127577dbe1fcb109c41669733a9d7ecf6c3a78                                                                      0.0s
 => => sha256:b4c22cf1a563f645ce107213da67c68b395c2c0ea004c5dd93190919d6902905 8.91kB / 8.91kB                                                                                                                0.0s
 => => sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 3.62MB / 3.62MB                                                                                                                0.3s
 => => sha256:cf96d81494f45a6afe66a5dc908f2977f2f5f9ce5cb2c1c08f6c37db088adb2d 39.93MB / 39.93MB                                                                                                              0.8s
 => => sha256:0b44fbcc3a4bf22d00090f1353127577dbe1fcb109c41669733a9d7ecf6c3a78 10.53kB / 10.53kB                                                                                                              0.0s
 => => sha256:fb9f48e83858da0e391c511991e4a16584771379f75869579a4072acec5820c0 2.90kB / 2.90kB                                                                                                                0.0s
 => => sha256:47fbff51849143839f636a60a3545cae426aae8301469bc244bfdb4d17a69448 7.58MB / 7.58MB                                                                                                                0.6s
 => => extracting sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170                                                                                                                     0.2s
 => => sha256:4ecffbec83971a6e938134e5aba3b93a8f974facafcfacb980738ca3e1e845a3 2.23MB / 2.23MB                                                                                                                0.7s
 => => sha256:f837b3d62347f68225ce86511fd0016e1779f08775a3716480ed6488914dd2ae 17.76MB / 17.76MB                                                                                                              1.1s
 => => sha256:fa1a1a1ba086e5522ac980afca4d35606f117afd562a58b1e8b726ee0716b51d 193B / 193B                                                                                                                    1.0s
 => => extracting sha256:cf96d81494f45a6afe66a5dc908f2977f2f5f9ce5cb2c1c08f6c37db088adb2d                                                                                                                     1.2s
 => => sha256:7fa42451bf34a5e09387bee2be5f78ca73836955c83dbdb7a045c9cbd2f56788 109B / 109B                                                                                                                    1.0s
 => => sha256:c6b7b8d0c6ad0466ac42c049d00cfa2f56876192d48374a5749b933353b13075 616B / 616B                                                                                                                    1.3s
 => => sha256:cba88b171d44b6a0a1f4c3f8eaa1748018b44fde431fcec165b796dd8af405fc 829B / 829B                                                                                                                    1.2s
 => => sha256:14c4c46aa62a350fa45f7da6021d0481b7520e7f174619b869187034a26cea67 13.67MB / 13.67MB                                                                                                              1.6s
 => => extracting sha256:47fbff51849143839f636a60a3545cae426aae8301469bc244bfdb4d17a69448                                                                                                                     0.3s
 => => extracting sha256:4ecffbec83971a6e938134e5aba3b93a8f974facafcfacb980738ca3e1e845a3                                                                                                                     0.2s
 => => extracting sha256:f837b3d62347f68225ce86511fd0016e1779f08775a3716480ed6488914dd2ae                                                                                                                     0.8s
 => => extracting sha256:fa1a1a1ba086e5522ac980afca4d35606f117afd562a58b1e8b726ee0716b51d                                                                                                                     0.0s
 => => extracting sha256:7fa42451bf34a5e09387bee2be5f78ca73836955c83dbdb7a045c9cbd2f56788                                                                                                                     0.0s
 => => extracting sha256:c6b7b8d0c6ad0466ac42c049d00cfa2f56876192d48374a5749b933353b13075                                                                                                                     0.0s
 => => extracting sha256:cba88b171d44b6a0a1f4c3f8eaa1748018b44fde431fcec165b796dd8af405fc                                                                                                                     0.0s
 => => extracting sha256:14c4c46aa62a350fa45f7da6021d0481b7520e7f174619b869187034a26cea67                                                                                                                     0.8s
 => [rabbitmq internal] load build context                                                                                                                                                                    0.0s
 => => transferring context: 2.47kB                                                                                                                                                                           0.0s
 => [rabbitmq  2/10] COPY --chown=rabbitmq:rabbitmq ./docker/rabbitmq/augur.conf /etc/rabbitmq/conf.d/                                                                                                        0.4s
 => [rabbitmq  3/10] ADD docker/rabbitmq/definitions.json /etc/rabbitmq/                                                                                                                                      0.1s
 => [rabbitmq  4/10] RUN chown rabbitmq:rabbitmq /etc/rabbitmq/definitions.json                                                                                                                               0.3s
 => [rabbitmq  5/10] ADD docker/rabbitmq/advanced.config /etc/rabbitmq/                                                                                                                                       0.1s
 => [rabbitmq  6/10] RUN chown rabbitmq:rabbitmq /etc/rabbitmq/advanced.config                                                                                                                                0.3s
 => [rabbitmq  7/10] RUN chmod 777 /etc/rabbitmq/conf.d/augur.conf                                                                                                                                            0.3s
 => [rabbitmq  8/10] RUN apk add --no-cache python3                                                                                                                                                           4.5s
 => [rabbitmq  9/10] COPY docker/rabbitmq/update_config.py /                                                                                                                                                  0.1s
 => [rabbitmq 10/10] RUN exec python3 update_config.py                                                                                                                                                        1.5s 
 => [rabbitmq] exporting to image                                                                                                                                                                             0.3s 
 => => exporting layers                                                                                                                                                                                       0.3s
 => => writing image sha256:4871cb8e461429bba49eca3611e7018712a29c65ae29d5d99a8d53b404318a9f                                                                                                                  0.0s
 => => naming to docker.io/library/augur-rabbitmq                                                                                                                                                             0.0s
 => [augur internal] load build definition from Dockerfile                                                                                                                                                    0.0s
 => => transferring dockerfile: 3.24kB                                                                                                                                                                        0.0s
 => [augur internal] load metadata for docker.io/library/python:3.11-slim-bullseye                                                                                                                            3.4s
 => [augur internal] load .dockerignore                                                                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [augur  1/27] FROM docker.io/library/python:3.11-slim-bullseye@sha256:d910a25afa706e0b2da4b59990fb59c0495eeab597b5cd777bbdcda8b6530b7e                                                                    4.6s
 => => resolve docker.io/library/python:3.11-slim-bullseye@sha256:d910a25afa706e0b2da4b59990fb59c0495eeab597b5cd777bbdcda8b6530b7e                                                                            0.0s
 => => sha256:8e9c9384f38f32f87a42f79f4253fd47c92818ddb92b491e147d900f610ec8ba 1.75kB / 1.75kB                                                                                                                0.0s
 => => sha256:998f066b8032171d3f2e3cff42d7cbb3199aed0da52251449b40038fd7d8753a 5.43kB / 5.43kB                                                                                                                0.0s
 => => sha256:55ab1b300d4b4b00c98fb396b36f0f7ba5dab2f7d18927e3742d364632723cbe 31.45MB / 31.45MB                                                                                                              0.7s
 => => sha256:7bbce50388ecc9377438b472c286f3713ff932564da0346609f04c08eaa9f059 871.32kB / 871.32kB                                                                                                            0.5s
 => => sha256:2fe2526b64dfe2b17fe8a15d90fdb4493c07f602e671b39d3a1d5b8ca5307492 15.41MB / 15.41MB                                                                                                              0.9s
 => => sha256:d910a25afa706e0b2da4b59990fb59c0495eeab597b5cd777bbdcda8b6530b7e 5.26kB / 5.26kB                                                                                                                0.0s
 => => sha256:782257b4c34288407aec05f34732779c1acd0631c052169746aef481854fc2b3 250B / 250B                                                                                                                    0.8s
 => => extracting sha256:55ab1b300d4b4b00c98fb396b36f0f7ba5dab2f7d18927e3742d364632723cbe                                                                                                                     2.3s
 => => extracting sha256:7bbce50388ecc9377438b472c286f3713ff932564da0346609f04c08eaa9f059                                                                                                                     0.1s
 => => extracting sha256:2fe2526b64dfe2b17fe8a15d90fdb4493c07f602e671b39d3a1d5b8ca5307492                                                                                                                     1.1s
 => => extracting sha256:782257b4c34288407aec05f34732779c1acd0631c052169746aef481854fc2b3                                                                                                                     0.0s
 => [augur internal] load build context                                                                                                                                                                       0.4s
 => => transferring context: 18.07MB                                                                                                                                                                          0.4s
 => [augur  2/27] RUN set -x     && apt-get update     && apt-get -y install         git         bash         curl         gcc         software-properties-common         postgresql-contrib         musl-  138.1s
 => [augur  3/27] RUN set -x     && apt-get update     && apt-get install -y firefox-esr                                                                                                                     19.2s
 => [augur  4/27] RUN GECKODRIVER_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.tag_name' | sed 's/v//')     && ARCH=$(uname -m)     && if [ "$ARCH" = "aarch  9.4s
 => [augur  5/27] RUN firefox --version                                                                                                                                                                       0.3s
 => [augur  6/27] RUN geckodriver --version                                                                                                                                                                   0.3s
 => [augur  7/27] RUN mkdir -p /root/.rustup/downloads /root/.cargo/registry &&     chmod -R 777 /root/.rustup /root/.cargo                                                                                   0.3s
 => ERROR [augur  8/27] RUN set -x     && rustup install 1.78.0                                                                                                                                               0.3s
------
 > [augur  8/27] RUN set -x     && rustup install 1.78.0:
0.237 + rustup install 1.78.0
0.239 /bin/sh: 1: rustup: not found
------
failed to solve: process "/bin/sh -c set -x     && rustup install 1.78.0" did not complete successfully: exit code: 127

Using the dev branch

[+] Running 1/1
 ! augur Warning                                                                                                                                                                                              1.8s 
[+] Building 1.4s (12/31)                                                                                                                                                                           docker:default
 => [augur internal] load build definition from Dockerfile                                                                                                                                                    0.0s
 => => transferring dockerfile: 3.24kB                                                                                                                                                                        0.0s
 => [augur internal] load metadata for docker.io/library/python:3.11-slim-bullseye                                                                                                                            1.0s
 => [augur internal] load .dockerignore                                                                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [augur  1/27] FROM docker.io/library/python:3.11-slim-bullseye@sha256:d910a25afa706e0b2da4b59990fb59c0495eeab597b5cd777bbdcda8b6530b7e                                                                    0.0s
 => [augur internal] load build context                                                                                                                                                                       0.1s
 => => transferring context: 55.63kB                                                                                                                                                                          0.0s
 => CACHED [augur  2/27] RUN set -x     && apt-get update     && apt-get -y install         git         bash         curl         gcc         software-properties-common         postgresql-contrib           0.0s
 => CACHED [augur  3/27] RUN set -x     && apt-get update     && apt-get install -y firefox-esr                                                                                                               0.0s
 => CACHED [augur  4/27] RUN GECKODRIVER_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.tag_name' | sed 's/v//')     && ARCH=$(uname -m)     && if [ "$ARCH" =  0.0s
 => CACHED [augur  5/27] RUN firefox --version                                                                                                                                                                0.0s
 => CACHED [augur  6/27] RUN geckodriver --version                                                                                                                                                            0.0s
 => CACHED [augur  7/27] RUN mkdir -p /root/.rustup/downloads /root/.cargo/registry &&     chmod -R 777 /root/.rustup /root/.cargo                                                                            0.0s
 => ERROR [augur  8/27] RUN set -x     && rustup install 1.78.0                                                                                                                                               0.3s
------
 > [augur  8/27] RUN set -x     && rustup install 1.78.0:
0.219 + rustup install 1.78.0
0.219 /bin/sh: 1: rustup: not found
------
failed to solve: process "/bin/sh -c set -x     && rustup install 1.78.0" did not complete successfully: exit code: 127

Software versions: