Skip to content

Commit

Permalink
Fixed Dockerfile so it patches everything in-place.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Cwik authored and Jason Cwik committed Jul 14, 2017
1 parent 25ec584 commit 867189e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 277 deletions.
8 changes: 3 additions & 5 deletions patches/3.0.0.0-86889.0a0ee19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
FROM emcvipr/object:3.0.0.0-86889.0a0ee19-reduced

# Increase memory for transformsvc
ADD transformsvc /opt/storageos/bin/
RUN sed -i s/-Xmx128m/-Xmx512m/ /opt/storageos/bin/transformsvc

# Fix disk partitioning script
ADD storageserver-partition-config.sh /opt/storageos/bin/
RUN /usr/bin/chmod +x /opt/storageos/bin/storageserver-partition-config.sh
RUN sed -i '/VMware/ s/$/ \&\& [ ! -e \/data\/is_community_edition ]/' /opt/storageos/bin/storageserver-partition-config.sh

# Make vnest use separate thread pools to prevent deadlock
ADD vnest.object.properties /opt/storageos/conf/
RUN printf "\n# Use separate thread pools to prevent deadlock in vnest init\nobject.UseSeparateThreadPools=true\n" >> /opt/storageos/conf/vnest.object.properties

RUN f=/opt/storageos/conf/vnest-common-conf-template.xml; grep -q "object.UseSeparateThreadPools" $f || sed -i '/properties id="serviceProperties"/a \ \ \ \ \ \ \ \ <prop key="object.UseSeparateThreadPools">true</prop>' $f
119 changes: 0 additions & 119 deletions patches/3.0.0.0-86889.0a0ee19/storageserver-partition-config.sh

This file was deleted.

27 changes: 0 additions & 27 deletions patches/3.0.0.0-86889.0a0ee19/transformsvc

This file was deleted.

126 changes: 0 additions & 126 deletions patches/3.0.0.0-86889.0a0ee19/vnest.object.properties

This file was deleted.

0 comments on commit 867189e

Please sign in to comment.