Skip to content

Commit

Permalink
Move Nchan image to organization (#217)
Browse files Browse the repository at this point in the history
Pin Nchan to version 1.3 #209.

Additionally:
* Move app image to parent directory.
  • Loading branch information
marein authored Feb 7, 2024
1 parent 47152e1 commit df5de27
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 132 deletions.
4 changes: 3 additions & 1 deletion deploy/single-server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,14 @@ services:
- "prometheus-path=/metrics/per-object"
restart: on-failure
nchan:
image: marein/php-gaming-website:nchan
image: ghcr.io/gaming-platform/docker-nchan:1.3
restart: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.nchan.priority=20"
- "traefik.http.routers.nchan.rule=PathPrefix(`/sse`)"
- "traefik.http.routers.nchan.middlewares=nchan-stripprefix"
- "traefik.http.middlewares.nchan-stripprefix.stripprefix.prefixes=/sse"
- "prometheus-job=nchan"
- "prometheus-port=81"
web-interface-http:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ services:
- rabbitmq:/var/lib/rabbitmq/mnesia
restart: on-failure
nchan:
image: marein/php-gaming-website:nchan
image: ghcr.io/gaming-platform/docker-nchan:1.3
restart: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.nchan.priority=20"
- "traefik.http.routers.nchan.rule=PathPrefix(`/sse`)"
- "traefik.http.routers.nchan.middlewares=nchan-stripprefix"
- "traefik.http.middlewares.nchan-stripprefix.stripprefix.prefixes=/sse"
php-fpm:
<<: *php-container
labels:
Expand Down Expand Up @@ -118,7 +120,7 @@ services:
php:
build:
context: .
dockerfile: ./docker/php-fpm/Dockerfile
dockerfile: ./docker/Dockerfile
entrypoint: ''
command: 'true'
volumes:
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ x-php-container:
<<: *php-container-volumes
build:
context: .
dockerfile: ./docker/php-fpm/Dockerfile
dockerfile: ./docker/Dockerfile
env_file: ./.env
depends_on:
- mysql
Expand Down Expand Up @@ -125,14 +125,14 @@ services:
- "prometheus-path=/metrics/per-object"
restart: on-failure
nchan:
build:
context: .
dockerfile: ./docker/nchan/Dockerfile
image: ghcr.io/gaming-platform/docker-nchan:1.3
restart: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.nchan.priority=20"
- "traefik.http.routers.nchan.rule=PathPrefix(`/sse`)"
- "traefik.http.routers.nchan.middlewares=nchan-stripprefix"
- "traefik.http.middlewares.nchan-stripprefix.stripprefix.prefixes=/sse"
- "prometheus-job=nchan"
- "prometheus-port=81"
php-fpm:
Expand Down Expand Up @@ -169,7 +169,7 @@ services:
<<: *php-container-volumes
build:
context: .
dockerfile: ./docker/php-fpm/Dockerfile
dockerfile: ./docker/Dockerfile
entrypoint: ''
command: 'true'
phpmyadmin:
Expand Down
6 changes: 3 additions & 3 deletions docker/php-fpm/Dockerfile → docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG environment=development

WORKDIR /project

COPY /docker/php-fpm/composer-install.sh /docker/php-fpm/composer-install-after-code-copy.sh /
COPY /docker/composer-install.sh /docker/composer-install-after-code-copy.sh /
COPY /composer.json /composer.lock /project/
RUN /composer-install.sh

Expand All @@ -25,13 +25,13 @@ ARG environment=development

WORKDIR /project

COPY /docker/php-fpm/entrypoint.sh /docker/php-fpm/warmup.sh /
COPY /docker/entrypoint.sh /docker/warmup.sh /

COPY --from=builder /project /project

RUN /warmup.sh

COPY /docker/php-fpm/${environment}.ini /etc/php/8.3/fpm/conf.d/
COPY /docker/${environment}.ini /etc/php/8.3/fpm/conf.d/

ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-http"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions docker/nchan/Dockerfile

This file was deleted.

99 changes: 0 additions & 99 deletions docker/nchan/default.conf

This file was deleted.

7 changes: 0 additions & 7 deletions docker/nchan/entrypoint.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions project
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,13 @@ acceptance() {
}

buildProductionImages() {
docker build --build-arg environment=production --file docker/php-fpm/Dockerfile --tag marein/php-gaming-website:php-fpm .
docker build --file docker/nchan/Dockerfile --tag marein/php-gaming-website:nchan .
docker build --build-arg environment=production --file docker/Dockerfile --tag marein/php-gaming-website:php-fpm .
}

pushProductionImages() {
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

docker push marein/php-gaming-website:php-fpm
docker push marein/php-gaming-website:nchan
}

if [ "$*" = "" ]
Expand Down

0 comments on commit df5de27

Please sign in to comment.