mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-25 11:58:19 +02:00
Merge 4fc1249402
into 8ac4875c9c
This commit is contained in:
commit
b86a5730a8
7 changed files with 116 additions and 0 deletions
25
automation/Dockerfile
Normal file
25
automation/Dockerfile
Normal file
|
@ -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"]
|
14
cp/Dockerfile
Normal file
14
cp/Dockerfile
Normal file
|
@ -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"]
|
15
das/Dockerfile
Normal file
15
das/Dockerfile
Normal file
|
@ -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"]
|
14
epp/Dockerfile
Normal file
14
epp/Dockerfile
Normal file
|
@ -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"]
|
15
rdap/Dockerfile
Normal file
15
rdap/Dockerfile
Normal 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"]
|
15
whois/port43/Dockerfile
Normal file
15
whois/port43/Dockerfile
Normal file
|
@ -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"]
|
18
whois/web/Dockerfile
Normal file
18
whois/web/Dockerfile
Normal file
|
@ -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"]
|
Loading…
Add table
Add a link
Reference in a new issue