Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from thaJeztah/update-dockerfile-formatting
Browse files Browse the repository at this point in the history
Update dockerfile formatting
  • Loading branch information
tonistiigi committed Jan 18, 2016
2 parents 5a4145b + a6bf618 commit 994c35c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from golang:1.5.3
run apt-get update && apt-get install -y build-essential
run git clone -b v2_02_103 https://git.fedorahosted.org/git/lvm2.git /usr/local/lvm2
run cd /usr/local/lvm2 \
FROM golang:1.5.3
RUN apt-get update && apt-get install -y build-essential
RUN git clone -b v2_02_103 https://git.fedorahosted.org/git/lvm2.git /usr/local/lvm2
RUN cd /usr/local/lvm2 \
&& ./configure --enable-static_link \
&& make device-mapper \
&& make install_device-mapper

env GOPATH=/go:/go/src/github.com/docker/v1.10-migrator/Godeps/_workspace
copy . /go/src/github.com/docker/v1.10-migrator
run go install -tags libdm_no_deferred_remove --ldflags '-extldflags "-static"' github.com/docker/v1.10-migrator
ENV GOPATH=/go:/go/src/github.com/docker/v1.10-migrator/Godeps/_workspace
COPY . /go/src/github.com/docker/v1.10-migrator
RUN go install -tags libdm_no_deferred_remove --ldflags '-extldflags "-static"' github.com/docker/v1.10-migrator
6 changes: 3 additions & 3 deletions Dockerfile.image
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from busybox
add v1.10-migrator /bin
entrypoint /bin/v1.10-migrator
FROM busybox
ADD v1.10-migrator /bin
ENTRYPOINT /bin/v1.10-migrator
14 changes: 7 additions & 7 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from debian:jessie
run apt-get update && apt-get install -y wget iptables git btrfs-tools
FROM debian:jessie
RUN apt-get update && apt-get install -y wget iptables git btrfs-tools

# install bats
run cd /usr/local/src/ \
RUN cd /usr/local/src/ \
&& git clone https://github.com/sstephenson/bats.git \
&& cd bats \
&& ./install.sh /usr/local

volume /var/lib/docker
add pre-tests.bats entrypoint.sh post-tests.bats /
add v1.10-migrator /usr/bin/
entrypoint /entrypoint.sh
VOLUME /var/lib/docker
COPY pre-tests.bats entrypoint.sh post-tests.bats /
COPY v1.10-migrator /usr/bin/
ENTRYPOINT /entrypoint.sh

0 comments on commit 994c35c

Please sign in to comment.