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 are not in order #791

Closed
aabed opened this issue May 12, 2016 · 1 comment
Closed

Docker commands are not in order #791

aabed opened this issue May 12, 2016 · 1 comment
Labels

Comments

@aabed
Copy link

aabed commented May 12, 2016

build.sbt

// Docker Configuration
maintainer in Docker := "MENA Commerce"

dockerCommands ++= Seq(Cmd("RUN", "ls"))

version in Docker := "build-" + buildNumber

dockerRepository := Some("registry")

dockerExposedPorts := Seq(9000)

dockerUpdateLatest := true
dockerEntrypoint  := Seq("bin/zoidbergggg")

Result

FROM java:latest
MAINTAINER MENA Commerce
WORKDIR /opt/docker
ADD opt /opt
RUN ["chown", "-R", "daemon:daemon", "."]
EXPOSE 9000
USER daemon
ENTRYPOINT ["bin/zoidbergggg"]
CMD []
RUN ls

Expected Result

FROM java:latest
MAINTAINER MENA Commerce
WORKDIR /opt/docker
ADD opt /opt
RUN ["chown", "-R", "daemon:daemon", "."]
RUN ls
EXPOSE 9000
USER daemon
ENTRYPOINT ["bin/zoidbergggg"]
CMD []
@muuki88
Copy link
Contributor

muuki88 commented May 14, 2016

dockerCommands is a sequence. If you append something with ++= it will be placed at the end of the list, which is what you see in your result.

There is a small section with examples on how to customize your docker command sequence.

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

No branches or pull requests

2 participants