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

Docker build failed for nitro v3.1.0 #2498

Open
wafeishushu opened this issue Jul 18, 2024 · 0 comments
Open

Docker build failed for nitro v3.1.0 #2498

wafeishushu opened this issue Jul 18, 2024 · 0 comments

Comments

@wafeishushu
Copy link

Describe the bug
docker build failed for v3.1.0
OS: X86_64 Linux AliyunOS

uname -a
Linux iZj6cbiuoqb7x1hxtrgz9lZ 5.10.60-9.al8.x86_64 #1 SMP Mon Sep 6 21:30:37 CST 2021 x86_64 x86_64 x86_64 GNU/Linux

To Reproduce
Steps to reproduce the behavior:

  1. Go to nitro root dir

  2. Run

docker build . -t arbitrum-nitro:3.1.0
  1. See error
WARNING: current commit information was not captured by the build: failed to read current commit information with git rev-parse --is-inside-work-tree
Dockerfile:255
--------------------
 254 |     USER root
 255 | >>> RUN export DEBIAN_FRONTEND=noninteractive && \
 256 | >>>     apt-get update && \
 257 | >>>     apt-get install -y \
 258 | >>>     ca-certificates \
 259 | >>>     wabt \
 260 | >>>     sysstat && \
 261 | >>>     /usr/sbin/update-ca-certificates && \
 262 | >>>     useradd -s /bin/bash user && \
 263 | >>>     mkdir -p /home/user/l1keystore && \
 264 | >>>     mkdir -p /home/user/.arbitrum/local/nitro && \
 265 | >>>     chown -R user:user /home/user && \
 266 | >>>     chmod -R 555 /home/user/target/machines && \
 267 | >>>     apt-get clean && \
 268 | >>>     rm -rf /var/lib/apt/lists/* /usr/share/doc/* /var/cache/ldconfig/aux-cache /usr/lib/python3.9/__pycache__/ /usr/lib/python3.9/*/__pycache__/ /var/log/* && \
 269 | >>>     nitro --version
 270 |     

Expected behavior
build image success

Additional Message
When I run the first 235 lines of the Dockerfile and build the image, the nitro binary doesn't work.

# copy a new Dockerfile with first 235 line
docker build -f Dockerfile_new . -t arbitrum-nitro:3.1.0
docker run -it arbitrum-nitro:3.1.0 /bin/bash

you can see there is no output for nitro --help

root@3640838f1d5e:/workspace# ./target/bin/nitro --help
root@3640838f1d5e:/workspace#
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