Skip to content
Snippets Groups Projects

[faas#26] integration faas-registry with components.

Merged Dariusz Janny requested to merge janny/faas-registry:master into master
12 files
+ 571
7
Compare changes
  • Side-by-side
  • Inline
Files
12
+ 9
2
@@ -11,6 +11,7 @@ RUN echo $FAAS_REGISTRY_VERSION > /faas-docker-version
RUN apt-get -q update && \
apt-get install -y memcached apache2 composer git mc wget && \
apt-get install -y php-mysql php-curl php-memcached php-apcu php-cli php-bcmath php-xml libapache2-mod-php && \
apt-get install -y mariadb-client && \
apt-get -y autoremove && \
apt-get -y clean
@@ -21,12 +22,13 @@ RUN git clone https://github.com/bcit-ci/CodeIgniter.git /opt/codeigniter && cd
RUN cd /opt/rr3 && bash install.sh && \
cd /opt/rr3/application/config && \
cp config-default.php config.php && \
cp config_rr-default.php config_rr.php && \
cp database-default.php database.php && \
cp email-default.php email.php && \
cp memcached-default.php memcached.php
COPY ./conf/etc/registry/config.php /opt/rr3/application/config/config.php
COPY ./conf/etc/registry/database.php /opt/rr3/application/config/database.php
RUN cp /opt/codeigniter/index.php /opt/rr3/index.php && \
sed -i 's#$system_path = \x27system\x27;#$system_path = \x27/opt/codeigniter/system\x27;#' /opt/rr3/index.php && \
cd /opt/rr3/application && \
@@ -34,6 +36,11 @@ RUN cp /opt/codeigniter/index.php /opt/rr3/index.php && \
EXPOSE 80
RUN mkdir -p /docker-entrypoint-initdb.d /var/log/rr3
RUN chmod 777 /var/log/rr3 /opt/rr3/application/models/Proxies
COPY ./conf/sql/01-init-registry.sql.template /docker-entrypoint-initdb.d
COPY ./conf/etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available
COPY ./conf/etc/entrypoint /etc/entrypoint
Loading