Skip to content

Commit

Permalink
Switch from packages to source
Browse files Browse the repository at this point in the history
This allows us to move from CentOS to Fedora for development.
After the RDO dumped Fedora, we did not have up-to-date
packages anymore and had to stick with CentOS. But no more.
  • Loading branch information
zaitcev committed Mar 30, 2017
1 parent 071ce9d commit a99bf74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README
Expand Up @@ -4,5 +4,7 @@ deployment of test clusters in comparison with e.g. traditional SAIO.
No more lengthy, complex, and error-prone instructions. Just fetch
the image and deploy it in 1 invocation of the docker command, done.

Make sure that Docker volumes are on XFS.

saio/
One container with SAIO
15 changes: 11 additions & 4 deletions saio/Dockerfile
@@ -1,12 +1,19 @@
FROM centos
FROM fedora

# docker build -t saio-1 .
# docker run -i -t --entrypoint bash saio-1
# docker run -i -t -v /run/systemd/journal/dev-log:/dev/log -p 8080:8080 saio-1

RUN yum install -y https://www.rdoproject.org/repos/rdo-release.rpm
# RUN yum update -y
RUN yum install -y openstack-swift-proxy openstack-swift-account openstack-swift-container openstack-swift-object memcached rsync
RUN dnf install -y memcached rsync pyxattr sqlite git-core python-pip \
gcc redhat-rpm-config \
python-setuptools python-devel python-greenlet python2-paste-deploy \
python-netifaces python-dns \
python-pyeclib liberasurecode-devel

RUN useradd -u 160 -U -d /var/lib/swift -s /bin/nologin swift

RUN git clone https://github.com/openstack/swift.git
RUN cd swift && pip install -r requirements.txt && python setup.py develop

COPY swift.conf /etc/swift/
COPY account-server.conf container-server.conf object-server.conf \
Expand Down

0 comments on commit a99bf74

Please sign in to comment.