Skip to content

Conversation

@nwang92
Copy link
Contributor

@nwang92 nwang92 commented Oct 18, 2019

Some newer Splunk 8.1.x packages are failing to build Docker images due to:

Step 10/43 : RUN tar -C /minimal/splunk --strip 1 --exclude-from=/tmp/splunk-minimal-exclude.list -zxf /tmp/splunk.tgz
 ---> Using cache
 ---> 4d01bbd1b77a
Step 11/43 : RUN tar -C /extras/splunk --strip 1 --wildcards --ignore-command-error --files-from=/tmp/splunk-minimal-exclude.list -zxf /tmp/splunk.tgz
 ---> Running in b8d920876954
tar: */bin/parsetest*: Not found in archive
tar: Exiting with failure status due to previous errors
The command '/bin/sh -c tar -C /extras/splunk --strip 1 --wildcards --files-from=/tmp/splunk-minimal-exclude.list -zxf /tmp/splunk.tgz' returned a non-zero code: 2
make: *** [splunk-debian-10] Error 2

It seems bin/parsetest is completely removed in new packages. Tarring the extras dir with this regex is causing tar to questionably fail. I've tried a combination of --ignore-command-error and --ignore-failed-read but none of those seem to work as how I want :P

@nwang92
Copy link
Contributor Author

nwang92 commented Oct 18, 2019

Also this needs to get into master for @scentoni

@nwang92
Copy link
Contributor Author

nwang92 commented Oct 21, 2019

@mikedickey I checked the difference between image sizes here building from this branch - nothing too alarming to report other than the actual increase of the Splunk binary.

splunk-debian-10-8.1.0         latest    18ef0eae6ffb        6 minutes ago       1.4GB
splunk-debian-10-7.3.2         latest    6b33bb867e88        9 minutes ago       1.28GB

For reference, using the develop branch for the build gives me the same size (using 7.3.2):

splunk-debian-10               latest    6b33bb867e88        23 minutes ago      1.28GB

I also ran a quick smoke test using an 8.1.0 build and this successfully brought up a standalone:

$ docker run -d -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=helloworld -P splunk-debian-10-8.1.0

@nwang92 nwang92 merged commit 51b834a into develop Oct 21, 2019
@nwang92 nwang92 deleted the bugfix/tar-excludes-error branch October 21, 2019 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants