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

Docker Support #527

Closed
bdstark opened this issue Oct 10, 2020 · 2 comments
Closed

Docker Support #527

bdstark opened this issue Oct 10, 2020 · 2 comments
Assignees

Comments

@bdstark
Copy link

bdstark commented Oct 10, 2020

Needed to do some validation on-prem in a private network, and spent some time making up a Dockerfile to get it running. Stayed with the installation documentation in terms of Ubuntu/32 bit version which was a bit difficult with its age, the older Jave version, and Oracles change in direction with Java. Throwing it out there in case anybody needs a starting point. Setting up the Apache server as a reverse proxy to origins was a big help due to browser CORS restriction. That configuration was injected as a volume in a docker-compose file. Apologize for the formatting, it is lost in the post.

Dockerfile:
`FROM ubuntu:16.04

RUN dpkg --add-architecture i386
RUN apt-get update && apt-get upgrade && apt-get install -y \
apache2 \
apache2-doc \
ant \
git \
lib32gcc1 \
lib32stdc++6 \
libapache2-mod-php \
libcurl4-gnutls-dev:i386 \
libstdc++6:i386 \
php \
php-curl \
php-dev \
php-xdebug \
php-xml \
python2.7 \
python-pip \
python-matplotlib \
software-properties-common && \
add-apt-repository universe && \
apt-get install -y openjdk-8-jdk && \
rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html/
RUN rm -f * && \
git clone --recurse-submodules https://github.com/Dash-Industry-Forum/DASH-IF-Conformance && \
chown -R www-data:www-data /var/www/ && \
echo 'www-data ALL=NOPASSWD: ALL' >> /etc/sudoers
RUN /usr/sbin/a2enmod headers && \
/usr/sbin/a2enmod proxy_http

EXPOSE 80/tcp
STOPSIGNAL SIGWINCH
CMD ["/usr/sbin/apache2ctl", "-DFOREGROUND"]`

docker-compose.yml:
`version: '3.8'

services:
dashifct:
container_name: dashifct
image: {private_repo}
restart: on-failure
ports:
- 8030:80
volumes:
- ./000-default.conf:/etc/apache2/sites-available/000-default.conf`

Apache:
<VirtualHost *:80> ProxyPass "/dash" "http://{dash_origin:port}/dash" ProxyPass "/hls" "http://{hls_origin:port}/hls" RedirectMatch '^/$' '/DASH-IF-Conformance/Conformance-Frontend/' DocumentRoot /var/www/html <Directory /> Order Allow,Deny Allow from all AllowOverride all Header set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS" Header set Referrer-Policy "no-referrer-when-downgrade" </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>

@dsilhavy
Copy link
Contributor

dsilhavy commented Feb 2, 2022

@aldafu This might help for #518

@dsilhavy
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants