Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Davrods: networking update to work with new iptables #662

Merged
merged 2 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions roles/irods_davrods/templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM centos:7

ARG ENV_DAVRODS_IRODS_VERSION
ARG ENV_DAVRODS_VERSION
ARG ENV_FILEBEAT_VERSION=7.14.1

RUN yum install -y \
# Add EPEL repository to download extra packages
Expand Down Expand Up @@ -41,7 +40,6 @@ RUN ( mv /etc/httpd/conf.d/davrods-vhost.conf /etc/httpd/conf.d/davrods-vhost.co
# cleanup RPMs
RUN ( yum clean all && rm -rf *.rpm )


# the executable 'run-httpd.sh' expects the following files to be provided
# and will move them into proper locations before starting the HTTPd service
#
Expand Down Expand Up @@ -89,25 +87,13 @@ RUN sed -ri \
-e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
"/etc/httpd/conf/httpd.conf"


ARG ENV_FILEBEAT_VERSION

###############################################################################
# INSTALLATION FILEBEAT
###############################################################################

RUN wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ENV_FILEBEAT_VERSION}-x86_64.rpm -O /tmp/filebeat.rpm \
&& rpm -Uvh /tmp/filebeat.rpm
ADD filebeat.yml /etc/filebeat/filebeat.yml
RUN chmod go-w /etc/filebeat/filebeat.yml

# EXPOSE 80
EXPOSE 443
CMD ["/opt/run-httpd.sh"]
# To debug:
# comment out the line above and uncommend one below, then
# rebuild, run the docker and then connect inside instance with
# docker shell ...
# comment out the line above and uncommend tail ENTRYPOINT below, then
# rebuild, run the docker and then connect inside instance with docker shell:
# docker exec -ti [docker_id] /bin/bash
#ENTRYPOINT ["tail", "-f", "/dev/null"]


2 changes: 1 addition & 1 deletion roles/irods_davrods/templates/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: '2'
services:
davrods:
network_mode: 'host'
ports:
- '443:443'
build:
context: ./
args:
- ENV_DAVRODS_IRODS_VERSION
- ENV_DAVRODS_VERSION
- SSL_ENV=prod
restart: always
16 changes: 0 additions & 16 deletions roles/irods_davrods/templates/filebeat.yml

This file was deleted.