File tree 8 files changed +24
-56
lines changed
8 files changed +24
-56
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,10 @@ RUN yum makecache fast && yum -y update
16
16
# paths that hubble or hubble parts need in the package
17
17
RUN mkdir -p /etc/hubble/hubble.d /opt/hubble /opt/osquery /var/log/hubble_osquery/backuplogs
18
18
19
- # copy in and process osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
19
+ # extract osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
20
20
ARG OSQUERY_TAR_FILENAME=osquery_4hubble.tar
21
- COPY ${OSQUERY_TAR_FILENAME} /opt/osquery/${OSQUERY_TAR_FILENAME}
22
- RUN cd /opt/osquery \
23
- && tar xf "$OSQUERY_TAR_FILENAME" \
24
- && rm -f "$OSQUERY_TAR_FILENAME" \
25
- && cd / \
26
- && /opt/osquery/osqueryi --version
21
+ ADD ${OSQUERY_TAR_FILENAME} /opt/osquery/
22
+ RUN /opt/osquery/osqueryi --version
27
23
28
24
# install packages that should be needed for ligbit2 compilation and successful pyinstaller run
29
25
RUN yum -y install git \
Original file line number Diff line number Diff line change @@ -16,14 +16,10 @@ RUN yum makecache fast && yum -y update
16
16
# paths that hubble or hubble parts need in the package
17
17
RUN mkdir -p /etc/hubble/hubble.d /opt/hubble /opt/osquery /var/log/hubble_osquery/backuplogs
18
18
19
- # copy in and process osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
19
+ # extract osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
20
20
ARG OSQUERY_TAR_FILENAME=osquery_4hubble.tar
21
- COPY ${OSQUERY_TAR_FILENAME} /opt/osquery/${OSQUERY_TAR_FILENAME}
22
- RUN cd /opt/osquery \
23
- && tar xf "$OSQUERY_TAR_FILENAME" \
24
- && rm -f "$OSQUERY_TAR_FILENAME" \
25
- && cd / \
26
- && /opt/osquery/osqueryi --version
21
+ ADD ${OSQUERY_TAR_FILENAME} /opt/osquery/
22
+ RUN /opt/osquery/osqueryi --version
27
23
28
24
# install packages that should be needed for ligbit2 compilation and successful pyinstaller run
29
25
RUN yum -y install git \
Original file line number Diff line number Diff line change @@ -16,14 +16,10 @@ RUN yum makecache fast && yum -y update
16
16
# paths that hubble or hubble parts need in the package
17
17
RUN mkdir -p /etc/hubble/hubble.d /opt/hubble /opt/osquery /var/log/hubble_osquery/backuplogs
18
18
19
- # copy in and process osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
19
+ # extract osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
20
20
ARG OSQUERY_TAR_FILENAME=osquery_4hubble.tar
21
- COPY ${OSQUERY_TAR_FILENAME} /opt/osquery/${OSQUERY_TAR_FILENAME}
22
- RUN cd /opt/osquery \
23
- && tar xf "$OSQUERY_TAR_FILENAME" \
24
- && rm -f "$OSQUERY_TAR_FILENAME" \
25
- && cd / \
26
- && /opt/osquery/osqueryi --version
21
+ ADD ${OSQUERY_TAR_FILENAME} /opt/osquery/
22
+ RUN /opt/osquery/osqueryi --version
27
23
28
24
# install packages that should be needed for ligbit2 compilation and successful pyinstaller run
29
25
RUN yum -y install git \
Original file line number Diff line number Diff line change @@ -16,14 +16,10 @@ RUN dnf -y update
16
16
# paths that hubble or hubble parts need in the package
17
17
RUN mkdir -p /etc/hubble/hubble.d /opt/hubble /opt/osquery /var/log/hubble_osquery/backuplogs
18
18
19
- # copy in and process osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
19
+ # extract osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
20
20
ARG OSQUERY_TAR_FILENAME=osquery_4hubble.tar
21
- COPY ${OSQUERY_TAR_FILENAME} /opt/osquery/${OSQUERY_TAR_FILENAME}
22
- RUN cd /opt/osquery \
23
- && tar xf "$OSQUERY_TAR_FILENAME" \
24
- && rm -f "$OSQUERY_TAR_FILENAME" \
25
- && cd /
26
- # && /opt/osquery/osqueryi --version
21
+ ADD ${OSQUERY_TAR_FILENAME} /opt/osquery/
22
+ RUN /opt/osquery/osqueryi --version
27
23
28
24
# install packages that should be needed for ligbit2 compilation and successful pyinstaller run
29
25
RUN dnf -y install git \
Original file line number Diff line number Diff line change @@ -17,14 +17,10 @@ RUN apt-get update \
17
17
# paths that hubble or hubble parts need in the package
18
18
RUN mkdir -p /etc/hubble/hubble.d /opt/hubble /opt/osquery /var/log/hubble_osquery/backuplogs
19
19
20
- # copy in and process osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
20
+ # extract osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
21
21
ARG OSQUERY_TAR_FILENAME=osquery_4hubble.tar
22
- COPY ${OSQUERY_TAR_FILENAME} /opt/osquery/${OSQUERY_TAR_FILENAME}
23
- RUN cd /opt/osquery \
24
- && tar xf "$OSQUERY_TAR_FILENAME" \
25
- && rm -f "$OSQUERY_TAR_FILENAME" \
26
- && cd / \
27
- && /opt/osquery/osqueryi --version
22
+ ADD ${OSQUERY_TAR_FILENAME} /opt/osquery/
23
+ RUN /opt/osquery/osqueryi --version
28
24
29
25
# install packages that should be needed for ligbit2 compilation and successful pyinstaller run
30
26
RUN apt-get -y install git curl \
Original file line number Diff line number Diff line change @@ -17,14 +17,10 @@ RUN apt-get update \
17
17
# paths that hubble or hubble parts need in the package
18
18
RUN mkdir -p /etc/hubble/hubble.d /opt/hubble /opt/osquery /var/log/hubble_osquery/backuplogs
19
19
20
- # copy in and process osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
20
+ # extract osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
21
21
ARG OSQUERY_TAR_FILENAME=osquery_4hubble.tar
22
- COPY ${OSQUERY_TAR_FILENAME} /opt/osquery/${OSQUERY_TAR_FILENAME}
23
- RUN cd /opt/osquery \
24
- && tar xf "$OSQUERY_TAR_FILENAME" \
25
- && rm -f "$OSQUERY_TAR_FILENAME" \
26
- && cd / \
27
- && /opt/osquery/osqueryi --version
22
+ ADD ${OSQUERY_TAR_FILENAME} /opt/osquery/
23
+ RUN /opt/osquery/osqueryi --version
28
24
29
25
# install packages that should be needed for ligbit2 compilation and successful pyinstaller run
30
26
RUN apt-get -y install git curl \
Original file line number Diff line number Diff line change @@ -17,14 +17,10 @@ RUN apt-get update \
17
17
# paths that hubble or hubble parts need in the package
18
18
RUN mkdir -p /etc/hubble/hubble.d /opt/hubble /opt/osquery /var/log/hubble_osquery/backuplogs
19
19
20
- # copy in and process osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
20
+ # extract osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
21
21
ARG OSQUERY_TAR_FILENAME=osquery_4hubble.tar
22
- COPY ${OSQUERY_TAR_FILENAME} /opt/osquery/${OSQUERY_TAR_FILENAME}
23
- RUN cd /opt/osquery \
24
- && tar xf "$OSQUERY_TAR_FILENAME" \
25
- && rm -f "$OSQUERY_TAR_FILENAME" \
26
- && cd / \
27
- && /opt/osquery/osqueryi --version
22
+ ADD ${OSQUERY_TAR_FILENAME} /opt/osquery/
23
+ RUN /opt/osquery/osqueryi --version
28
24
29
25
# install packages that should be needed for ligbit2 compilation and successful pyinstaller run
30
26
RUN apt-get -y install git curl \
Original file line number Diff line number Diff line change @@ -17,14 +17,10 @@ RUN apt-get update \
17
17
# paths that hubble or hubble parts need in the package
18
18
RUN mkdir -p /etc/hubble/hubble.d /opt/hubble /opt/osquery /var/log/hubble_osquery/backuplogs
19
19
20
- # copy in and process osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
20
+ # extract osquery files. optionally pass in osquery filename with OSQUERY_TAR_FILENAME build-arg
21
21
ARG OSQUERY_TAR_FILENAME=osquery_4hubble.tar
22
- COPY ${OSQUERY_TAR_FILENAME} /opt/osquery/${OSQUERY_TAR_FILENAME}
23
- RUN cd /opt/osquery \
24
- && tar xf "$OSQUERY_TAR_FILENAME" \
25
- && rm -f "$OSQUERY_TAR_FILENAME" \
26
- && cd / \
27
- && /opt/osquery/osqueryi --version
22
+ ADD ${OSQUERY_TAR_FILENAME} /opt/osquery/
23
+ RUN /opt/osquery/osqueryi --version
28
24
29
25
# install packages that should be needed for ligbit2 compilation and successful pyinstaller run
30
26
RUN apt-get -y install git curl \
You can’t perform that action at this time.
0 commit comments