Skip to content

Commit

Permalink
Adjust label commands to contain IMAGE and NAME as a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou committed May 3, 2021
1 parent 43a1322 commit 3913a41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ RUN echo -e '[group_cockpit-cockpit-preview]\nname=Copr repo for cockpit-preview
# Again see above ... we do our branching in shell script
RUN /container/install-package.sh && /container/prep-container.sh

LABEL INSTALL="/usr/bin/docker run --rm --privileged -v /:/host IMAGE /container/atomic-install IMAGE"
LABEL UNINSTALL="/usr/bin/docker run --rm --privileged -v /:/host IMAGE /container/atomic-uninstall"
LABEL RUN="/usr/bin/docker run -d --name NAME --privileged --pid=host -v /:/host IMAGE /container/atomic-run --local-ssh"
LABEL INSTALL="/usr/bin/docker run --rm --privileged -v /:/host \$IMAGE /container/atomic-install \$IMAGE"
LABEL UNINSTALL="/usr/bin/docker run --rm --privileged -v /:/host \$IMAGE /container/atomic-uninstall"
LABEL RUN="/usr/bin/docker run -d --name \$NAME --privileged --pid=host -v /:/host \$IMAGE /container/atomic-run --local-ssh"

# Look ma, no EXPOSE

Expand Down

0 comments on commit 3913a41

Please sign in to comment.