-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #427 from splunk/develop
Release/8.1.0
- Loading branch information
Showing
14 changed files
with
244 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2018-2020 Splunk | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM centos:8 | ||
LABEL maintainer="support@splunk.com" | ||
|
||
ARG SCLOUD_URL | ||
ENV SCLOUD_URL ${SCLOUD_URL} | ||
|
||
COPY install.sh /install.sh | ||
RUN /install.sh && rm -rf /install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
# Copyright 2018-2020 Splunk | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -e | ||
|
||
yum -y install glibc-locale-source glibc-langpack-en | ||
|
||
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | ||
export LANG=en_US.utf8 | ||
|
||
yum -y update && yum -y install wget sudo epel-release make | ||
yum -y install ansible python3-requests python3-jmespath | ||
|
||
# Install busybox | ||
wget -O /bin/busybox https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-`arch` | ||
chmod +x /bin/busybox | ||
|
||
# Install scloud | ||
wget -O /usr/bin/scloud.tar.gz ${SCLOUD_URL} | ||
tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/ | ||
rm /usr/bin/scloud.tar.gz | ||
|
||
cd /bin | ||
ln -s busybox killall | ||
ln -s busybox netstat | ||
ln -s busybox nslookup | ||
ln -s busybox readline | ||
ln -s busybox route | ||
ln -s busybox syslogd | ||
ln -s busybox traceroute | ||
chmod u+s /bin/ping | ||
groupadd sudo | ||
|
||
echo " | ||
## Allows people in group sudo to run all commands | ||
%sudo ALL=(ALL) ALL" >> /etc/sudoers | ||
|
||
# symlink for python3 | ||
ln -s /bin/python3 /bin/python | ||
|
||
# Clean | ||
yum clean all | ||
rm -rf /install.sh /anaconda-post.log /var/log/anaconda/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
ARG SPLUNK_PRODUCT=splunk | ||
FROM ${SPLUNK_PRODUCT}-centos-8:latest | ||
USER root | ||
|
||
RUN yum -y update | ||
RUN yum -y install gcc openssl-devel bzip2-devel libffi-devel python3-pip python2 python2-pip | ||
|
||
# manual installation of python 3.7 as default distro version is 3.6 | ||
RUN wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \ | ||
&& tar xzf Python-3.7.4.tgz \ | ||
&& cd Python-3.7.4 \ | ||
&& ./configure --enable-optimizations --prefix=/usr \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm Python-3.7.4.tgz \ | ||
&& rm -r Python-3.7.4 \ | ||
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ | ||
&& python3.7 get-pip.py \ | ||
&& rm -f get-pip.py \ | ||
# pip version is not automatically "fixed", unlike debian-based | ||
&& ln -sf /usr/bin/pip2 /usr/bin/pip \ | ||
&& ln -sf /usr/bin/pip3.7 /usr/bin/pip3 | ||
# add python alias | ||
# && ln -s /bin/python3 /bin/python | ||
|
||
RUN yum remove -y --setopt=tsflags=noscripts gcc openssl-devel bzip2-devel libffi-devel \ | ||
&& yum autoremove -y \ | ||
&& yum clean all | ||
RUN pip3 --no-cache-dir install ansible requests \ | ||
&& pip --no-cache-dir install pyyaml requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.