DaniO
DaniO
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
Maybe it is my mac setup, but i can't remember setting anything different. i also tried to build it with different platforms (amd/arm). Also had the same issue trying it with a raspberry pi 4 (OS: Debian GNU/Linux 12 (bookworm)) and tried to run wasp there directly.
daniel@homelab:~/programming $ wasp new MyApp
/home/daniel/.local/bin/wasp: line 2: /home/daniel/.local/share/wasp-lang/0.14.1/wasp-bin: cannot execute binary file: Exec format error
daniel@homelab:~/programming $ wasp new MyApp
/home/daniel/.local/bin/wasp: line 2: /home/daniel/.local/share/wasp-lang/0.14.1/wasp-bin: cannot execute binary file: Exec format error
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
@martinsos No problem, happy to help. As I already mentioned, I can work around this by using a ubuntu vm. Yes wasp start is working, without any problems.
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
@martinsos I tried it with the ubuntu baseimage and had the same result.
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
Also tried it now with the raspberry PI - direct install, without docker. Same result đŸ˜„
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
It's a company notebook and I don't wanna pollute it to much đŸ˜„ I will start a cloud server and do it with remote development, if we can't find a solution here đŸ™‚
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
@miho i don't get why it is working for you, but not for me. Do i maybe have some setting set wrong?
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
Thanks a lot! But argh - tried it with bookworm, bullseye and alpine - still failing. For some strange reason it fails later, if I rerun it. The logfile is the output from node:22.6.0-bullseye Any other idea? đŸ˜¬
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
@miho I have the following Dockerfile:
FROM --platform=linux/amd64 node:22.6.0-slim AS build

RUN apt update && apt install -y curl

RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh

ENV PATH="/root/.local/bin:${PATH}"

WORKDIR /app
FROM --platform=linux/amd64 node:22.6.0-slim AS build

RUN apt update && apt install -y curl

RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh

ENV PATH="/root/.local/bin:${PATH}"

WORKDIR /app
Then I ran docker build -t wasp . and docker run --rm -it wasp bash Inside the container i executed:
wasp new MyApp
cd MyApp
wasp start
wasp new MyApp
cd MyApp
wasp start
Which results into the following error:
? --- Starting compilation and setup phase. Hold tight... ------------------------


? --- Compiling wasp project... --------------------------------------------------

/root/.local/bin/wasp: line 2: 37 Segmentation fault waspc_datadir=/root/.local/share/wasp-lang/0.14.0/data /root/.local/share/wasp-lang/0.14.0/wasp-bin "$@"
? --- Starting compilation and setup phase. Hold tight... ------------------------


? --- Compiling wasp project... --------------------------------------------------

/root/.local/bin/wasp: line 2: 37 Segmentation fault waspc_datadir=/root/.local/share/wasp-lang/0.14.0/data /root/.local/share/wasp-lang/0.14.0/wasp-bin "$@"
If I can provide more info just ping me please đŸ™‚ --- Edit: This seems to only be a problem with my Macbook. I started a redhat VM and executed the same commands, there it worked đŸ˜„ I built it once with linux/amd64 and once with linux/arm64. With ARM I am getting:
root@5aff1037fe82:/app# wasp new MyApp
rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
/root/.local/bin/wasp: line 2: 10 Trace/breakpoint trap waspc_datadir=/root/.local/share/wasp-lang/0.14.0/data /root/.local/share/wasp-lang/0.14.0/wasp-bin "$@"
root@5aff1037fe82:/app# wasp new MyApp
rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
/root/.local/bin/wasp: line 2: 10 Trace/breakpoint trap waspc_datadir=/root/.local/share/wasp-lang/0.14.0/data /root/.local/share/wasp-lang/0.14.0/wasp-bin "$@"
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
@miho ping đŸ™‚
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
I built a docker image until COPY, then i started a container with that image and did the rest manually (for testing)
43 replies
WWasp-lang
Created by abhinav3295 on 8/9/2024 in #đŸ™‹questions
Trying to install wasp within a docker image, and it always fail
Hey, I am also trying to run that on my M3. Tried your dockerfile until the COPY part, but i am getting the following error:
root@6b2e2536a024:/app# wasp new MyApp

? --- Creating your project from the "basic" template... -------------------------

Created new Wasp app in ./MyApp directory!

To run your new app, do:
cd MyApp
wasp start

root@6b2e2536a024:/app# cd MyApp/
root@6b2e2536a024:/app/MyApp# wasp start

? --- Starting compilation and setup phase. Hold tight... ------------------------


? --- Compiling wasp project... --------------------------------------------------

/root/.local/bin/wasp: line 2: 40 Segmentation fault waspc_datadir=/root/.local/share/wasp-lang/0.14.0/data /root/.local/share/wasp-lang/0.14.0/wasp-bin "$@"
root@6b2e2536a024:/app# wasp new MyApp

? --- Creating your project from the "basic" template... -------------------------

Created new Wasp app in ./MyApp directory!

To run your new app, do:
cd MyApp
wasp start

root@6b2e2536a024:/app# cd MyApp/
root@6b2e2536a024:/app/MyApp# wasp start

? --- Starting compilation and setup phase. Hold tight... ------------------------


? --- Compiling wasp project... --------------------------------------------------

/root/.local/bin/wasp: line 2: 40 Segmentation fault waspc_datadir=/root/.local/share/wasp-lang/0.14.0/data /root/.local/share/wasp-lang/0.14.0/wasp-bin "$@"
Any idea? đŸ™‚
43 replies