Skip to content

First run did not run successfully #9

@photobix

Description

@photobix

Hey,

After cloning your repository, create and edit the .env file and run docker compose up -d --build && docker compose logs -f I've got this error message:

#1 [internal] load local bake definitions
#1 reading from stdin 557B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.06kB done
#2 WARN: ConsistentInstructionCasing: Command 'from' should match the case of the command majority (uppercase) (line 1)
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/rust:latest
#3 DONE 0.4s

#4 [internal] load .dockerignore
#4 transferring context: 2B done
#4 DONE 0.0s

#5 [1/8] FROM docker.io/library/rust:latest@sha256:af306cfa71d987911a781c37b59d7d67d934f49684058f96cf72079c3626bfe0
#5 DONE 0.0s

#6 [4/8] RUN apt-get update && apt-get install -y --no-install-recommends     python3-virtualenv     python3-pip     python3-dev     default-mysql-client     && rm -rf /var/lib/apt/lists/*
#6 CACHED

#7 [3/8] WORKDIR /app
#7 CACHED

#8 [2/8] RUN mkdir /app /config
#8 CACHED

#9 [5/8] RUN git clone https://github.com/mozilla-services/syncstorage-rs ./     && cargo install --path ./syncserver --no-default-features --features=syncstorage-db/mysql --locked     && cargo install diesel_cli --no-default-features --features 'mysql'     && cargo clean
#9 CACHED

#10 [internal] load build context
#10 transferring context: 35B done
#10 DONE 0.0s

#11 [6/8] RUN virtualenv venv     && /app/venv/bin/pip install -r requirements.txt     && /app/venv/bin/pip install -r tools/tokenserver/requirements.txt     && /app/venv/bin/pip install pyopenssl==22.1.0
#11 1.103 created virtual environment CPython3.11.2.final.0-64 in 589ms
#11 1.103   creator CPython3Posix(dest=/app/venv, clear=False, no_vcs_ignore=False, global=False)
#11 1.103   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
#11 1.103     added seed packages: pip==23.0.1, setuptools==66.1.1, wheel==0.38.4
#11 1.103   activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
#11 3.525 ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
#11 ERROR: process "/bin/sh -c virtualenv venv     && /app/venv/bin/pip install -r requirements.txt     && /app/venv/bin/pip install -r tools/tokenserver/requirements.txt     && /app/venv/bin/pip install pyopenssl==22.1.0" did not complete successfully: exit code: 1
------
 > [6/8] RUN virtualenv venv     && /app/venv/bin/pip install -r requirements.txt     && /app/venv/bin/pip install -r tools/tokenserver/requirements.txt     && /app/venv/bin/pip install pyopenssl==22.1.0:
1.103 created virtual environment CPython3.11.2.final.0-64 in 589ms
1.103   creator CPython3Posix(dest=/app/venv, clear=False, no_vcs_ignore=False, global=False)
1.103   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
1.103     added seed packages: pip==23.0.1, setuptools==66.1.1, wheel==0.38.4
1.103   activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
3.525 ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
------
Dockerfile:22

--------------------

  21 |     # Setup the Python venv

  22 | >>> RUN virtualenv venv \

  23 | >>>     && /app/venv/bin/pip install -r requirements.txt \

  24 | >>>     && /app/venv/bin/pip install -r tools/tokenserver/requirements.txt \

  25 | >>>     && /app/venv/bin/pip install pyopenssl==22.1.0

  26 |

--------------------

failed to solve: process "/bin/sh -c virtualenv venv     && /app/venv/bin/pip install -r requirements.txt     && /app/venv/bin/pip install -r tools/tokenserver/requirements.txt     && /app/venv/bin/pip install pyopenssl==22.1.0" did not complete successfully: exit code: 1

I'm sorry for not being able to fix it by myself

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions