Skip to content

Commit

Permalink
Switch Dockerfile to debian:jessie
Browse files Browse the repository at this point in the history
Fixes broken-pipe issue when piping s3cmd to grep -q, by removing the -q
flag and redirecting to /dev/null instead.

Add net-tools for ifconfig, because some tests rely on ifconfig.

Harmonize all Dockerfiles in this direction.

Signed-off-by: Tibor Vass <[email protected]>
  • Loading branch information
Tibor Vass committed Feb 13, 2016
1 parent b734d0e commit f27b5dd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 38 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# the case. Therefore, you don't have to disable it anymore.
#

FROM ubuntu:trusty
FROM debian:jessie

# add zfs ppa
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys E871F18B51E0147C77796AC81196BA81F6B0FC61 \
Expand Down Expand Up @@ -58,12 +58,13 @@ RUN apt-get update && apt-get install -y \
libsystemd-journal-dev \
libtool \
mercurial \
net-tools \
pkg-config \
python-dev \
python-mock \
python-pip \
python-websocket \
s3cmd=1.1.0* \
s3cmd=1.5.0* \
ubuntu-zfs \
xfsprogs \
libzfs-dev \
Expand Down
12 changes: 2 additions & 10 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@
# # Run the test suite:
# docker run --privileged docker hack/make.sh test
#
# # Publish a release:
# docker run --privileged \
# -e AWS_S3_BUCKET=baz \
# -e AWS_ACCESS_KEY=foo \
# -e AWS_SECRET_KEY=bar \
# -e GPG_PASSPHRASE=gloubiboulga \
# docker hack/release.sh
#
# Note: AppArmor used to mess with privileged mode, but this is no longer
# the case. Therefore, you don't have to disable it anymore.
#

FROM aarch64/ubuntu:trusty
FROM aarch64/debian:jessie

# Packaged dependencies
RUN apt-get update && apt-get install -y \
Expand All @@ -47,13 +39,13 @@ RUN apt-get update && apt-get install -y \
libsqlite3-dev \
libsystemd-journal-dev \
mercurial \
net-tools \
parallel \
pkg-config \
python-dev \
python-mock \
python-pip \
python-websocket \
s3cmd=1.1.0* \
--no-install-recommends

# Install armhf loader to use armv6 binaries on armv8
Expand Down
10 changes: 1 addition & 9 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@
# # Run the test suite:
# docker run --privileged docker hack/make.sh test
#
# # Publish a release:
# docker run --privileged \
# -e AWS_S3_BUCKET=baz \
# -e AWS_ACCESS_KEY=foo \
# -e AWS_SECRET_KEY=bar \
# -e GPG_PASSPHRASE=gloubiboulga \
# docker hack/release.sh
#
# Note: AppArmor used to mess with privileged mode, but this is no longer
# the case. Therefore, you don't have to disable it anymore.
#

FROM armhf/ubuntu:trusty
FROM armhf/debian:jessie

# Packaged dependencies
RUN apt-get update && apt-get install -y \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.gccgo
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN apt-get update && apt-get install -y \
libcap-dev \
libsqlite3-dev \
mercurial \
net-tools \
parallel \
python-dev \
python-mock \
Expand Down
8 changes: 0 additions & 8 deletions Dockerfile.ppc64le
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
# # Run the test suite:
# docker run --privileged docker hack/make.sh test
#
# # Publish a release:
# docker run --privileged \
# -e AWS_S3_BUCKET=baz \
# -e AWS_ACCESS_KEY=foo \
# -e AWS_SECRET_KEY=bar \
# -e GPG_PASSPHRASE=gloubiboulga \
# docker hack/release.sh
#
# Note: AppArmor used to mess with privileged mode, but this is no longer
# the case. Therefore, you don't have to disable it anymore.
#
Expand Down
8 changes: 0 additions & 8 deletions Dockerfile.s390x
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
# # Run the test suite:
# docker run --privileged docker hack/make.sh test
#
# # Publish a release:
# docker run --privileged \
# -e AWS_S3_BUCKET=baz \
# -e AWS_ACCESS_KEY=foo \
# -e AWS_SECRET_KEY=bar \
# -e GPG_PASSPHRASE=gloubiboulga \
# docker hack/release.sh
#
# Note: AppArmor used to mess with privileged mode, but this is no longer
# the case. Therefore, you don't have to disable it anymore.
#
Expand Down
3 changes: 2 additions & 1 deletion hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ setup_s3() {
# s3cmd has no useful exit status, so we cannot check that.
# Instead, we check if it outputs anything on standard output.
# (When there are problems, it uses standard error instead.)
s3cmd info "s3://$BUCKET" | grep -q .
# NOTE: for some reason on debian:jessie `s3cmd info ... | grep -q .` results in a broken pipe
s3cmd info "s3://$BUCKET" | grep . >/dev/null
# Make the bucket accessible through website endpoints.
s3cmd ws-create --ws-index index --ws-error error "s3://$BUCKET"
}
Expand Down

0 comments on commit f27b5dd

Please sign in to comment.