forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2138 from kedamaDQ/foresdon-v4.3.0
Foresdon v4.3.0
- Loading branch information
Showing
3,652 changed files
with
144,941 additions
and
81,574 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
[production] | ||
defaults | ||
not IE 11 | ||
> 0.2% | ||
firefox >= 78 | ||
ios >= 15.6 | ||
not dead | ||
not OperaMini all | ||
|
||
[development] | ||
supports es6-module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
# For details, see https://github.com/devcontainers/images/tree/main/src/ruby | ||
FROM mcr.microsoft.com/devcontainers/ruby:1-3.2-bullseye | ||
FROM mcr.microsoft.com/devcontainers/ruby:1-3.3-bookworm | ||
|
||
# Install Rails | ||
# RUN gem install rails webdrivers | ||
# Install node version from .nvmrc | ||
WORKDIR /app | ||
COPY .nvmrc . | ||
RUN /bin/bash --login -i -c "nvm install" | ||
|
||
ARG NODE_VERSION="16" | ||
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1" | ||
# Install additional OS packages | ||
RUN apt-get update && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get -y install --no-install-recommends libicu-dev libidn11-dev ffmpeg imagemagick libvips42 libpam-dev | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends libicu-dev libidn11-dev ffmpeg imagemagick libpam-dev | ||
# Disable download prompt for Corepack | ||
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0 | ||
|
||
# [Optional] Uncomment this line to install additional gems. | ||
RUN gem install foreman | ||
|
||
# [Optional] Uncomment this line to install global node packages. | ||
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g yarn" 2>&1 | ||
|
||
COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt | ||
# Move welcome message to where VS Code expects it | ||
COPY .devcontainer/welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
services: | ||
app: | ||
working_dir: /workspaces/mastodon/ | ||
build: | ||
context: .. | ||
dockerfile: .devcontainer/Dockerfile | ||
volumes: | ||
- ..:/workspaces/mastodon:cached | ||
environment: | ||
RAILS_ENV: development | ||
NODE_ENV: development | ||
BIND: 0.0.0.0 | ||
REDIS_HOST: redis | ||
REDIS_PORT: '6379' | ||
DB_HOST: db | ||
DB_USER: postgres | ||
DB_PASS: postgres | ||
DB_PORT: '5432' | ||
ES_ENABLED: 'true' | ||
ES_HOST: es | ||
ES_PORT: '9200' | ||
LIBRE_TRANSLATE_ENDPOINT: http://libretranslate:5000 | ||
# Overrides default command so things don't shut down after the process ends. | ||
command: sleep infinity | ||
ports: | ||
- '127.0.0.1:3000:3000' | ||
- '127.0.0.1:3035:3035' | ||
- '127.0.0.1:4000:4000' | ||
networks: | ||
- external_network | ||
- internal_network | ||
|
||
db: | ||
image: postgres:14-alpine | ||
restart: unless-stopped | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_DB: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
networks: | ||
- internal_network | ||
|
||
redis: | ||
image: redis:7-alpine | ||
restart: unless-stopped | ||
volumes: | ||
- redis-data:/data | ||
networks: | ||
- internal_network | ||
|
||
es: | ||
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2 | ||
restart: unless-stopped | ||
environment: | ||
ES_JAVA_OPTS: -Xms512m -Xmx512m | ||
cluster.name: es-mastodon | ||
discovery.type: single-node | ||
bootstrap.memory_lock: 'true' | ||
volumes: | ||
- es-data:/usr/share/elasticsearch/data | ||
networks: | ||
- internal_network | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
|
||
libretranslate: | ||
image: libretranslate/libretranslate:v1.6.1 | ||
restart: unless-stopped | ||
volumes: | ||
- lt-data:/home/libretranslate/.local | ||
networks: | ||
- external_network | ||
- internal_network | ||
|
||
volumes: | ||
postgres-data: | ||
redis-data: | ||
es-data: | ||
lt-data: | ||
|
||
networks: | ||
external_network: | ||
internal_network: | ||
internal: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
👋 Welcome to "Mastodon" in GitHub Codespaces! | ||
👋 Welcome to your Mastodon Dev Container! | ||
|
||
🛠️ Your environment is fully setup with all the required software. | ||
🛠️ Your environment is fully setup with all the required software. | ||
|
||
🔍 To explore VS Code to its fullest, search using the Command Palette (Cmd/Ctrl + Shift + P or F1). | ||
|
||
📝 Edit away, run your app as usual, and we'll automatically make it available for you to access. | ||
💥 Run `bin/dev` to start the application processes. | ||
|
||
🥼 Run `RAILS_ENV=test bin/rails assets:precompile && RAILS_ENV=test bin/rspec` to run the test suite. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
public/system | ||
public/assets | ||
public/packs | ||
public/packs-test | ||
node_modules | ||
neo4j | ||
vendor/bundle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Required by ActiveRecord encryption feature | ||
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=fkSxKD2bF396kdQbrP1EJ7WbU7ZgNokR | ||
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=r0hvVmzBVsjxC7AMlwhOzmtc36ZCOS1E | ||
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=PhdFyyfy5xJ7WVd2lWBpcPScRQHzRTNr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Node.js | ||
NODE_ENV=tests | ||
# In test, compile the NodeJS code as if we are in production | ||
NODE_ENV=production | ||
# Federation | ||
LOCAL_DOMAIN=cb6e6126.ngrok.io | ||
LOCAL_HTTPS=true | ||
|
||
# Secret values required by ActiveRecord encryption feature | ||
# Use `bin/rails db:encryption:init` to generate fresh secrets | ||
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=test_determinist_key_DO_NOT_USE_IN_PRODUCTION | ||
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=test_salt_DO_NOT_USE_IN_PRODUCTION | ||
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=test_primary_key_DO_NOT_USE_IN_PRODUCTION |
Oops, something went wrong.