mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Updating to docker buildx for multi-arch builds (amd64 + arm64)
This commit is contained in:
parent
31eb94f58f
commit
0f27ba81e0
6 changed files with 16 additions and 18 deletions
24
Makefile
24
Makefile
|
@ -103,22 +103,22 @@ pull:
|
|||
- docker pull newsblur/newsblur_monitor
|
||||
|
||||
build_web:
|
||||
- docker image build . --platform linux/amd64 --file=docker/newsblur_base_image.Dockerfile --tag=newsblur/newsblur_python3
|
||||
- docker buildx build . --platform linux/amd64,linux/arm64 --file=docker/newsblur_base_image.Dockerfile --tag=newsblur/newsblur_python3
|
||||
build_node:
|
||||
- docker image build . --platform linux/amd64 --file=docker/node/Dockerfile --tag=newsblur/newsblur_node
|
||||
- docker buildx build . --platform linux/amd64,linux/arm64 --file=docker/node/Dockerfile --tag=newsblur/newsblur_node
|
||||
build_monitor:
|
||||
- docker image build . --platform linux/amd64 --file=docker/monitor/Dockerfile --tag=newsblur/newsblur_monitor
|
||||
- docker buildx build . --platform linux/amd64,linux/arm64 --file=docker/monitor/Dockerfile --tag=newsblur/newsblur_monitor
|
||||
build_deploy:
|
||||
- docker image build . --platform linux/amd64 --file=docker/newsblur_deploy.Dockerfile --tag=newsblur/newsblur_deploy
|
||||
- docker buildx build . --platform linux/amd64,linux/arm64 --file=docker/newsblur_deploy.Dockerfile --tag=newsblur/newsblur_deploy
|
||||
build: build_web build_node build_monitor build_deploy
|
||||
push_web: build_web
|
||||
- docker push newsblur/newsblur_python3
|
||||
push_node: build_node
|
||||
- docker push newsblur/newsblur_node
|
||||
push_monitor: build_monitor
|
||||
- docker push newsblur/newsblur_monitor
|
||||
push_deploy: build_deploy
|
||||
- docker push newsblur/newsblur_deploy
|
||||
push_web:
|
||||
- docker buildx build . --push --platform linux/amd64,linux/arm64 --file=docker/newsblur_base_image.Dockerfile --tag=newsblur/newsblur_python3
|
||||
push_node:
|
||||
- docker buildx build . --push --platform linux/amd64,linux/arm64 --file=docker/node/Dockerfile --tag=newsblur/newsblur_node
|
||||
push_monitor:
|
||||
- docker buildx build . --push --platform linux/amd64,linux/arm64 --file=docker/monitor/Dockerfile --tag=newsblur/newsblur_monitor
|
||||
push_deploy:
|
||||
- docker buildx build . --push --platform linux/amd64,linux/arm64 --file=docker/newsblur_deploy.Dockerfile --tag=newsblur/newsblur_deploy
|
||||
push_images: push_web push_node push_monitor push_deploy
|
||||
push: build push_images
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
git:
|
||||
repo: https://github.com/samuelclay/NewsBlur.git
|
||||
dest: /srv/newsblur/
|
||||
version: pipeline
|
||||
version: master
|
||||
register: pulled
|
||||
tags:
|
||||
- static
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
- /srv/newsblur/node:/srv/node
|
||||
with_items:
|
||||
- container_name: imageproxy
|
||||
image: willnorris/imageproxy
|
||||
image: ghcr.io/willnorris/imageproxy
|
||||
ports: 8088:8080
|
||||
target_host: node-images
|
||||
when: item.target_host in inventory_hostname
|
||||
|
|
|
@ -50,7 +50,7 @@ services:
|
|||
|
||||
imageproxy:
|
||||
container_name: imageproxy
|
||||
image: willnorris/imageproxy:latest
|
||||
image: ghcr.io/willnorris/imageproxy:latest
|
||||
user: "${CURRENT_UID}:${CURRENT_GID}"
|
||||
entrypoint: /app/imageproxy -addr 0.0.0.0:8088 -cache /tmp/imageproxy -verbose
|
||||
restart: unless-stopped
|
||||
|
|
|
@ -11,7 +11,6 @@ RUN set -ex \
|
|||
&& buildDeps=' \
|
||||
patch \
|
||||
gfortran \
|
||||
lib32ncurses5-dev \
|
||||
libblas-dev \
|
||||
libffi-dev \
|
||||
libjpeg-dev \
|
||||
|
|
|
@ -85,8 +85,7 @@
|
|||
<img src="/media/img/logo_512.png" class="logo">
|
||||
<h1>NewsBlur is in <span class="error404">maintenance mode</span></h1>
|
||||
<div class="description">
|
||||
<p>Performing a very quick, one minute downtime maintenance. We're moving the Redis database servers off older infrastructure and onto a Docker-based mesh. This has to be done FOUR TIMES for the four Redis databases (user, story, sessions, and pubsub).</p>
|
||||
<p>I'm only doing one a day, so if you're lucky enough to catch this message, know that it'll be gone within the minute.</p>
|
||||
<p>This is a unique maintenance mode. This is only for deploying the new front-end asset packager we're switching to (here's the merge on GitHub). It's a bit messy though, since there is a brief moment when switching from the old to the new that can be in a buggy, liminal state of using part of one system and part of another. So to avoid that I'm just going to throw up a maintenance page for a quick minute.</p>
|
||||
<p>To pass the time, <a href="http://mltshp.com/popular">check out what's popular on MLTSHP</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue