-
Notifications
You must be signed in to change notification settings - Fork 26
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 #41 from Security-Onion-Solutions/dev
2.3.0
- Loading branch information
Showing
12 changed files
with
102 additions
and
25 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 |
---|---|---|
|
@@ -9,4 +9,4 @@ if [ "$1" = 'influxd' ]; then | |
/init-influxdb.sh "${@:2}" | ||
fi | ||
|
||
exec "$@" | ||
exec "$@" &>/log/influxdb.log |
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 |
---|---|---|
@@ -1,18 +1,29 @@ | ||
FROM redmine:4-passenger | ||
FROM redmine:4.1.1-passenger | ||
|
||
LABEL maintainer "Security Onion Solutions, LLC" | ||
LABEL description="Playbook running in Docker container for use with Security Onion" | ||
|
||
WORKDIR /usr/src/redmine | ||
ARG GID=939 | ||
ARG UID=939 | ||
ARG USERNAME=socore | ||
|
||
ADD playbook/circle_theme.tar.bz2 /usr/src/redmine/public/themes | ||
RUN groupadd --gid ${GID} ${USERNAME} && \ | ||
useradd --uid ${UID} --gid ${GID} \ | ||
--home-dir /opt/so --no-create-home ${USERNAME} | ||
RUN usermod -aG socore redmine | ||
|
||
WORKDIR /usr/src/redmine | ||
ADD playbook/circle_theme.tar.bz2 /usr/src/redmine/public/themes | ||
RUN git clone https://github.com/suer/redmine_webhook.git /usr/src/redmine/plugins/redmine_webhook | ||
|
||
RUN git clone https://github.com/Security-Onion-Solutions/securityonion-playbook-plugin.git /usr/src/redmine/plugins/redmine_playbook | ||
|
||
RUN bundle install --gemfile /usr/src/redmine/Gemfile | ||
|
||
COPY playbook/passenger-nginx-config-template.erb /passenger-nginx-config-template.erb | ||
|
||
CMD ["passenger", "start", "--nginx-config-template", "/passenger-nginx-config-template.erb"] | ||
RUN mkdir -p /playbook/log && \ | ||
chown -R socore:socore /playbook && \ | ||
chmod -R 0770 /playbook | ||
|
||
# Add redirect to /dev/null of the CMD output to prevent logging to docker logs | ||
RUN sed -i '$s/$/ \&>\/dev\/null/' /docker-entrypoint.sh | ||
|
||
CMD ["passenger", "start", "--nginx-config-template", "/passenger-nginx-config-template.erb", "--log-file", "/playbook/log/playbook.log"] |
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
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