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 Commands output in wrong order? #297

Closed
fmg-kevin-kilroy opened this issue Jul 15, 2014 · 1 comment
Closed

Docker Commands output in wrong order? #297

fmg-kevin-kilroy opened this issue Jul 15, 2014 · 1 comment

Comments

@fmg-kevin-kilroy
Copy link

v0.7.2

DockerPlugin.scala:45

Dockerfile(volumeCommands ++ exposeCommand ++ dockerCommands: _*).makeContent

Produces the following Dockerfile:

RUN ["mkdir", "-p", "/opt/docker/logs"]
VOLUME ["/opt/docker/logs"]
EXPOSE 8081
FROM dockerfile/java
MAINTAINER blah blah blah.blah@blah.be
ADD files /
WORKDIR /opt/docker
RUN ["chown", "-R", "daemon", "."]
USER daemon
ENTRYPOINT ["bin/registration"]
CMD []

Which has the RUN, VOLUME, EXPOSE commands before the FROM, which results in the following error when running docker:publishLocal:

[error] 2014/07/15 18:34:48 Please provide a source image with from prior to run
[trace] Stack trace suppressed: run last registration/docker:publishLocal for the full output.
error Nonzero exit value: 1
[error] Total time: 5 s, completed 15/07/2014 6:34:48 PM

@fmg-kevin-kilroy fmg-kevin-kilroy changed the title Commands output in wrong order? Docker Commands output in wrong order? Jul 15, 2014
@muuki88
Copy link
Contributor

muuki88 commented Jul 15, 2014

Thanks for your report. That issue has already been fixed in #293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants