forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (32 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Dockerfile for building an image that contains all of the necessary
# dependencies for signing deb/rpm packages and publishing APT and YUM
# repositories to Amazon S3.
FROM debian:jessie
RUN apt-get update
RUN apt-get install -y git \
rubygems ruby-dev patch gcc make zlib1g-dev rpm curl dpkg-sig \
yum python-deltarpm \
expect
# Install python-boto from source to get latest version.
RUN git clone git://github.com/boto/boto.git && \
cd boto && \
git checkout 2.38.0 && \
python setup.py install
# Install deb-s3
RUN gem install deb-s3
# Install rpm-s3
# WARNING: Pulling from master, may not be repeatable.
RUN cd /usr/local && \
git clone https://github.com/crohr/rpm-s3 --recursive && \
echo '[s3]\ncalling_format = boto.s3.connection.OrdinaryCallingFormat' > /etc/boto.cfg
# Use HTTP for debugging traffic to S3.
#echo '[Boto]\nis_secure = False' >> /etc/boto.cfg
ENV PATH /usr/local/rpm-s3/bin:$PATH
ADD rpmmacros /root/.rpmmacros
# Add the scripts that are executed by within the container.
ADD *.expect /
ADD publish-package-repositories.sh /
# Execute the publish-package-repositories.sh when the container
# is run.
ENTRYPOINT ["/publish-package-repositories.sh"]
CMD ["--help"]