question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker build instructions do not work

See original GitHub issue

Followed instructions here https://github.com/linkedin/iris/tree/master/ops/packer

packer build -only=docker ./output/iris.json

<lots of logs>

    docker: mv: cannot stat '/home/iris/source/ops/config/systemd/uwsgi-iris.service': No such file or directory
==> docker: Killing the container: 3ae3090eb6e4e524f7d3e71decf92642267086b7b28aebcc2e23baad6115eb85
Build 'docker' errored: Script exited with non-zero exit status: 1

==> Some builds didn't complete successfully and had errors:
--> docker: Script exited with non-zero exit status: 1

==> Builds finished but no artifacts were created.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
lukdzcommented, Dec 7, 2020

I have different problem during building of docker image using Packer:

    docker: Processing /home/iris/source
    docker:     ERROR: Command errored out with exit status 1:
    docker:      command: /home/iris/env/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-L6LXo8/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-L6LXo8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-J0m82F
    docker:          cwd: /tmp/pip-req-build-L6LXo8/
    docker:     Complete output (5 lines):
    docker:     Traceback (most recent call last):
    docker:       File "<string>", line 1, in <module>
    docker:       File "/tmp/pip-req-build-L6LXo8/setup.py", line 10, in <module>
    docker:         with open('README.md', 'r') as fd:
    docker:     IOError: [Errno 2] No such file or directory: 'README.md'
    docker:     ----------------------------------------
    docker: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
==> docker: Killing the container: ce1375cbb71563ff4f9b170ea9c1049f9729f139db571dfa0ff2d27310bfe3e7
Build 'docker' errored: Script exited with non-zero exit status: 1

==> Some builds didn't complete successfully and had errors:
--> docker: Script exited with non-zero exit status: 1

==> Builds finished but no artifacts were created.

Steps to reproduce:

git clone https://github.com/linkedin/iris.git 
cd iris/ops/packer
mkdir output
python3 gen_packer_cfg.py ./iris.yaml | tail -n +2 > ./output/iris.json
packer build -only=docker ./output/iris.json 

Problem start at commit 65c45891976ecaf61773d2e695a86524ed7b8e2e

1reaction
barylukcommented, Nov 3, 2021

I have a bunch of enhancements to documentation and Dockerfile and packer setup, that should resolve this. This also updates to python3 , newer ubuntu, and improves the entrypoint mechanism.

I will send it in coming days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker build - Docker Documentation
The docker build command builds Docker images from a Dockerfile and a “context”. A build's context is the set of files located in...
Read more >
Not able to figure out why Docker build command is not working
I am trying to build a Docker image with given below steps and try to run a docker build command to generate an...
Read more >
Building your Docker Image - Runnable
Detailed steps to build your Docker image and troubleshoot errors encountered during builds with Ruby on Rails applications.
Read more >
Docker sample for CodeBuild - AWS Documentation
Provides information about the Docker sample that is designed to work ... Multi-stage Docker image builds help to reduce the size of the...
Read more >
How Docker Build Command Works Internally
Historically, Dockerfiles have been serving this purpose. Any Dockerfile must have the FROM instruction at the very beginning. This instruction ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found