Skip to content

Instantly share code, notes, and snippets.

@brhoades
Last active February 25, 2017 21:58
Show Gist options
  • Save brhoades/42191c46594dc438432e155d47e5b72f to your computer and use it in GitHub Desktop.
Save brhoades/42191c46594dc438432e155d47e5b72f to your computer and use it in GitHub Desktop.
✘ br046823@M1600801  ~/.nonwork/grader   upstream/fb-inspect-hotfix ± cat assignments/hw1/gradesheet/Dockerfile
FROM ubuntu
MAINTAINER Kimbro Staken
RUN apt-get install -y software-properties-common python
RUN add-apt-repository ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y nodejs
#RUN apt-get install -y nodejs=0.6.12~dfsg1-1ubuntu1
RUN mkdir /var/www
ADD app.js /var/www/app.js
CMD ["/usr/bin/node", "/var/www/app.js"]
✘ br046823@M1600801  ~/.nonwork/grader   upstream/fb-inspect-hotfix ± grader --verbosity DEBUG --tracebacks build hw1
DEBUG Loading /Users/br046823/.nonwork/grader/grader.yml.
DEBUG Validating /Users/br046823/.nonwork/grader/grader.yml.
DEBUG Loading assignment.
DEBUG Loading /Users/br046823/.nonwork/grader/assignments/hw1/gradesheet/assignment.yml.
DEBUG Validating /Users/br046823/.nonwork/grader/assignments/hw1/gradesheet/assignment.yml.
INFO Building image...
DEBUG Image options: {'path': '/Users/br046823/.nonwork/grader/assignments/hw1/gradesheet', 'tag': '25961a09-1493-4441-af43-4e89b22f2ec9-tester-hw1'}
DEBUG Creating Docker client
DEBUG File doesn't exist
DEBUG http://localhost:None "GET /version HTTP/1.1" 200 235
DEBUG Looking for auth config
DEBUG No auth config in memory - loading from filesystem
DEBUG File doesn't exist
DEBUG No auth config found
DEBUG http://localhost:None "POST /v1.26/build?t=25961a09-1493-4441-af43-4e89b22f2ec9-tester-hw1&q=False&nocache=False&rm=False&forcerm=False&pull=False HTTP/1.1" 200 None
DEBUG http://localhost:None "GET /v1.26/images/25961a09-1493-4441-af43-4e89b22f2ec9-tester-hw1/json HTTP/1.1" 404 77
DEBUG 404 Client Error: Not Found ("b'{"message":"No such image: 25961a09-1493-4441-af43-4e89b22f2ec9-tester-hw1"}'")
Traceback (most recent call last):
File "/Users/br046823/.nonwork/grader/var/eggs/docker_py-1.6.0-py3.6.egg/docker/client.py", line 138, in _raise_for_status
response.raise_for_status()
File "/Users/br046823/.nonwork/grader/var/eggs/requests-2.13.0-py3.6.egg/requests/models.py", line 909, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localunixsocket/v1.26/images/25961a09-1493-4441-af43-4e89b22f2ec9-tester-hw1/json
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/br046823/.nonwork/grader/grader/grader/models/assignment.py", line 156, in image_id
return self.docker_cli.inspect_image(self.image_tag)['Id']
File "/Users/br046823/.nonwork/grader/var/eggs/docker_py-1.6.0-py3.6.egg/docker/utils/decorators.py", line 21, in wrapped
return f(self, resource_id, *args, **kwargs)
File "/Users/br046823/.nonwork/grader/var/eggs/docker_py-1.6.0-py3.6.egg/docker/api/image.py", line 143, in inspect_image
self._get(self._url("/images/{0}/json", image)), True
File "/Users/br046823/.nonwork/grader/var/eggs/docker_py-1.6.0-py3.6.egg/docker/client.py", line 146, in _result
self._raise_for_status(response)
File "/Users/br046823/.nonwork/grader/var/eggs/docker_py-1.6.0-py3.6.egg/docker/client.py", line 141, in _raise_for_status
raise errors.NotFound(e, response, explanation=explanation)
docker.errors.NotFound: 404 Client Error: Not Found ("b'{"message":"No such image: 25961a09-1493-4441-af43-4e89b22f2ec9-tester-hw1"}'")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/br046823/.nonwork/grader/bin/grader", line 33, in <module>
sys.exit(grader.run())
File "/Users/br046823/.nonwork/grader/grader/grader/__init__.py", line 106, in run
raise e
File "/Users/br046823/.nonwork/grader/grader/grader/__init__.py", line 103, in run
args.run(args)
File "/Users/br046823/.nonwork/grader/grader/grader/utils/config.py", line 26, in wrapper
return wrapped(parsed_args, *args, **kwargs)
File "/Users/br046823/.nonwork/grader/grader/grader/commands/build.py", line 23, in run
a.build_image()
File "/Users/br046823/.nonwork/grader/grader/grader/models/assignment.py", line 278, in build_image
return self.image_id
File "/Users/br046823/.nonwork/grader/grader/grader/models/assignment.py", line 161, in image_id
) from e
grader.models.assignment.AssignmentBuildError: hw1's image was not built.
✘ br046823@M1600801  ~/.nonwork/grader   upstream/fb-inspect-hotfix ± grader --verbosity DEBUG build hw1
DEBUG Loading /Users/br046823/.nonwork/grader/grader.yml.
DEBUG Validating /Users/br046823/.nonwork/grader/grader.yml.
DEBUG Loading assignment.
DEBUG Loading /Users/br046823/.nonwork/grader/assignments/hw1/gradesheet/assignment.yml.
DEBUG Validating /Users/br046823/.nonwork/grader/assignments/hw1/gradesheet/assignment.yml.
INFO Building image...
DEBUG Image options: {'path': '/Users/br046823/.nonwork/grader/assignments/hw1/gradesheet', 'tag': '25961a09-1493-4441-af43-4e89b22f2ec9-tester-hw1', 'decode': True}
DEBUG Creating Docker client
DEBUG File doesn't exist
DEBUG http://localhost:None "GET /version HTTP/1.1" 200 235
DEBUG Looking for auth config
DEBUG No auth config in memory - loading from filesystem
DEBUG File doesn't exist
DEBUG No auth config found
DEBUG http://localhost:None "POST /v1.26/build?t=25961a09-1493-4441-af43-4e89b22f2ec9-tester-hw1&q=False&nocache=False&rm=False&forcerm=False&pull=False HTTP/1.1" 200 None
building hw1> Step 1/10 : FROM ubuntu
ERROR Extra data: line 2 column 1 (char 56)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment