Skip to content

Commit

Permalink
Upgrading Mastodon and PostgreSQl
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswittig committed Jul 4, 2024
1 parent 5fe656b commit f1a13c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ $ aws cloudformation deploy --template-file packaged.yml --stack-name mastodon-o
Push Mastodon container image to ECR Public.

```
MASTODON_VERSION="v4.2.7"
MASTODON_VERSION="v4.2.10"
docker pull --platform linux/amd64 ghcr.io/mastodon/mastodon:${MASTODON_VERSION}
docker image tag ghcr.io/mastodon/mastodon:${MASTODON_VERSION} public.ecr.aws/h6i3a8b9/mastodon:${MASTODON_VERSION}
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/h6i3a8b9
Expand Down
10 changes: 5 additions & 5 deletions mastodon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Resources:
DBBackupRetentionPeriod: !Ref DatabaseBackupRetentionPeriod
DBMasterUsername: 'mastodon'
DBMultiAZ: 'false'
EngineVersion: '14.5'
EngineVersion: '16'
TemplateURL: './node_modules/@cfn-modules/rds-postgres/module.yml'
Cluster:
Type: 'AWS::CloudFormation::Stack'
Expand All @@ -159,7 +159,7 @@ Resources:
AlertingModule: !GetAtt 'Alerting.Outputs.StackName'
ClientSgModule1: !GetAtt 'ClientSg.Outputs.StackName'
ManagedPolicyArns: !Ref S3Policy
AppImage: 'public.ecr.aws/h6i3a8b9/mastodon:v4.2.9'
AppImage: 'public.ecr.aws/h6i3a8b9/mastodon:v4.2.10'
AppCommand: 'bash,-c,bundle exec rails db:migrate && bundle exec rails s -p 3000'
AppPort: '3000'
AppEnvironment1Key: 'LOCAL_DOMAIN'
Expand Down Expand Up @@ -234,7 +234,7 @@ Resources:
AlertingModule: !GetAtt 'Alerting.Outputs.StackName'
ClientSgModule1: !GetAtt 'ClientSg.Outputs.StackName'
ManagedPolicyArns: !Ref S3Policy
AppImage: 'public.ecr.aws/h6i3a8b9/mastodon:v4.2.9'
AppImage: 'public.ecr.aws/h6i3a8b9/mastodon:v4.2.10'
AppCommand: 'bash,-c,node ./streaming'
AppPort: '4000'
AppEnvironment1Key: 'LOCAL_DOMAIN'
Expand Down Expand Up @@ -308,7 +308,7 @@ Resources:
AlertingModule: !GetAtt 'Alerting.Outputs.StackName'
ClientSgModule1: !GetAtt 'ClientSg.Outputs.StackName'
ManagedPolicyArns: !Ref S3Policy
AppImage: 'public.ecr.aws/h6i3a8b9/mastodon:v4.2.9'
AppImage: 'public.ecr.aws/h6i3a8b9/mastodon:v4.2.10'
AppCommand: 'bash,-c,bundle exec sidekiq'
AppEnvironment1Key: 'LOCAL_DOMAIN'
AppEnvironment1Value: !Ref DomainName
Expand Down Expand Up @@ -381,7 +381,7 @@ Resources:
AlertingModule: !GetAtt 'Alerting.Outputs.StackName'
ClientSgModule1: !GetAtt 'ClientSg.Outputs.StackName'
ManagedPolicyArns: !Ref S3Policy
AppImage: 'public.ecr.aws/h6i3a8b9/mastodon:v4.2.9'
AppImage: 'public.ecr.aws/h6i3a8b9/mastodon:v4.2.10'
AppCommand: 'bash,-c,RAILS_ENV=production bin/tootctl media remove && RAILS_ENV=production bin/tootctl preview_cards remove'
AppEnvironment1Key: 'LOCAL_DOMAIN'
AppEnvironment1Value: !Ref DomainName
Expand Down

0 comments on commit f1a13c4

Please sign in to comment.