Dockerize RDAP

This commit is contained in:
Ben van Hartingsveldt 2025-01-14 23:24:52 +01:00
parent 5a5ebaf3b5
commit 73f2ca17b0
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB
2 changed files with 17 additions and 2 deletions

View file

@ -4,12 +4,12 @@ WORKDIR /opt/registry/das
COPY . .
RUN composer install
RUN mv /opt/registry/das/config.php.dist /opt/registry/das/config.php
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/das/config.php
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/das/config.php
RUN composer install
VOLUME /var/log/namingo
CMD ["php","/opt/registry/das/start_das.php"]

15
rdap/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM phpswoole/swoole:php8.3-alpine
WORKDIR /opt/registry/rdap
COPY . .
RUN composer install
RUN mv /opt/registry/rdap/config.php.dist /opt/registry/rdap/config.php
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/rdap/config.php
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/rdap/config.php
VOLUME /var/log/namingo
CMD ["php","/opt/registry/rdap/start_rdap.php"]