From 73f2ca17b0460aed77cdc136408b482365da9180 Mon Sep 17 00:00:00 2001 From: Ben van Hartingsveldt Date: Tue, 14 Jan 2025 23:24:52 +0100 Subject: [PATCH] Dockerize RDAP --- das/Dockerfile | 4 ++-- rdap/Dockerfile | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 rdap/Dockerfile diff --git a/das/Dockerfile b/das/Dockerfile index bd48c57..1d92fcb 100644 --- a/das/Dockerfile +++ b/das/Dockerfile @@ -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"] \ No newline at end of file diff --git a/rdap/Dockerfile b/rdap/Dockerfile new file mode 100644 index 0000000..ed131b5 --- /dev/null +++ b/rdap/Dockerfile @@ -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"] \ No newline at end of file