This repository was archived by the owner on Aug 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Allow generating the docker image via make. #31
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e1b8258
Allow generating the docker image via make.
igorpeshansky df84d88
Add comments for standalone use.
igorpeshansky 6c4b7d4
Unify Dockerfile and Dockerfile-xenial; remove version from the in-co…
igorpeshansky dd28512
Rely on the presence of a properly suffixed Dockerfile instead of a m…
igorpeshansky 54b96e9
Split variable assignment from export to retain the exit code of mktemp.
igorpeshansky b780e9e
Oops. COPY->ADD.
igorpeshansky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Dockerfile-xenial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # To use directly, run: docker build --build-arg package=<pkg>.trusty.deb -t <tag> -f Dockerfile-trusty | ||
| FROM ubuntu:trusty | ||
|
|
||
| ARG package | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we not have a default package to set this to?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not for trusty. Our official packages are only xenial and centos7. |
||
| ADD ${package} /stackdriver-metadata.deb | ||
| RUN apt-get update \ | ||
| && (dpkg -i /stackdriver-metadata.deb || true) \ | ||
| && apt-get install -f -y \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && rm -rf /stackdriver-metadata.deb | ||
|
|
||
| CMD /opt/stackdriver/metadata/sbin/metadatad | ||
|
|
||
| EXPOSE 8000 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # To use directly, run: docker build --build-arg package=<pkg>.xenial.deb -t <tag> -f Dockerfile-xenial | ||
| FROM ubuntu:xenial | ||
|
|
||
| ARG version=0.0.13-1 | ||
| ARG package=https://storage.googleapis.com/stackdriver-container-alpha/deb/xenial/stackdriver-metadata_${version}.xenial.deb | ||
| ADD ${package} /stackdriver-metadata.deb | ||
| RUN apt-get update \ | ||
| && (dpkg -i /stackdriver-metadata.deb || true) \ | ||
| && apt-get install -f -y \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && rm -rf /stackdriver-metadata.deb | ||
|
|
||
| CMD /opt/stackdriver/metadata/sbin/metadatad | ||
|
|
||
| EXPOSE 8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add a comment of some sort saying that this dockerfile cannot be used directly and is used as a part of the Makefile.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can absolutely use this directly:
You just have to supply the correct parameters. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah didn't know that docker build would take a dockerfile not names
Dockerfile. Can we add an instruction as a comment as to use this directly?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.