@@ -90,8 +90,8 @@ RUN yum install -y ruby ruby-devel rpmbuild rubygems gcc make \
90
90
# pyinstaller start
91
91
# commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
92
92
# use the following variables to choose the version of hubble
93
- ENV HUBBLE_CHECKOUT=v2.2.8
94
- ENV HUBBLE_VERSION=2.2.8
93
+ ENV HUBBLE_CHECKOUT=v2.2.9
94
+ ENV HUBBLE_VERSION=2.2.9
95
95
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
96
96
ENV HUBBLE_SRC_PATH=/hubble_src
97
97
ENV _HOOK_DIR="./pkg/"
@@ -120,8 +120,6 @@ CMD [ "pyinstaller --onedir --noconfirm --log-level ${_BINARY_LOG_LEVEL} --addit
120
120
&& tar -cPvzf /data/hubblestack-${HUBBLE_VERSION}.tar.gz /etc/hubble /etc/osquery /opt/hubble /opt/osquery /var/log/osquery /etc/profile.d/hubble-profile.sh \
121
121
&& mkdir -p /hubble_build/debbuild/hubblestack-${HUBBLE_VERSION} \
122
122
&& tar -xzvf /data/hubblestack-${HUBBLE_VERSION}.tar.gz -C /hubble_build/debbuild/hubblestack-${HUBBLE_VERSION} \
123
- && mkdir -p /hubble_build/debbuild/hubblestack-${HUBBLE_VERSION}/etc/init.d \
124
- && cp /hubble_build/pkg/hubble /hubble_build/debbuild/hubblestack-${HUBBLE_VERSION}/etc/init.d/ \
125
123
&& mkdir -p /hubble_build/debbuild/hubblestack-${HUBBLE_VERSION}/usr/lib/systemd/system \
126
124
&& cp /hubble_build/pkg/hubble.service /hubble_build/debbuild/hubblestack-${HUBBLE_VERSION}/usr/lib/systemd/system/ \
127
125
&& cp -f /hubble_build/conf/hubble /hubble_build/debbuild/hubblestack-${HUBBLE_VERSION}/etc/hubble/ \
@@ -139,6 +137,8 @@ CMD [ "pyinstaller --onedir --noconfirm --log-level ${_BINARY_LOG_LEVEL} --addit
139
137
#todo: get rid of the git dependency with static bin in the future
140
138
-d 'git' \
141
139
--config-files /etc/hubble --config-files /etc/osquery/osquery.conf \
142
- etc/hubble etc/osquery etc/init.d opt usr \
140
+ --after-install /hubble_build/conf/afterinstall-systemd.sh \
141
+ --after-upgrade /hubble_build/conf/afterupgrade.sh \
142
+ etc/hubble etc/osquery opt usr \
143
143
#edit to change iteration number, if necessary
144
144
&& cp hubblestack-${HUBBLE_VERSION}-1.x86_64.rpm /data/hubblestack-${HUBBLE_VERSION}-1.el7.x86_64.rpm" ]
0 commit comments