diff --git a/automation/Dockerfile b/automation/Dockerfile new file mode 100644 index 0000000..d7a858b --- /dev/null +++ b/automation/Dockerfile @@ -0,0 +1,25 @@ +FROM phpswoole/swoole:php8.3-alpine + +RUN apk add gmp +RUN apk add gmp-dev + +RUN docker-php-ext-install gmp +RUN docker-php-ext-install mysqli + +RUN apk del gmp-dev + +WORKDIR /opt/registry/automation + +COPY . . + +RUN composer install + +RUN mv /opt/registry/automation/config.php.dist /opt/registry/automation/config.php +RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/automation/config.php +RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/automation/config.php + +VOLUME /var/log/namingo + +RUN echo -e "*\t*\t*\t*\t*\t/usr/bin/php /opt/registry/automation/cron.php 1>> /dev/null 2>&1" >> /var/spool/cron/crontabs/root + +CMD ["crond"] \ No newline at end of file diff --git a/cp/Dockerfile b/cp/Dockerfile new file mode 100644 index 0000000..ce39e99 --- /dev/null +++ b/cp/Dockerfile @@ -0,0 +1,14 @@ +FROM php:8.3-alpine + +WORKDIR /var/www/cp + +# Install Composer +COPY --from=composer:latest /usr/bin/composer /usr/bin/composer + +COPY . . + +RUN composer install + +VOLUME /var/log/namingo + +CMD ["php-fpm","-D"] \ No newline at end of file diff --git a/das/Dockerfile b/das/Dockerfile new file mode 100644 index 0000000..1d92fcb --- /dev/null +++ b/das/Dockerfile @@ -0,0 +1,15 @@ +FROM phpswoole/swoole:php8.3-alpine + +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 + +VOLUME /var/log/namingo + +CMD ["php","/opt/registry/das/start_das.php"] \ No newline at end of file diff --git a/epp/Dockerfile b/epp/Dockerfile new file mode 100644 index 0000000..20bdbfc --- /dev/null +++ b/epp/Dockerfile @@ -0,0 +1,14 @@ +FROM phpswoole/swoole:php8.3-alpine + +WORKDIR /opt/registry/epp + +COPY . . + +RUN composer install +RUN mv /opt/registry/epp/config.php.dist /opt/registry/epp/config.php +RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/epp/config.php +RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/epp/config.php + +VOLUME /var/log/namingo + +CMD ["php","/opt/registry/epp/start_epp.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 diff --git a/whois/port43/Dockerfile b/whois/port43/Dockerfile new file mode 100644 index 0000000..5bc50f7 --- /dev/null +++ b/whois/port43/Dockerfile @@ -0,0 +1,15 @@ +FROM phpswoole/swoole:php8.3-alpine + +WORKDIR /opt/registry/whois/port43 + +COPY . . + +RUN composer install + +RUN mv /opt/registry/whois/port43/config.php.dist /opt/registry/whois/port43/config.php +RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/whois/port43/config.php +RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/whois/port43/config.php + +VOLUME /var/log/namingo + +CMD ["php","/opt/registry/whois/port43/start_whois.php"] \ No newline at end of file diff --git a/whois/web/Dockerfile b/whois/web/Dockerfile new file mode 100644 index 0000000..e347026 --- /dev/null +++ b/whois/web/Dockerfile @@ -0,0 +1,18 @@ +FROM php:8.3-alpine + +WORKDIR /var/www/whois + +COPY . . + +# Install Composer +COPY --from=composer:latest /usr/bin/composer /usr/bin/composer + +RUN composer install + +RUN mv /var/www/whois/config.php.dist /var/www/whois/config.php +RUN sed -i "s|'whois_url' => '.*'|'whois_url' => 'whois.${REGISTRY_DOMAIN}'|" /var/www/whois/config.php +RUN sed -i "s|'rdap_url' => '.*'|'rdap_url' => 'rdap.${REGISTRY_DOMAIN}'|" /var/www/whois/config.php + +VOLUME /var/log/namingo + +CMD ["php-fpm","-D"] \ No newline at end of file