Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Conversation

@MorganEPatch
Copy link
Contributor

@MorganEPatch MorganEPatch commented Aug 10, 2017

Depends on #16.

Add a Dockerfile to enable us to deploy the app.

@squat

@MorganEPatch MorganEPatch self-assigned this Aug 10, 2017
Dockerfile Outdated

ADD bin/issue-sync /opt/issue-sync/issue-sync

CMD ["./issue-sync"] No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the ENTRYPOINT command rather than CMD. When using CMD with no entrypoint, docker implicitly uses an entrypoint of /bin/sh. This means that if you docker run quay.io/issue-sync <extra-args> docker will run /bin/sh -c '<extra-args>'; to get this to work you would have to docker run quay.io/issue-sync ./issue-sync <extra-args>. Instead, if you add /opt/issue-syncas the entrypoint, you candocker run quay.io/issue-sync ` and have them work as expected.

Dockerfile Outdated

WORKDIR /opt/issue-sync

ADD bin/issue-sync /opt/issue-sync/issue-sync
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use COPY rather than ADD. COPY is the recommended command and avoids some extra magic that ADD performs.

Dockerfile Outdated

ADD bin/issue-sync /opt/issue-sync/issue-sync

CMD ["./issue-sync"] No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz add a newline char

@MorganEPatch
Copy link
Contributor Author

@squat Fixed.

@squat
Copy link
Contributor

squat commented Aug 11, 2017

@LyonesGamer the PR is independent of the previos PRs. Let's rebase the commits off of master and merge this now

Morgan Patch added 2 commits August 11, 2017 13:08
The dockerfile copies over the issue-sync binary, and on a `docker
run` runs the issue-sync binary.
@MorganEPatch MorganEPatch merged commit bbc4f3c into coreos:master Aug 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants