Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building Docker container #8

Open
daniel-kruger-rsa opened this issue Oct 8, 2024 · 0 comments
Open

Error building Docker container #8

daniel-kruger-rsa opened this issue Oct 8, 2024 · 0 comments

Comments

@daniel-kruger-rsa
Copy link

daniel-kruger-rsa commented Oct 8, 2024

When trying to deploy Tendenci in a container, the following error happens - what may be the cause ?

PS C:\Users\Dell\tendenci12-dockerized> docker build --no-cache=true --rm -t tendenci .
[+] Building 151.8s (12/13) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 1.57kB 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:22.04 4.4s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/8] FROM docker.io/library/ubuntu:22.04@sha256:58b87898e82351c6cf9cf5b9f3c20257bb9e2dcf33af051e12ce532d7f94 3.9s
=> => resolve docker.io/library/ubuntu:22.04@sha256:58b87898e82351c6cf9cf5b9f3c20257bb9e2dcf33af051e12ce532d7f94 0.0s
=> => sha256:6414378b647780fee8fd903ddb9541d134a1947ce092d08bdeb23a54cb3684ac 29.54MB / 29.54MB 3.1s
=> => extracting sha256:6414378b647780fee8fd903ddb9541d134a1947ce092d08bdeb23a54cb3684ac 0.7s
=> [internal] load build context 0.1s
=> => transferring context: 6.08kB 0.0s
=> [2/8] RUN mkdir "/home/tendenci" "/var/log/mysite" "/home/tendenci/install" 0.7s
=> [3/8] RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get 131.2s
=> [4/8] RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales && locale-gen en_US.UTF-8 10.7s
=> [5/8] COPY assets/build/ /home/tendenci 0.1s
=> [6/8] COPY assets/runtime/run.sh /runtime/run.sh 0.1s
=> ERROR [7/8] RUN bash -x "/home/tendenci/install.sh" 0.4s

[7/8] RUN bash -x "/home/tendenci/install.sh":
0.392 + $'\r'
0.393 /home/tendenci/install.sh: line 2: $'\r': command not found
0.394 ++ which pip3
0.395 + PIP=$'/usr/bin/pip3\r'
0.396 ++ which python3
0.398 + PYTHON=$'/usr/bin/python3\r'
0.398 + $'\r'
0.400 /home/tendenci/install.sh: line 6: $'\r': command not found
0.400 /home/tendenci/install.sh: line 8: syntax error near unexpected token $'\r'' '.400 /home/tendenci/install.sh: line 8: function check_dirs()


Dockerfile:32

30 | COPY assets/runtime/run.sh /runtime/run.sh
31 |
32 | >>> RUN bash -x "$TENDENCI_HOME/install.sh"
33 |
34 | VOLUME "$TENDENCI_PROJECT_ROOT" "$TENDENCI_LOG_DIR"

ERROR: failed to solve: process "/bin/sh -c bash -x "$TENDENCI_HOME/install.sh"" did not complete successfully: exit code: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant