This commit is contained in:
aggie 2026-05-24 01:03:05 +00:00
commit 929b0e3cf7
7161 changed files with 670385 additions and 0 deletions

8
.cursorignore Normal file
View file

@ -0,0 +1,8 @@
# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
extlib/
var/
.sass-cache/
build/
logs/
locks/
temp/

88
.devcontainer/Dockerfile Normal file
View file

@ -0,0 +1,88 @@
# Dreamwidth Test Environment for GitHub Codespaces
# Optimized for running tests only (no database, Apache, etc.)
FROM ubuntu:22.04
LABEL org.opencontainers.image.authors="Mark Smith <mark@dreamwidth.org>"
# Set working directory
WORKDIR /workspaces/dreamwidth
# Environment setup
ENV LJHOME /workspaces/dreamwidth
ENV PERL5LIB /opt/dreamwidth-extlib/lib/perl5
ENV DEBIAN_FRONTEND noninteractive
# Install basic dependencies needed for Docker build process
RUN apt-get update && \
apt-get install -y apt-transport-https curl git cpanminus tzdata rsync vim openssh-server locales && \
bash -c 'echo "Etc/UTC" > /etc/timezone' && \
dpkg-reconfigure -f noninteractive tzdata && \
locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8
# Copy and install system dependencies automatically from dependencies-system file
COPY doc/dependencies-system /tmp/dependencies-system
RUN apt-get install -y $(cat /tmp/dependencies-system | grep -v '^#' | grep -v '^$' | tr '\n' ' ') && \
rm /tmp/dependencies-system
# Install dependencies for local development full-stack
RUN apt-get install -y mysql-server mysql-client memcached htop
# Install Node.js 20 LTS (for sass and esbuild)
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs && \
npm install -g sass esbuild
# Install cpm for faster CPAN module installation
RUN cpanm -nq App::cpm
# Copy dependency files to install Perl modules
COPY doc/dependencies-cpanm /tmp/dependencies-cpanm
# Install CPAN dependencies to system location (won't be overwritten by volume mount)
RUN cpm install -v --show-build-log-on-failure --no-color --resolver metadb -L /opt/dreamwidth-extlib/ - < /tmp/dependencies-cpanm && \
rm -rf /root/.perl-cpm && \
rm -rf /root/.cpanm && \
rm /tmp/dependencies-cpanm
# Copy full source tree for pre-baking schema and static assets
# Placed late in the Dockerfile to avoid busting cache for package/CPAN layers.
# At runtime, a bind mount overlays /workspaces/dreamwidth, so anything written
# here is only used during the build and then in /opt/dreamwidth-static/.
COPY . /workspaces/dreamwidth/
# Set up config symlink needed by update-db.pl and build-static.sh
RUN mkdir -p $LJHOME/ext/local && \
ln -ns $LJHOME/.devcontainer/config/etc/dw-etc $LJHOME/ext/local/etc
# Pre-populate database schema and build static assets into the image.
# Start MySQL, run all schema migrations, build statics, copy to a safe
# location outside the workspace (which gets overlaid at runtime), then
# clean up MySQL.
RUN service mysql start && \
mysql -u root -e "\
CREATE DATABASE IF NOT EXISTS dw_global CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; \
CREATE DATABASE IF NOT EXISTS dw_cluster01 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; \
CREATE DATABASE IF NOT EXISTS dw_schwartz CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; \
CREATE USER IF NOT EXISTS 'dw'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'dw'; \
CREATE USER IF NOT EXISTS 'dw'@'localhost' IDENTIFIED WITH mysql_native_password BY 'dw'; \
GRANT ALL PRIVILEGES ON dw_global.* TO 'dw'@'127.0.0.1'; \
GRANT ALL PRIVILEGES ON dw_cluster01.* TO 'dw'@'127.0.0.1'; \
GRANT ALL PRIVILEGES ON dw_schwartz.* TO 'dw'@'127.0.0.1'; \
GRANT ALL PRIVILEGES ON dw_global.* TO 'dw'@'localhost'; \
GRANT ALL PRIVILEGES ON dw_cluster01.* TO 'dw'@'localhost'; \
GRANT ALL PRIVILEGES ON dw_schwartz.* TO 'dw'@'localhost'; \
FLUSH PRIVILEGES;" && \
mysql -u root dw_schwartz < $LJHOME/doc/schwartz-schema.sql && \
bin/upgrading/update-db.pl -r && \
bin/upgrading/update-db.pl -r --cluster=all && \
bin/upgrading/update-db.pl -r -p && \
bin/upgrading/texttool.pl load && \
t/bin/initialize-db && \
bin/build-static.sh && \
mkdir -p /opt/dreamwidth-static && \
cp -a build/static/* /opt/dreamwidth-static/ && \
service mysql stop
# Default command
CMD ["bash"]

View file

@ -0,0 +1,35 @@
{
"name": "Dreamwidth Test Environment",
"image": "ghcr.io/dreamwidth/devcontainer:latest",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/sshd:1": {
"version": "latest"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.perl",
"ms-vscode.test-adapter-converter",
"hbenl.vscode-test-explorer"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
}
}
},
"runArgs": ["--security-opt", "label=disable", "-p", "8080:8080", "-p", "8081:8081"],
"containerEnv": {
"LJHOME": "/workspaces/dreamwidth",
"PERL5LIB": "/opt/dreamwidth-extlib/lib/perl5",
"LJ_IS_DEV_SERVER": "1",
"DEBIAN_FRONTEND": "noninteractive",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US.UTF-8"
},
"postCreateCommand": "/bin/bash .devcontainer/setup.sh",
"postStartCommand": "/bin/bash .devcontainer/start.sh",
"remoteUser": "root",
"workspaceFolder": "/workspaces/dreamwidth"
}

View file

@ -0,0 +1,40 @@
# Dreamwidth Test Environment for GitHub Codespaces
# Optimized for running tests only (no database, Apache, etc.)
FROM ubuntu:24.04
LABEL org.opencontainers.image.authors="Mark Smith <mark@dreamwidth.org>"
# Environment setup
ENV LJHOME /workspaces/dreamwidth
ENV PERL5LIB /workspaces/dreamwidth/extlib/lib/perl5
ENV DEBIAN_FRONTEND noninteractive
# Install basic dependencies needed for Docker build process
RUN apt-get update && \
apt-get install -y apt-transport-https curl git cpanminus tzdata rsync vim openssh-server && \
bash -c 'echo "Etc/UTC" > /etc/timezone' && \
dpkg-reconfigure -f noninteractive tzdata
# Copy and install system dependencies automatically from dependencies-system file
COPY doc/dependencies-system /tmp/dependencies-system
RUN apt-get install -y $(cat /tmp/dependencies-system | grep -v '^#' | grep -v '^$' | tr '\n' ' ') && \
rm /tmp/dependencies-system && \
rm -rf /var/lib/apt/lists/*
# Install cpm for faster CPAN module installation
RUN cpanm -nq App::cpm
# Copy dependency files to install Perl modules
COPY doc/dependencies-cpanm /tmp/dependencies-cpanm
# Install CPAN dependencies to system location (won't be overwritten by volume mount)
RUN cpm install -v --show-build-log-on-failure --no-color -L /opt/dreamwidth-extlib/ - < /tmp/dependencies-cpanm && \
rm -rf /root/.perl-cpm && \
rm -rf /root/.cpanm && \
rm /tmp/dependencies-cpanm
# Set working directory
WORKDIR /workspaces/dreamwidth
# Default command
CMD ["bash"]

View file

@ -0,0 +1,33 @@
{
"name": "Dreamwidth Test Environment",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/sshd:1": {
"version": "latest"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.perl",
"ms-vscode.test-adapter-converter",
"hbenl.vscode-test-explorer"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
}
}
},
"containerEnv": {
"LJHOME": "/workspaces/dreamwidth",
"PERL5LIB": "/opt/dreamwidth-extlib/lib/perl5",
"DEBIAN_FRONTEND": "noninteractive"
},
"postCreateCommand": "echo 'Dreamwidth test environment ready! SSH is available on port 22.' && echo 'Run: prove t/00-compile.t' && ls -la t/ | head -10",
"remoteUser": "root",
"workspaceFolder": "/workspaces/dreamwidth"
}

41
.devcontainer/setup.sh Normal file
View file

@ -0,0 +1,41 @@
set -xe
# Instantiate our configs
mkdir -p $LJHOME/ext/local
ln -ns $LJHOME/.devcontainer/config/etc/dw-etc $LJHOME/ext/local/etc || true
# Get database going, all we need for now
service mysql start
# Basic config (all IF NOT EXISTS — instant no-op when pre-baked)
mysql -u root -e "\
CREATE DATABASE IF NOT EXISTS dw_global CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; \
CREATE DATABASE IF NOT EXISTS dw_cluster01 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; \
CREATE DATABASE IF NOT EXISTS dw_schwartz CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; \
CREATE USER IF NOT EXISTS 'dw'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'dw'; \
CREATE USER IF NOT EXISTS 'dw'@'localhost' IDENTIFIED WITH mysql_native_password BY 'dw'; \
GRANT ALL PRIVILEGES ON dw_global.* TO 'dw'@'127.0.0.1'; \
GRANT ALL PRIVILEGES ON dw_cluster01.* TO 'dw'@'127.0.0.1'; \
GRANT ALL PRIVILEGES ON dw_schwartz.* TO 'dw'@'127.0.0.1'; \
GRANT ALL PRIVILEGES ON dw_global.* TO 'dw'@'localhost'; \
GRANT ALL PRIVILEGES ON dw_cluster01.* TO 'dw'@'localhost'; \
GRANT ALL PRIVILEGES ON dw_schwartz.* TO 'dw'@'localhost'; \
FLUSH PRIVILEGES;"
# Configure database and load initial data (idempotent — instant when no new migrations)
bin/upgrading/update-db.pl -r
bin/upgrading/update-db.pl -r --cluster=all
bin/upgrading/update-db.pl -r -p
bin/upgrading/texttool.pl load
# Set up testing database(s)
t/bin/initialize-db
# Symlink pre-built static assets from the image.
# If you change CSS/JS, run bin/build-static.sh — writes go through the symlink.
mkdir -p $LJHOME/build
ln -snf /opt/dreamwidth-static $LJHOME/build/static
# Set up apache config
rm -rf /etc/apache2
ln -ns $LJHOME/.devcontainer/config/etc/apache2 /etc/apache2 || true

11
.devcontainer/start.sh Executable file
View file

@ -0,0 +1,11 @@
set -xe
# Start services
service mysql start
service memcached start
mkdir -p $LJHOME/logs
# Plack/Starman on port 8080
perl bin/starman --port 8080 --log $LJHOME/logs --daemonize
# Apache available on port 8081 if needed: apache2ctl start

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
.git

9
.github/pull_request_template.md vendored Normal file
View file

@ -0,0 +1,9 @@
CODE TOUR: summarize here.
<!--
Above, please explain how these changes affect users. This summary must be a single line that starts with the text `CODE TOUR:`.
The rest of your PR description is for other developers, but the CODE TOUR line is for whoever writes the next code tour post. See https://dw-dev.dreamwidth.org/tag/code+tour for examples.
If this PR has no direct effect on users, write a summary anyway, but include the text `no-impact` as a hint for sorting.
-->

61
.github/workflows/base-build.yml vendored Normal file
View file

@ -0,0 +1,61 @@
name: (package) base image nightly build
on:
workflow_dispatch:
schedule:
- cron: "25 1 * * *"
env:
IMAGE_NAME: base
jobs:
build:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build image
run: docker build --provenance=false -t $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" etc/docker/$IMAGE_NAME
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention for master/main
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
# Get sha256 for later
IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE_NAME | cut -d@ -f2)
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_ENV
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
description: "Package digest: `${{ env.IMAGE_DIGEST }}`"
webhook: ${{ secrets.DISCORD_WEBHOOK }}

61
.github/workflows/base22-build.yml vendored Normal file
View file

@ -0,0 +1,61 @@
name: (package) base22 image nightly build
on:
workflow_dispatch:
schedule:
- cron: "25 1 * * *"
env:
IMAGE_NAME: base22
jobs:
build:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build image
run: docker build --provenance=false -t $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" etc/docker/$IMAGE_NAME
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention for master/main
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
# Get sha256 for later
IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE_NAME | cut -d@ -f2)
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_ENV
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
description: "Package digest: `${{ env.IMAGE_DIGEST }}`"
webhook: ${{ secrets.DISCORD_WEBHOOK }}

58
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,58 @@
name: CI (fast)
on:
pull_request:
push:
branches:
- main
jobs:
test:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
container:
image: ghcr.io/dreamwidth/devcontainer:latest
env:
LJHOME: ${{ github.workspace }}
PERL5LIB: /opt/dreamwidth-extlib/lib/perl5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install CPAN dependencies
run: cpm install -v --show-build-log-on-failure --no-color --resolver metadb -L /opt/dreamwidth-extlib/ - < doc/dependencies-cpanm
- name: Setup environment
run: |
# Config symlink (needed for Perl modules to load site config)
mkdir -p $LJHOME/ext/local
ln -ns $LJHOME/.devcontainer/config/etc/dw-etc $LJHOME/ext/local/etc
# Symlink pre-built static assets from the image
mkdir -p $LJHOME/build
ln -snf /opt/dreamwidth-static $LJHOME/build/static
# Start MySQL and initialize test databases
service mysql start
t/bin/initialize-db
- name: Code formatting (t/02-tidy.t)
run: prove -v t/02-tidy.t
- name: Module compilation (t/00-compile.t)
run: prove -v t/00-compile.t
- name: Plack integration tests
run: prove t/plack-*.t
- name: Text cleaner tests
run: prove t/cleaner-*.t
- name: Routing tests
run: prove t/routing-*.t
- name: Rate limiting tests
run: prove -v t/rate-limit.t

View file

@ -0,0 +1,68 @@
name: (package) devcontainer image build
on:
workflow_dispatch:
schedule:
- cron: "45 1 * * *"
push:
branches:
- main
paths:
- ".devcontainer/Dockerfile"
- "doc/dependencies-system"
- "doc/dependencies-cpanm"
env:
IMAGE_NAME: devcontainer
jobs:
build:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build image
run: docker build --provenance=false -t $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" -f .devcontainer/Dockerfile .
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention for master/main
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
# Get sha256 for later
IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE_NAME | cut -d@ -f2)
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_ENV
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
description: "Package digest: `${{ env.IMAGE_DIGEST }}`"
webhook: ${{ secrets.DISCORD_WEBHOOK }}

61
.github/workflows/proxy-build.yml vendored Normal file
View file

@ -0,0 +1,61 @@
name: (package) proxy manual build
# No on-push because proxy builds are incredibly rare, so might
# as well not waste the GHA minutes
on:
workflow_dispatch:
env:
IMAGE_NAME: proxy
jobs:
build:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build image
run: docker build --provenance=false -t $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" etc/docker/$IMAGE_NAME
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention for master/main
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
# Get sha256 for later
IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE_NAME | cut -d@ -f2)
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_ENV
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
description: "Package digest: `${{ env.IMAGE_DIGEST }}`"
webhook: ${{ secrets.DISCORD_WEBHOOK }}

View file

@ -0,0 +1,106 @@
{
"containerDefinitions": [
{
"name": "web",
"image": "ghcr.io/dreamwidth/web:latest",
"cpu": 0,
"portMappings": [
{
"containerPort": 6081,
"hostPort": 6081,
"protocol": "tcp"
},
{
"containerPort": 8080,
"hostPort": 8080,
"protocol": "tcp"
}
],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
},
{
"sourceVolume": "log-share",
"containerPath": "/var/log/apache2",
"readOnly": false
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/web/canary",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "canary"
}
}
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"environment": [],
"mountPoints": [
{
"sourceVolume": "log-share",
"containerPath": "/var/log/apache2",
"readOnly": true
}
],
"volumesFrom": [],
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
"valueFrom": "ecs-cwagent"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/ecs-cwagent",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"family": "web-canary",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "log-share",
"host": {}
},
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-canary",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "6144"
}

View file

@ -0,0 +1,23 @@
{
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/var/log/apache2/dreamwidth_access-DISABLED.log",
"log_group_name": "/dreamwidth/web-requests",
"log_stream_name": "{hostname}",
"timezone": "UTC",
"timestamp_format": "%Y-%m-%dT%H:%M:%S.%fZ",
"filters": [
{
"type": "exclude",
"expression": "ELB-HealthChecker"
}
]
}
]
}
}
}
}

View file

@ -0,0 +1,106 @@
{
"containerDefinitions": [
{
"name": "web",
"image": "ghcr.io/dreamwidth/web:latest",
"cpu": 0,
"portMappings": [
{
"containerPort": 6081,
"hostPort": 6081,
"protocol": "tcp"
},
{
"containerPort": 8080,
"hostPort": 8080,
"protocol": "tcp"
}
],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
},
{
"sourceVolume": "log-share",
"containerPath": "/var/log/apache2",
"readOnly": false
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/web/shop",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "shop"
}
}
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"environment": [],
"mountPoints": [
{
"sourceVolume": "log-share",
"containerPath": "/var/log/apache2",
"readOnly": true
}
],
"volumesFrom": [],
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
"valueFrom": "ecs-cwagent"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/ecs-cwagent",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"family": "web-shop",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "log-share",
"host": {}
},
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-stable",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "6144"
}

View file

@ -0,0 +1,101 @@
{
"containerDefinitions": [
{
"name": "web",
"image": "ghcr.io/dreamwidth/web:latest",
"cpu": 0,
"portMappings": [
{
"containerPort": 6081,
"hostPort": 6081,
"protocol": "tcp"
}
],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
},
{
"sourceVolume": "log-share",
"containerPath": "/var/log/apache2",
"readOnly": false
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/web/stable",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "stable"
}
}
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"environment": [],
"mountPoints": [
{
"sourceVolume": "log-share",
"containerPath": "/var/log/apache2",
"readOnly": true
}
],
"volumesFrom": [],
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
"valueFrom": "ecs-cwagent"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/ecs-cwagent",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"family": "web-stable",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "log-share",
"host": {}
},
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-stable",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "6144"
}

View file

@ -0,0 +1,106 @@
{
"containerDefinitions": [
{
"name": "web",
"image": "ghcr.io/dreamwidth/web:latest",
"cpu": 0,
"portMappings": [
{
"containerPort": 6081,
"hostPort": 6081,
"protocol": "tcp"
},
{
"containerPort": 8080,
"hostPort": 8080,
"protocol": "tcp"
}
],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
},
{
"sourceVolume": "log-share",
"containerPath": "/var/log/apache2",
"readOnly": false
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/web/unauthenticated",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "unauthenticated"
}
}
},
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"environment": [],
"mountPoints": [
{
"sourceVolume": "log-share",
"containerPath": "/var/log/apache2",
"readOnly": true
}
],
"volumesFrom": [],
"secrets": [
{
"name": "CW_CONFIG_CONTENT",
"valueFrom": "ecs-cwagent"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/ecs-cwagent",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"family": "web-unauthenticated",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "log-share",
"host": {}
},
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-stable",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "1024",
"memory": "6144"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/birthday-notify",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/birthday-notify",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-birthday-notify",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/change-poster-id",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/change-poster-id",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-change-poster-id",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/codebuild-notifier",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/codebuild-notifier",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-codebuild-notifier",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/content-importer-lite",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/content-importer-lite",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-content-importer-lite",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/content-importer",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/content-importer",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-content-importer",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "2048"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/content-importer-verify",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/content-importer-verify",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-content-importer-verify",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/directory-meta",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/directory-meta",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-directory-meta",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/distribute-invites",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/distribute-invites",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-distribute-invites",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-change-poster-id",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-change-poster-id",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-change-poster-id",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-distribute-invites",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-distribute-invites",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-distribute-invites",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-embeds",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-embeds",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-embeds",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-esn-cluster-subs",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-esn-cluster-subs",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-esn-cluster-subs",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-esn-filter-subs",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-esn-filter-subs",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-esn-filter-subs",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-esn-fired-event",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-esn-fired-event",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-esn-fired-event",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-esn-process-sub",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-esn-process-sub",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-esn-process-sub",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-import-eraser",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-import-eraser",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-import-eraser",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-incoming-email",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-incoming-email",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-incoming-email",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-latest-feed",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-latest-feed",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-latest-feed",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-lazy-cleanup",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-lazy-cleanup",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-lazy-cleanup",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-mass-privacy",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-mass-privacy",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-mass-privacy",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-send-email",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-send-email",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-send-email",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-sphinx-copier",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-sphinx-copier",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-sphinx-copier",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-support-notify",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-support-notify",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-support-notify",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-synsuck",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-synsuck",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-synsuck",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/dw-xpost",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/dw-xpost",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-dw-xpost",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/embeds",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/embeds",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-embeds",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/esn-cluster-subs",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/esn-cluster-subs",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-esn-cluster-subs",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/esn-filter-subs",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/esn-filter-subs",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-esn-filter-subs",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/esn-fired-event",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/esn-fired-event",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-esn-fired-event",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/esn-process-sub",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/esn-process-sub",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-esn-process-sub",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/expunge-users",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/expunge-users",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-expunge-users",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/import-eraser",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/import-eraser",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-import-eraser",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/import-scheduler",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/import-scheduler",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-import-scheduler",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/incoming-email",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/incoming-email",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-incoming-email",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/latest-feed",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/latest-feed",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-latest-feed",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/lazy-cleanup",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/lazy-cleanup",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-lazy-cleanup",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/paidstatus",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/paidstatus",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-paidstatus",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/process-privacy",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/process-privacy",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-process-privacy",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/resolve-extacct",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/resolve-extacct",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-resolve-extacct",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/schedule-synsuck",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/schedule-synsuck",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-schedule-synsuck",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/ses-incoming-email",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/ses-incoming-email",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-ses-incoming-email",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/shop-creditcard-charge",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/shop-creditcard-charge",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-shop-creditcard-charge",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/spellcheck-gm",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/spellcheck-gm",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-spellcheck-gm",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/sphinx-copier",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/sphinx-copier",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-sphinx-copier",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/sphinx-search-gm",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/sphinx-search-gm",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-sphinx-search-gm",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

View file

@ -0,0 +1,57 @@
{
"containerDefinitions": [
{
"name": "worker",
"image": "ghcr.io/dreamwidth/worker:latest",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"bash",
"/opt/startup-prod.sh",
"bin/worker/support-notify",
"-v"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "dw-config",
"containerPath": "/dw/etc",
"readOnly": true
}
],
"volumesFrom": [],
"linuxParameters": {
"initProcessEnabled": true
},
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/dreamwidth/worker/support-notify",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "worker"
}
}
}
],
"family": "worker-support-notify",
"taskRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskRole",
"executionRoleArn": "arn:aws:iam::194396987458:role/dreamwidth-ecsTaskExecutionRole",
"networkMode": "awsvpc",
"volumes": [
{
"name": "dw-config",
"efsVolumeConfiguration": {
"fileSystemId": "fs-f9f3e04d",
"rootDirectory": "/etc-workers",
"transitEncryption": "DISABLED"
}
}
],
"requiresCompatibilities": [
"FARGATE"
],
"cpu": "256",
"memory": "512"
}

74
.github/workflows/web-build.yml vendored Normal file
View file

@ -0,0 +1,74 @@
name: (package) web automatic build
on:
push:
branches:
- main
- canary
paths:
- app.psgi
- cgi-bin/**
- ext/dw-nonfree/cgi-bin/**
- htdocs/**
- ext/dw-nonfree/htdocs/**
- views/**
- ext/dw-nonfree/views/**
- schemes/**
- ext/dw-nonfree/schemes/**
- src/s2/**
workflow_dispatch:
env:
IMAGE_NAME: web
jobs:
build:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build image
run: docker build --provenance=false -t $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" etc/docker/$IMAGE_NAME --build-arg="COMMIT=$GITHUB_REF_NAME"
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention for master/main
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
# Get sha256 for later
IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE_NAME | cut -d@ -f2)
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_ENV
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
description: "Package digest: `${{ env.IMAGE_DIGEST }}`\n\nDeploy here: https://github.com/dreamwidth/dreamwidth/actions/workflows/web-deploy.yml"
webhook: ${{ secrets.DISCORD_WEBHOOK }}

64
.github/workflows/web-deploy.yml vendored Normal file
View file

@ -0,0 +1,64 @@
name: (deploy) web servers
on:
workflow_dispatch:
inputs:
service:
type: choice
description: Which service to deploy
options:
- web-canary
- web-stable
- web-unauthenticated
tag:
type: string
description: SHA256 to deploy (include "sha256:" prefix)
required: true
env:
REGION: us-east-1
ECS_CLUSTER: dreamwidth
CONTAINER_NAME: web
IMAGE_BASE: ghcr.io/dreamwidth/web
jobs:
deploy:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.REGION }}
- name: Render Amazon ECS task definition
id: render-web-container
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/${{ github.event.inputs.service }}-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: Deploy to Amazon ECS service
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-web-container.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "${{ github.event.inputs.service }}-service"
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "${{ github.event.inputs.service }} DEPLOY STARTED"
description: "Deploying `${{ github.event.inputs.tag }}` to `${{ github.event.inputs.service }}`\n\nClick the header above to watch the deployment progress."
url: "https://${{ env.REGION }}.console.aws.amazon.com/ecs/v2/clusters/dreamwidth/services/${{ github.event.inputs.service }}-service/deployments?region=${{ env.REGION }}"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
nocontext: true

74
.github/workflows/web22-build.yml vendored Normal file
View file

@ -0,0 +1,74 @@
name: (package) web22 automatic build
on:
push:
branches:
- main
- canary
paths:
- app.psgi
- cgi-bin/**
- ext/dw-nonfree/cgi-bin/**
- htdocs/**
- ext/dw-nonfree/htdocs/**
- views/**
- ext/dw-nonfree/views/**
- schemes/**
- ext/dw-nonfree/schemes/**
- src/s2/**
workflow_dispatch:
env:
IMAGE_NAME: web22
jobs:
build:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build image
run: docker build --provenance=false -t $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" etc/docker/$IMAGE_NAME --build-arg="COMMIT=$GITHUB_REF_NAME"
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention for master/main
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
# Get sha256 for later
IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE_NAME | cut -d@ -f2)
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_ENV
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
description: "Package digest: `${{ env.IMAGE_DIGEST }}`\n\nDeploy here: https://github.com/dreamwidth/dreamwidth/actions/workflows/web22-deploy.yml"
webhook: ${{ secrets.DISCORD_WEBHOOK }}

64
.github/workflows/web22-deploy.yml vendored Normal file
View file

@ -0,0 +1,64 @@
name: (deploy) web22 servers
on:
workflow_dispatch:
inputs:
service:
type: choice
description: Which service to deploy
options:
- web-canary
- web-shop
- web-unauthenticated
tag:
type: string
description: SHA256 to deploy (include "sha256:" prefix)
required: true
env:
REGION: us-east-1
ECS_CLUSTER: dreamwidth
CONTAINER_NAME: web
IMAGE_BASE: ghcr.io/dreamwidth/web22
jobs:
deploy:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.REGION }}
- name: Render Amazon ECS task definition
id: render-web-container
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/${{ github.event.inputs.service }}-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: Deploy to Amazon ECS service
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-web-container.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "${{ github.event.inputs.service }}-service"
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "${{ github.event.inputs.service }} DEPLOY STARTED"
description: "Deploying `${{ github.event.inputs.tag }}` to `${{ github.event.inputs.service }}`\n\nClick the header above to watch the deployment progress."
url: "https://${{ env.REGION }}.console.aws.amazon.com/ecs/v2/clusters/dreamwidth/services/${{ github.event.inputs.service }}-service/deployments?region=${{ env.REGION }}"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
nocontext: true

68
.github/workflows/worker22-build.yml vendored Normal file
View file

@ -0,0 +1,68 @@
name: (package) worker22 automatic build
on:
push:
branches:
- main
- canary
paths:
- bin/**
- ext/dw-nonfree/bin/**
- cgi-bin/**
- ext/dw-nonfree/cgi-bin/**
workflow_dispatch:
env:
IMAGE_NAME: worker22
jobs:
build:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build image
run: docker build --provenance=false -t $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" etc/docker/$IMAGE_NAME --build-arg="COMMIT=$GITHUB_REF_NAME"
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention for master/main
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
# Get sha256 for later
IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE_NAME | cut -d@ -f2)
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_ENV
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
description: "Package digest: `${{ env.IMAGE_DIGEST }}`\n\nDeploy here: https://github.com/dreamwidth/dreamwidth/actions/workflows/worker22-deploy.yml"
webhook: ${{ secrets.DISCORD_WEBHOOK }}

807
.github/workflows/worker22-deploy.yml vendored Normal file
View file

@ -0,0 +1,807 @@
#
# AUTO-GENERATED by config/update-workflows.py. DO NOT EDIT.
#
name: (deploy) workers (22.04)
on:
workflow_dispatch:
inputs:
service:
type: choice
description: Which service to deploy
options:
- ALL WORKERS (*)
- birthday-notify
- change-poster-id
- codebuild-notifier
- content-importer
- content-importer-lite
- content-importer-verify
- directory-meta
- distribute-invites
- dw-change-poster-id
- dw-distribute-invites
- dw-embeds
- dw-esn-cluster-subs
- dw-esn-filter-subs
- dw-esn-fired-event
- dw-esn-process-sub
- dw-import-eraser
- dw-incoming-email
- dw-latest-feed
- dw-lazy-cleanup
- dw-mass-privacy
- dw-send-email
- dw-sphinx-copier
- dw-support-notify
- dw-synsuck
- dw-xpost
- embeds
- expunge-users
- import-eraser
- import-scheduler
- incoming-email
- latest-feed
- lazy-cleanup
- paidstatus
- process-privacy
- resolve-extacct
- schedule-synsuck
- ses-incoming-email
- shop-creditcard-charge
- spellcheck-gm
- sphinx-copier
- sphinx-search-gm
- support-notify
tag:
type: string
description: SHA256 to deploy (include "sha256:" prefix)
required: true
env:
REGION: us-east-1
ECS_CLUSTER: dreamwidth
CONTAINER_NAME: worker
IMAGE_BASE: ghcr.io/dreamwidth/worker22
jobs:
deploy:
if: github.repository == 'dreamwidth/dreamwidth'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.REGION }}
- name: (birthday-notify) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'birthday-notify'
id: render-worker-container-birthday-notify
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-birthday-notify-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (change-poster-id) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'change-poster-id'
id: render-worker-container-change-poster-id
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-change-poster-id-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (codebuild-notifier) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'codebuild-notifier'
id: render-worker-container-codebuild-notifier
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-codebuild-notifier-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (content-importer) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'content-importer'
id: render-worker-container-content-importer
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-content-importer-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (content-importer-lite) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'content-importer-lite'
id: render-worker-container-content-importer-lite
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-content-importer-lite-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (content-importer-verify) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'content-importer-verify'
id: render-worker-container-content-importer-verify
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-content-importer-verify-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (directory-meta) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'directory-meta'
id: render-worker-container-directory-meta
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-directory-meta-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (distribute-invites) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'distribute-invites'
id: render-worker-container-distribute-invites
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-distribute-invites-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-change-poster-id) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-change-poster-id'
id: render-worker-container-dw-change-poster-id
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-change-poster-id-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-distribute-invites) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-distribute-invites'
id: render-worker-container-dw-distribute-invites
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-distribute-invites-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-embeds) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-embeds'
id: render-worker-container-dw-embeds
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-embeds-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-esn-cluster-subs) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-esn-cluster-subs'
id: render-worker-container-dw-esn-cluster-subs
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-esn-cluster-subs-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-esn-filter-subs) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-esn-filter-subs'
id: render-worker-container-dw-esn-filter-subs
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-esn-filter-subs-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-esn-fired-event) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-esn-fired-event'
id: render-worker-container-dw-esn-fired-event
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-esn-fired-event-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-esn-process-sub) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-esn-process-sub'
id: render-worker-container-dw-esn-process-sub
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-esn-process-sub-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-import-eraser) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-import-eraser'
id: render-worker-container-dw-import-eraser
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-import-eraser-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-incoming-email) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-incoming-email'
id: render-worker-container-dw-incoming-email
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-incoming-email-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-latest-feed) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-latest-feed'
id: render-worker-container-dw-latest-feed
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-latest-feed-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-lazy-cleanup) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-lazy-cleanup'
id: render-worker-container-dw-lazy-cleanup
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-lazy-cleanup-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-mass-privacy) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-mass-privacy'
id: render-worker-container-dw-mass-privacy
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-mass-privacy-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-send-email) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-send-email'
id: render-worker-container-dw-send-email
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-send-email-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-sphinx-copier) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-sphinx-copier'
id: render-worker-container-dw-sphinx-copier
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-sphinx-copier-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-support-notify) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-support-notify'
id: render-worker-container-dw-support-notify
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-support-notify-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-synsuck) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-synsuck'
id: render-worker-container-dw-synsuck
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-synsuck-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (dw-xpost) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-xpost'
id: render-worker-container-dw-xpost
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-dw-xpost-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (embeds) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'embeds'
id: render-worker-container-embeds
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-embeds-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (expunge-users) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'expunge-users'
id: render-worker-container-expunge-users
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-expunge-users-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (import-eraser) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'import-eraser'
id: render-worker-container-import-eraser
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-import-eraser-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (import-scheduler) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'import-scheduler'
id: render-worker-container-import-scheduler
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-import-scheduler-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (incoming-email) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'incoming-email'
id: render-worker-container-incoming-email
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-incoming-email-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (latest-feed) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'latest-feed'
id: render-worker-container-latest-feed
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-latest-feed-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (lazy-cleanup) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'lazy-cleanup'
id: render-worker-container-lazy-cleanup
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-lazy-cleanup-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (paidstatus) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'paidstatus'
id: render-worker-container-paidstatus
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-paidstatus-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (process-privacy) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'process-privacy'
id: render-worker-container-process-privacy
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-process-privacy-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (resolve-extacct) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'resolve-extacct'
id: render-worker-container-resolve-extacct
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-resolve-extacct-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (schedule-synsuck) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'schedule-synsuck'
id: render-worker-container-schedule-synsuck
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-schedule-synsuck-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (ses-incoming-email) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'ses-incoming-email'
id: render-worker-container-ses-incoming-email
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-ses-incoming-email-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (shop-creditcard-charge) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'shop-creditcard-charge'
id: render-worker-container-shop-creditcard-charge
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-shop-creditcard-charge-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (spellcheck-gm) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'spellcheck-gm'
id: render-worker-container-spellcheck-gm
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-spellcheck-gm-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (sphinx-copier) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'sphinx-copier'
id: render-worker-container-sphinx-copier
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-sphinx-copier-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (sphinx-search-gm) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'sphinx-search-gm'
id: render-worker-container-sphinx-search-gm
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-sphinx-search-gm-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (support-notify) Render Amazon ECS task definition
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'support-notify'
id: render-worker-container-support-notify
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ".github/workflows/tasks/worker-support-notify-service.json"
container-name: ${{ env.CONTAINER_NAME }}
image: "${{ env.IMAGE_BASE }}@${{ github.event.inputs.tag }}"
- name: (birthday-notify) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'birthday-notify'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-birthday-notify.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-birthday-notify-service"
- name: (change-poster-id) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'change-poster-id'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-change-poster-id.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-change-poster-id-service"
- name: (codebuild-notifier) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'codebuild-notifier'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-codebuild-notifier.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-codebuild-notifier-service"
- name: (content-importer) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'content-importer'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-content-importer.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-content-importer-service"
- name: (content-importer-lite) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'content-importer-lite'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-content-importer-lite.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-content-importer-lite-service"
- name: (content-importer-verify) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'content-importer-verify'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-content-importer-verify.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-content-importer-verify-service"
- name: (directory-meta) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'directory-meta'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-directory-meta.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-directory-meta-service"
- name: (distribute-invites) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'distribute-invites'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-distribute-invites.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-distribute-invites-service"
- name: (dw-change-poster-id) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-change-poster-id'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-change-poster-id.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-change-poster-id-service"
- name: (dw-distribute-invites) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-distribute-invites'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-distribute-invites.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-distribute-invites-service"
- name: (dw-embeds) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-embeds'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-embeds.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-embeds-service"
- name: (dw-esn-cluster-subs) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-esn-cluster-subs'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-esn-cluster-subs.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-esn-cluster-subs-service"
- name: (dw-esn-filter-subs) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-esn-filter-subs'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-esn-filter-subs.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-esn-filter-subs-service"
- name: (dw-esn-fired-event) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-esn-fired-event'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-esn-fired-event.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-esn-fired-event-service"
- name: (dw-esn-process-sub) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-esn-process-sub'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-esn-process-sub.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-esn-process-sub-service"
- name: (dw-import-eraser) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-import-eraser'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-import-eraser.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-import-eraser-service"
- name: (dw-incoming-email) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-incoming-email'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-incoming-email.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-incoming-email-service"
- name: (dw-latest-feed) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-latest-feed'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-latest-feed.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-latest-feed-service"
- name: (dw-lazy-cleanup) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-lazy-cleanup'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-lazy-cleanup.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-lazy-cleanup-service"
- name: (dw-mass-privacy) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-mass-privacy'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-mass-privacy.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-mass-privacy-service"
- name: (dw-send-email) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-send-email'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-send-email.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-send-email-service"
- name: (dw-sphinx-copier) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-sphinx-copier'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-sphinx-copier.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-sphinx-copier-service"
- name: (dw-support-notify) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-support-notify'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-support-notify.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-support-notify-service"
- name: (dw-synsuck) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-synsuck'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-synsuck.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-synsuck-service"
- name: (dw-xpost) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'dw-xpost'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-dw-xpost.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-dw-xpost-service"
- name: (embeds) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'embeds'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-embeds.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-embeds-service"
- name: (expunge-users) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'expunge-users'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-expunge-users.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-expunge-users-service"
- name: (import-eraser) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'import-eraser'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-import-eraser.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-import-eraser-service"
- name: (import-scheduler) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'import-scheduler'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-import-scheduler.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-import-scheduler-service"
- name: (incoming-email) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'incoming-email'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-incoming-email.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-incoming-email-service"
- name: (latest-feed) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'latest-feed'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-latest-feed.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-latest-feed-service"
- name: (lazy-cleanup) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'lazy-cleanup'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-lazy-cleanup.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-lazy-cleanup-service"
- name: (paidstatus) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'paidstatus'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-paidstatus.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-paidstatus-service"
- name: (process-privacy) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'process-privacy'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-process-privacy.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-process-privacy-service"
- name: (resolve-extacct) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'resolve-extacct'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-resolve-extacct.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-resolve-extacct-service"
- name: (schedule-synsuck) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'schedule-synsuck'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-schedule-synsuck.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-schedule-synsuck-service"
- name: (ses-incoming-email) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'ses-incoming-email'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-ses-incoming-email.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-ses-incoming-email-service"
- name: (shop-creditcard-charge) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'shop-creditcard-charge'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-shop-creditcard-charge.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-shop-creditcard-charge-service"
- name: (spellcheck-gm) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'spellcheck-gm'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-spellcheck-gm.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-spellcheck-gm-service"
- name: (sphinx-copier) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'sphinx-copier'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-sphinx-copier.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-sphinx-copier-service"
- name: (sphinx-search-gm) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'sphinx-search-gm'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-sphinx-search-gm.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-sphinx-search-gm-service"
- name: (support-notify) Deploy to Amazon ECS service
if: github.event.inputs.service == 'ALL WORKERS (*)' || github.event.inputs.service == 'support-notify'
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.render-worker-container-support-notify.outputs.task-definition }}
cluster: ${{ env.ECS_CLUSTER }}
service: "worker-support-notify-service"
- name: Notify Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "${{ github.event.inputs.service }} DEPLOY STARTED"
description: "Deploying `${{ github.event.inputs.tag }}` to `${{ github.event.inputs.service }}`\n\nClick the header above to watch the deployment progress."
url: "https://${{ env.REGION }}.console.aws.amazon.com/ecs/v2/clusters/dreamwidth/services?region=${{ env.REGION }}"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
nocontext: true

81
.gitignore vendored Normal file
View file

@ -0,0 +1,81 @@
etc/docker/web/config/etc/apache2/envvars
/etc
etc/
/logs
/temp
/extlib
/ext/dw-private
/ext/local
/ext/ruby
/ext/yuicompressor
/etc/config*.pl
/etc/*
/build
/locks
/var
*.sw?
src/proxy/proxy
.vscode
.vstags
.perl-cpm
config-private.pl
env.env
.env
garageenv.toml
garage.toml
garage.tom
package-lock.json
package.json
# kat ignores just to be safe tbh
# i stole this from kat sorry kat hiii
docker-entrypoint-initdb.d/*
blobimages/
_build/
Build
htdocs/img/profile_icons/*.png
htdocs/img/external/*
htdocs/manage/profile/index.bml.old
htdocs/manage/profile/index.bml.text.old
htdocs/scss/pages/manage/profile.scss
views/manage/profile.tt
views/manage/profile.tt.text
blib/*
t/MYMETA.json
t/MYMETA.yml
t/Makefile
t/blib/
t/pm_to_blib
/minio/*
minio
cgi-bin/LJ/Keywords.pm.orig
cgi-bin/DW/Controller/UserAll.pm
cgi-bin/DW/Controller/API/REST/Users.pm
api/dist/users_all.yaml
api/src/users_all.yaml
views/stats/allusers.tt
ext/dw-nonfree/htdocs/favicon.ico
api/dist/icons.yaml
api/dist/journals/accesslists.yaml
api/dist/journals/accesslists_all.yaml
api/dist/journals/tags.yaml
api/dist/journals/xpostaccounts.yaml
etc/docker/web/envvars
etc/docker/web/files
etc/docker/web/files/
# Ignore node_modules, wherever they occur
/**/node_modules/
# Ignore SCSS cache
.sass-cache
# Ignore compiled CSS
htdocs/stc/css
ext/dw-nonfree/htdocs/stc/css
# Ignore test stuff
t-theschwartz.sqlite
# No tidying
.tidyall.d/
mysql25/

6
.tidyallrc Normal file
View file

@ -0,0 +1,6 @@
[PerlTidy]
select = .github/workflows/*.pl
select = bin/worker/dw-*
select = bin/worker/paidstatus
select = {bin,cgi-bin,t}/**/*.{pl,pm,t}
argv = -ole=unix -ci=4 -l=100

165
CLAUDE.md Normal file
View file

@ -0,0 +1,165 @@
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Project Overview
Dreamwidth is a Perl-based journaling/blogging platform forked from LiveJournal. It runs on Apache mod_perl with MySQL, Memcached, and TheSchwartz job queue. All code must be GPL-licensed.
## Development Environment
Code is edited on the host, but **all commands must be run inside the devcontainer** (`.devcontainer/`). The devcontainer runs Ubuntu 22.04 with MySQL, Memcached, and Apache mod_perl. The workspace is mounted at `/workspaces/dreamwidth` (`$LJHOME`). Perl modules are pre-installed at `/opt/dreamwidth-extlib/lib/perl5` (`$PERL5LIB`).
### Container Management
Build and start the devcontainer from the repo root:
```bash
npx devcontainer up --workspace-folder .
```
Find the running container ID:
```bash
docker ps --format "{{.ID}} {{.Names}}"
```
Run commands inside the container (omit `-it` when not in a TTY, e.g. from Claude Code):
```bash
# Interactive shell
docker exec -it <container-id> bash
# Non-interactive command execution (use this from Claude Code)
docker exec <container-id> <command>
```
### Commands (run inside devcontainer)
```bash
# Run a single test
perl t/sometest.t
# Check code formatting (must pass before PR)
perl t/02-tidy.t
# Apply code formatting
perl extlib/bin/tidyall
# Check all modules compile (1472 subtests)
perl t/00-compile.t
# Compile static assets (CSS/JS)
bin/build-static.sh
# Restart Apache after code changes
apache2ctl restart
```
## Code Formatting
Enforced via Perl::Tidy (`.tidyallrc`): Unix line endings, 4-space continuation indent, 100-char line limit. Applies to `bin/`, `cgi-bin/`, `t/`, and worker scripts. Run `bin/tidyall` to auto-format; `t/02-tidy.t` validates in CI.
## Architecture
### Module Namespaces
- **`DW::*`** — Modern Dreamwidth code (controllers, auth, blob storage, templates)
- **`LJ::*`** — Legacy LiveJournal modules (still heavily used for core entities: users, entries, comments)
- **`Apache::*`** — mod_perl request handlers
- **`S2::*`** — S2 style/theming language compiler
### Key Directories
| Directory | Purpose |
|-----------|---------|
| `cgi-bin/` | Core Perl modules and CGI scripts (DW::*, LJ::*, handlers) |
| `views/` | Template Toolkit (.tt) templates for page rendering |
| `htdocs/` | Static assets (CSS, JS, images) and legacy BML pages |
| `styles/` | S2 style layer definitions (theming system) |
| `bin/` | CLI utilities, maintenance scripts, worker processes |
| `t/` | Test suite (139 test files) |
| `etc/` | Config templates and Docker configs |
| `api/` | REST API OpenAPI spec (YAML fragments built via Node.js) |
| `ext/` | Optional modules (dw-nonfree) |
### Request Flow
1. Apache mod_perl receives request → `Apache::*` handlers
2. `DW::Routing` dispatches to `DW::Controller::*` modules
3. Controllers use `DW::Controller` helpers (`controller()`, `needlogin()`, `error_ml()`, `success_ml()`)
4. Views rendered via `DW::Template` using Template Toolkit (`.tt` files in `views/`)
5. Legacy pages use BML (Block Markup Language) templates in `htdocs/`
### Core Entities
- **Users**: `LJ::User` (main class), `DW::User` (extensions)
- **Entries**: `LJ::Entry`, with `DW::Entry::*` extensions
- **Comments**: `LJ::Comment`
- **Communities**: `LJ::Community`
### Database
Multi-database MySQL architecture with cluster sharding (`dw_global`, `dw_cluster01+`). Uses `DBI` directly and `Data::ObjectDriver` as a lightweight ORM. Tests can use SQLite via `t/bin/initialize-db`.
### Storage Backends
Media/blob storage via `DW::BlobStore` with pluggable backends: S3, MogileFS, or local disk.
### Job Queue
Background processing via `DW::TaskQueue` with pluggable backends: SQS (`DW::TaskQueue::SQS`) or local disk (`DW::TaskQueue::LocalDisk`). Tasks are defined in `DW::Task::*`. Legacy jobs use TheSchwartz. Worker scripts in `bin/worker/`.
### Plack Server (development)
The codebase runs under both Apache/mod_perl and Plack/Starman. See **`doc/PLACK.md`** for full architecture details (middleware stack, routing, security notes, testing).
```bash
# Inside the devcontainer
perl bin/starman --port 8080
```
This runs a single-worker Starman instance. The Plack entry point is `app.psgi`. Plack-specific middleware lives in `cgi-bin/Plack/Middleware/DW/`. The `DW::Request` abstraction layer (`DW::Request::Plack`, `DW::Request::Apache2`) allows most code to work under both servers.
Key differences from Apache:
- `$r->uri` must return the path only (not full URL) — `DW::Request::Plack` handles this
- In the dev container, `$LJ::DOMAIN`, `$LJ::SITEROOT`, etc. are empty — URLs are built from the request Host header via `LJ::create_url()`
- BML pages render via `DW::BML` (Plack) instead of `Apache::BML` (mod_perl); both share the same BML engine internals
### Dev Container Config
The dev container (`$IS_DEV_SERVER && $IS_DEV_CONTAINER`) intentionally sets `$LJ::DOMAIN = ""`, `$LJ::SITEROOT = ""`, etc. in `LJ::Global::Defaults`. This means domain/redirect logic is skipped and URLs are constructed dynamically from request headers. Do not use `local` to override these globals in middleware — it leaks into downstream code.
## Git Workflow
**ABSOLUTE RULE — NEVER run `git commit` unless the user has explicitly asked you to commit in that moment.** Not after making changes. Not as part of a workflow. Not proactively. Not because the changes look ready. Not for any reason whatsoever. The ONLY acceptable trigger is the user saying words like "commit this" or "go ahead and commit". If in doubt, ASK. Violating this rule destroys trust. Follow the repository's existing commit message style. **NEVER amend commits unless explicitly instructed** — assume commits have already been pushed.
Always use `--no-gpg-sign` when committing, as GPG signing requires interactive passphrase entry which hangs in this environment.
### Before Pushing
Before pushing any branch, run these checks inside the devcontainer and fix any failures — CI runs them and the build fails if they don't pass, even for files you didn't touch:
1. `perl extlib/bin/tidyall -a` — auto-format all files
2. `perl t/02-tidy.t` — verify formatting passes
3. `perl t/00-compile.t` — verify all modules compile
## Pull Requests
PRs target `dreamwidth/dreamwidth`. If the working repo is a fork, use `--head <fork-owner>:<branch-name>` (check the `origin` remote to determine the fork owner).
PR body format:
```
<Technical description of the change what code was modified and why, referencing specific
functions/files/mechanics as appropriate. This is for developers reviewing the PR.>
CODE TOUR: <Non-technical description for the Dreamwidth community. Explain what changed from a
user's perspective, skipping implementation details. Keep it conversational.>
Fixes #<issue-number>
```
## Troubleshooting
If the container startup fails (`postCreateCommand`), the container still exists. Check the error output, fix the issue, remove the container (`docker rm <id>`), and rebuild.

12
CONTRIBUTING.md Normal file
View file

@ -0,0 +1,12 @@
# Contributing to Dreamwidth
We love having new contributors join us! Here's the quick summary of where to find information on contributing to Dreamwidth:
* Make sure you have a [GitHub account](https://github.com/signup/free)
* Dreamwidth is a highly complicated web app with tons of dependencies. You don't need to get it working locally just to contribute: we do it all for you. You can do it if you want, but it's a lot easier if you let us do it! The easiest thing to do is to sign up for a [Dreamhack account](http://hack.dreamwidth.net/) -- our hosted developer service.
* Read the [Dev Getting Started](http://wiki.dreamwidth.net/wiki/index.php/Dev_Getting_Started) wiki guide. Bear in mind that any mentions of Bugzilla are out-of-date and should be considered docs bugs. Note, though, that docs bugs do not belong on Github Issues, and should probably be raised in the dw-docs community.
* Check the [Programming Guidelines](http://wiki.dreamwidth.net/wiki/index.php/Programming_Guidelines)
* Send in a [Contributor Licensing Agreement](http://wiki.dreamwidth.net/wiki/index.php/Contributor_Licensing_Agreement)
* Start hacking!
If you're having trouble, ask in the [dw-dev](https://dw-dev.dreamwidth.org) community, or join us on [Discord](https://dw-dev.dreamwidth.org/209778.html).

143
Documents Normal file
View file

@ -0,0 +1,143 @@
services:
web:
container_name: web-dw
build:
context: /home/dw/dw/etc/docker/web
dockerfile: Dockerfile
ports:
- "3237:80"
volumes:
- /home/dw/dw/etc/docker/web/files/config-private.pl:/dw/etc/config-private.pl
- /home/dw/dw/etc/docker/web/files/config-local.pl:/dw/etc/config-local.pl
- /home/dw/dw/etc/docker/web/files/config.pl:/dw/etc/config.pl
- /home/dw/dw/etc/texttool.pl:/dw/etc/texttool.pl
- /home/dw/dw/etc/build-static.sh:/dw/etc/build-static.sh
- /home/dw/dw/cgi-bin/DW/TaskQueue.pm:/dw/cgi-bin/DW/TaskQueue.pm
- /home/dw/dw/var/taskqueue:/dw/var/taskqueue:rw
- /home/dw/dw/cgi-bin/DW/TaskQueue/LocalDisk.pm:/dw/cgi-bin/DW/TaskQueue/LocalDisk.pm
- /home/dw/dw/blobimages:/dw/var/blobimages:rw
- /home/dw/dw/bin/worker-manager:/dw/bin/worker-manager
- /home/dw/dw/etc/docker/worker/files/workers.conf:/dw/etc/workers.conf
- /home/dw/dw/htdocs/stc/gradation/gradation.css:/dw/htdocs/stc/gradation/gradation.css:rw
- /home/dw/dw/htdocs/scss/skins/gradation/_gradation-base.scss:/dw/htdocs/scss/skins/gradation/_gradation-base.scss:rw
- /home/dw/dw/cgi-bin/DW/SiteScheme.pm:/dw/cgi-bin/DW/SiteScheme.pm:rw
- /home/dw/dw/cgi-bin/DW/SiteScheme.pm:/dw/ext/dw-nonfree/cgi-bin/DW/Hooks/SiteScheme.pm:rw
- /home/dw/dw/htdocs/img/profile_icons:/dw/htdocs/img/profile_icons
- /home/dw/dw/bin/upgrading/en.dat:/dw/bin/upgrading/en.dat:rw
- /home/dw/dw/bin/upgrading/base-data.sql:/dw/bin/upgrading/base-data.sql:rw
- /home/dw/dw/bin/upgrading/proplists.dat:/dw/bin/upgrading/proplists.dat:rw
# - /home/dw/dw/cgi-bin/DW/Controller/Index.pm:/dw/ext/dw-nonfree/cgi-bin/DW/Controller/Dreamwidth/Index.pm
- /home/dw/dw/views/index-free.tt:/dw/views/index-free.tt
- /home/dw/dw/htdocs/img/external:/dw/htdocs/img/external
- /home/dw/dw/cgi-bin/DW/BlobStore/S3.pm:/dw/cgi-bin/DW/BlobStore/S3.pm
- /home/dw/dw/garage/data:/mnt/data
- /home/dw/dw/etc/docker/web/config/etc/apache2/envvars:/etc/apache2/envvars
env_file: /home/dw/dw/etc/docker/web.env
depends_on:
mysql:
condition: service_healthy
worker:
container_name: worker-dw
build:
context: /home/dw/dw/etc/docker/worker
dockerfile: Dockerfile
volumes:
- /home/dw/dw/etc/docker/web/files/config-private.pl:/dw/etc/config-private.pl
- /home/dw/dw/etc/docker/web/files/config-local.pl:/dw/etc/config-local.pl
- /home/dw/dw/etc/docker/web/files/config.pl:/dw/etc/config.pl
- /home/dw/dw/bin/worker-manager:/dw/bin/worker-manager
- /home/dw/dw/etc/docker/worker/files/workers.conf:/dw/etc/workers.conf
- /home/dw/dw/cgi-bin/DW/TaskQueue.pm:/dw/cgi-bin/DW/TaskQueue.pm
- /home/dw/dw/cgi-bin/DW/TaskQueue/LocalDisk.pm:/dw/cgi-bin/DW/TaskQueue/LocalDisk.pm
- /home/dw/dw/var/taskqueue:/dw/var/taskqueue:rw
command: bash -c "/dw/bin/ddlockd"
depends_on:
mysql:
condition: service_healthy
#lock:
#container_name: lock-dw
# build:
# context: /home/dw/dw/etc/docker/worker
# dockerfile: Dockerfile
# image: ghcr.io/dreamwidth/worker
# environment:
# - PERL5LIB=/dw/extlib/lib/perl5
# command: bash -c "/dw/bin/ddlockd"
# ports:
# - "7006:7006"
lock:
container_name: lock-dw
# build:
#context: /home/dw/dw/etc/docker/worker
# dockerfile: Dockerfile
image: ghcr.io/dreamwidth/worker
environment:
- PERL5LIB=/dw/extlib/lib/perl5
command: bash -c "/dw/bin/ddlockd"
ports:
- "7006:7006"
memcached:
container_name: memcached-dw
image: memcached:latest
ports:
- "11311:11311"
command:
- --conn-limit=1024
- --memory-limit=64
- --threads=4
garage:
image: dxflrs/garage:v2.2.0
container_name: garage
network_mode: "host"
# env_file: env.env
volumes:
- ./garage.toml:/etc/garage.toml
- ./meta:/var/lib/garage/meta
- ./data:/var/lib/garage/data
# webui:
# image: khairul169/garage-webui:latest
# container_name: garage-webui
# restart: unless-stopped
#volumes:
# - ./garage.toml:/etc/garage.toml:ro
#environment:
# API_BASE_URL: "http://127.0.0.1:3903"
# S3_ENDPOINT_URL: "http://127.0.0.1:3900"
#network_mode: "host"
#garagehq:
# container_name: garagehq
# image: dxflrs/garage:v2.2.0
# environment:
# -
#ports:
# - 3900:3900 # S3 API port
#- 3901:3901 # RPC port (internal communication)
# 3903:3903 # Admin API port
#volumes:
# - /home/dw/dw/etc/docker/garagehq/data:/mnt/data
#- /home/dw/dw/etc/docker/garagehq/blobimages:/dw/var/blobimages:rw
mysql:
container_name: dw-mysql
build:
context: /home/dw/dw/etc/docker/mysql-build
dockerfile: Dockerfile
env_file: .env
command: --sql_mode=""
volumes:
- ./mysql25:/var/lib/mysql
- /home/dw/dw/etc/docker/cnf/my.cnf/my.cnf:/etc/my.cnf:ro
ports:
- "33061:33061"
healthcheck:
test: ["CMD-SHELL", "ls" ]
start_period: 10s
interval: 5s
timeout: 5s
retries: 3

407
LICENSE Normal file
View file

@ -0,0 +1,407 @@
This repository was originally based off of code retrieved
in 2008 from Six Apart's public "livejournal" svn repository,
located at:
http://code.livejournal.org/trac/livejournal
In 2014, LiveJournal.com, Inc. made the official LiveJournal
code repository private, and so this source is no longer available.
An archived version of the original source is located at:
https://github.com/apparentlymart/livejournal
The original LiveJournal code carries this copyright:
The code in LiveJournal.org's "livejournal" cvs repository are
Copyright (C) 1994-2005 LiveJournal.com, Inc., a subsidiary of Six
Apart, Ltd.
The code modifications made to the original code and that are
contained in this repository carry the following copyright:
Original code copyright (C) 1994-2005 LiveJournal.com, Inc., a
subsidiary of Six Apart, Ltd. Modifications copyright (C)
2008-2016 by Dreamwidth Studios, LLC.
Files that do not have an explicit header indicating that they
were wholly authored by Dreamwidth Studios, LLC, are either wholly
authored by LiveJournal, Inc or authored by LiveJournal, Inc and
modified by Dreamwidth Studios. These files are licensed under the
terms of the license supplied by LiveJournal, Inc, which is archived
here:
https://github.com/apparentlymart/livejournal/blob/master/LICENSE-LiveJournal.txt
Some files committed to this repository were wholly authored by
Dreamwidth Studios, LLC. These files carry this copyright:
Copyright (C) 2008-2016 by Dreamwidth Studios, LLC.
Files wholly authored by Dreamwidth Studios, LLC contain an explicit
header indicating authorship and license information. These files are
licensed under the terms indicated in each file, specifically:
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. For a copy of the
license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'.
Finally, files in ext/dw-nonfree are not licensed for use or
distribution. They are provided as examples only as they are the
Dreamwidth Studios branding and custom code.
--------
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
The text of the GNU General Public License follows:
-------
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

15
README.md Normal file
View file

@ -0,0 +1,15 @@
this is my self-hosted version of dreamwidth :-) idk perl so im still working on customizing it lol
# Dreamwidth
Please see the `LICENSE` file for the license of this code. Note that all code
committed to this repository MUST be licensed under the GPL and have proper
copyright notices tagged at the top of the file.
For more information on how to use this software, please harass someone to
actually write out documentation here. :-)
Please [see our wiki for more information](http://wiki.dreamwidth.net/).
Thanks!

5
SECURITY.md Normal file
View file

@ -0,0 +1,5 @@
# Security Policy
## Reporting a Vulnerability
To report a vulnerability, please email security@dreamwidth.org, or [open a support request](https://www.dreamwidth.org/support/submit) in one of the protected categories (those marked with a *)

1
api/README.md Normal file
View file

@ -0,0 +1 @@
This folder contains the YAML files used to generate and validate [OpenAPI](https://openapis.org) routes for Dreamwidth, and to build the spec file supplied to end users. `src` contains the files you should edit - reusable components should go into `src\components\` and can then be referenced using JS Schema reference notation (eg, `$ref: components/schemas/username.yaml`). This cuts down on items that need to be retyped, and keeps descriptions of items consistent across different endpoints. `dist` contains the compiled YAML files that are used by the Perl endpoint controllers. Because YAML has no mechanism for file includes, there is unfortunately still a manual step required to rebuild the `dist` files when the `src` files are changed. First install node and then the necessary packages (`npm install` from inside this folder), and then run the `build.js` file (`node build.js`). This will compile the YAML files, and print any errors encountered along the way to the terminal.

52
api/build.js Normal file
View file

@ -0,0 +1,52 @@
const $RefParser = require("@apidevtools/json-schema-ref-parser");
const YAML = require('yaml');
const fs = require("fs");
const path = require("path");
async function* walk(dir) {
for await (const d of await fs.promises.opendir(dir)) {
const entry = path.join(dir, d.name);
if (d.isDirectory()) yield* walk(entry);
else if (d.isFile()) yield entry;
}
}
async function main() {
if (!fs.existsSync("dist/")) {
fs.mkdir("dist/", err => {
if (err) {
console.error(err);
}
});
}
for await (const p of walk('src/')) {
let out_path = p.replace('src/', 'dist/');
$RefParser.dereference(p, (err, schema) => {
if (err) {
console.log(p);
console.error(err);
}
else {
let out_dir = out_path.substring(0, out_path.lastIndexOf("/"));
if (!fs.existsSync(out_dir)) {
fs.mkdir(out_dir, err => {
if (err) {
console.error(err);
}
});
}
// console.log(YAML.stringify(schema));
fs.writeFile(out_path, YAML.stringify(schema), err => {
if (err) {
console.error(err);
}
// file written successfully
});
}
});
}
}
main();

7
api/dist/comments/screening.yaml vendored Normal file
View file

@ -0,0 +1,7 @@
paths:
/comments/screening:
get:
description: Returns descriptions of all possible comment screening options.
responses:
"200":
description: A list of comment screening options and their descriptions.

8
api/dist/components/error.yaml vendored Normal file
View file

@ -0,0 +1,8 @@
type: object
properties:
error:
type: string
description: A description of the error encountered.
example: "Bad format for username. Errors: String is too long: 77/25."
success:
type: number

12
api/dist/components/errors/400.yaml vendored Normal file
View file

@ -0,0 +1,12 @@
description: Bad or missing request parameters.
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: A description of the error encountered.
example: "Bad format for username. Errors: String is too long: 77/25."
success:
type: number

View file

@ -0,0 +1,12 @@
description: Username specified does not exist.
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: A description of the error encountered.
example: "Bad format for username. Errors: String is too long: 77/25."
success:
type: number

View file

@ -0,0 +1,13 @@
type: object
required:
- name
properties:
name:
description: The name of the new accesslist.
type: string
minLength: 1
sortorder:
description: Sort order for the new accesslist, 0 to 255.
type: integer
minimum: 0
maximum: 255

21
api/dist/components/schemas/icon.yaml vendored Normal file
View file

@ -0,0 +1,21 @@
type: object
required:
- comment
- picid
- username
- url
- keywords
properties:
comment:
type: string
picid:
type: integer
username:
type: string
description: The name of the journal this icon belongs to.
url:
type: string
keywords:
type: array
items:
type: string

View file

@ -0,0 +1,5 @@
type: string
minLength: 3
maxLength: 25
pattern: ^[0-9A-Za-z_]+$
example: example

57
api/dist/icons_all.yaml vendored Normal file
View file

@ -0,0 +1,57 @@
paths:
"/users/{username}/icons":
parameters:
- name: username
in: path
description: The username you want icon information for
required: true
schema:
type: string
minLength: 3
maxLength: 25
pattern: ^[0-9A-Za-z_]+$
example: example
get:
description: Returns all icons for a specified username.
responses:
"200":
description: a list of icons
content:
application/json:
schema:
type: array
items:
type: object
required:
- comment
- picid
- username
- url
- keywords
properties:
comment:
type: string
picid:
type: integer
username:
type: string
description: The name of the journal this icon belongs to.
url:
type: string
keywords:
type: array
items:
type: string
"404":
description: Username specified does not exist.
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: A description of the error encountered.
example: "Bad format for username. Errors: String is too long: 77/25."
success:
type: number

7
api/dist/spec.yaml vendored Normal file
View file

@ -0,0 +1,7 @@
paths:
/spec:
get:
description: Returns the API specification
responses:
"200":
description: This API specification!

View file

@ -0,0 +1,8 @@
---
paths:
/comments/screening:
get:
description: Returns descriptions of all possible comment screening options.
responses:
200:
description: A list of comment screening options and their descriptions.

View file

@ -0,0 +1,8 @@
type: object
properties:
error:
type: string
description: A description of the error encountered.
example: "Bad format for username. Errors: String is too long: 77/25."
success:
type: number

View file

@ -0,0 +1,5 @@
description: Bad or missing request parameters.
content:
application/json:
schema:
$ref: ../error.yaml

View file

@ -0,0 +1,5 @@
description: Username specified does not exist.
content:
application/json:
schema:
$ref: ../error.yaml

View file

@ -0,0 +1,13 @@
type: object
required:
- name
properties:
name:
description: The name of the new accesslist.
type: string
minLength: 1
sortorder:
description: Sort order for the new accesslist, 0 to 255.
type: integer
minimum: 0
maximum: 255

View file

@ -0,0 +1,21 @@
type: object
required:
- comment
- picid
- username
- url
- keywords
properties:
comment:
type: string
picid:
type: integer
username:
type: string
description: The name of the journal this icon belongs to.
url:
type: string
keywords:
type: array
items:
type: string

View file

@ -0,0 +1,5 @@
type: string
minLength: 3
maxLength: 25
pattern: "^[0-9A-Za-z_]+$"
example: example

31
api/src/icons.yaml Normal file
View file

@ -0,0 +1,31 @@
---
paths:
/users/{username}/icons/{picid}:
parameters:
- name: username
in: path
description: The username you want icon information for
required: true
schema:
$ref: components/schemas/username.yaml
- name: picid
in: path
description: The picid you want information for.
required: true
schema:
type: integer
get:
description: Returns a single icon for a specified picid and username
responses:
200:
description: An icon with its information
content:
application/json:
schema:
$ref: components/schemas/icon.yaml
404:
description: No such username or icon.
schema:
$ref: components/error.yaml
400:
$ref: components/errors/400.yaml

23
api/src/icons_all.yaml Normal file
View file

@ -0,0 +1,23 @@
---
paths:
/users/{username}/icons:
parameters:
- name: username
in: path
description: The username you want icon information for
required: true
schema:
$ref: components/schemas/username.yaml
get:
description: Returns all icons for a specified username.
responses:
200:
description: a list of icons
content:
application/json:
schema:
type: array
items:
$ref: components/schemas/icon.yaml
404:
$ref: components/errors/404-user.yaml

View file

@ -0,0 +1,56 @@
---
paths:
/journals/{username}/accesslists/{accesslistid}:
parameters:
- name: username
in: path
description: The username you want accesslist information for
required: true
schema:
$ref: ../components/schemas/username.yaml
- name: accesslistid
in: path
description: The id of the accesslist you want information for.
required: true
schema:
type: integer
get:
description: Returns a list journals on a given access list.
responses:
200:
description: A list of journals on this accesslist.
content:
application/json:
schema:
type: array
items:
$ref: ../components/schemas/username.yaml
403:
description: You cannot view accesslists on that journal.
schema:
$ref: ../components/error.yaml
404:
$ref: ../components/errors/404-user.yaml
400:
$ref: ../components/errors/400.yaml
post:
description: Add users to a given accesslist
requestBody:
required: true
content:
application/json:
schema:
type: array
items:
$ref: ../components/schemas/username.yaml
responses:
200:
description: The newly updated accesslist.
403:
description: You cannot update accesslists on that journal.
schema:
$ref: ../components/error.yaml
404:
$ref: ../components/errors/404-user.yaml
400:
$ref: ../components/errors/400.yaml

Some files were not shown because too many files have changed in this diff Show more