mastodon: add targaryen image
75
mastodon/Dockerfile.targaryen
Normal file
@ -0,0 +1,75 @@
|
||||
FROM alpine:3.6
|
||||
|
||||
ARG VERSION=v1.4.3
|
||||
ARG REPOSITORY=tootsuite/mastodon
|
||||
|
||||
ENV UID=991 GID=991 \
|
||||
RUN_DB_MIGRATIONS=true \
|
||||
SIDEKIQ_WORKERS=5 \
|
||||
RAILS_SERVE_STATIC_FILES=true \
|
||||
RAILS_ENV=production \
|
||||
NODE_ENV=production \
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mastodon/bin
|
||||
|
||||
WORKDIR /mastodon
|
||||
|
||||
COPY targaryen /tmp/targaryen
|
||||
|
||||
RUN apk -U upgrade \
|
||||
&& apk add \
|
||||
ca-certificates \
|
||||
ffmpeg \
|
||||
file \
|
||||
git \
|
||||
imagemagick \
|
||||
libpq \
|
||||
libressl \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
nodejs-current-npm \
|
||||
nodejs-current \
|
||||
protobuf \
|
||||
ruby \
|
||||
ruby-bigdecimal \
|
||||
ruby-io-console \
|
||||
ruby-irb \
|
||||
ruby-json \
|
||||
s6 \
|
||||
su-exec \
|
||||
&& apk add -t build-dependencies \
|
||||
build-base \
|
||||
libffi-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
postgresql-dev \
|
||||
protobuf-dev \
|
||||
python \
|
||||
ruby-dev \
|
||||
ruby-rdoc \
|
||||
tar \
|
||||
&& update-ca-certificates \
|
||||
&& wget -qO- https://github.com/${REPOSITORY}/archive/${VERSION}.tar.gz | tar xz --strip 1 \
|
||||
&& cp -R /tmp/targaryen/* . \
|
||||
&& gem install bundler \
|
||||
&& bundle install --deployment --clean --no-cache --without test development \
|
||||
&& npm install -g npm@3 && npm install -g yarn \
|
||||
&& yarn --ignore-optional --pure-lockfile \
|
||||
&& SECRET_KEY_BASE=$(rake secret) rake assets:precompile \
|
||||
&& npm -g cache clean && yarn cache clean \
|
||||
&& mv public/assets /tmp/assets && mv public/packs /tmp/packs \
|
||||
&& apk del build-dependencies \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
|
||||
|
||||
VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs /mastodon/log
|
||||
|
||||
EXPOSE 3000 4000
|
||||
|
||||
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>" \
|
||||
description="A GNU Social-compatible microblogging server"
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/run"]
|
||||
CMD ["/bin/s6-svscan", "/etc/s6.d"]
|
BIN
mastodon/targaryen/app/javascript/images/background-photo.jpg
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
mastodon/targaryen/app/javascript/images/elephant-friend.png
Normal file
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 143 KiB |
BIN
mastodon/targaryen/app/javascript/images/logo.png
Normal file
After Width: | Height: | Size: 21 KiB |
1
mastodon/targaryen/app/javascript/images/logo.svg
Normal file
After Width: | Height: | Size: 306 KiB |
After Width: | Height: | Size: 63 KiB |
BIN
mastodon/targaryen/app/javascript/images/mastodon-not-found.png
Normal file
After Width: | Height: | Size: 14 KiB |
28
mastodon/targaryen/app/javascript/styles/variables.scss
Normal file
@ -0,0 +1,28 @@
|
||||
// Commonly used web colors
|
||||
$black: #000000; // Black
|
||||
$white: #ffffff; // White
|
||||
$success-green: #79bd9a; // Padua
|
||||
$error-red: #df405a; // Cerise
|
||||
$warning-red: #ff5050; // Sunset Orange
|
||||
$gold-star: #ca8f04; // Dark Goldenrod
|
||||
|
||||
// Values from the classic Mastodon UI
|
||||
$classic-base-color: #2d2d2d; // Midnight Grey
|
||||
$classic-primary-color: #c89b9b; // Echo Red
|
||||
$classic-secondary-color: #e8d9d9; // Pattens Red
|
||||
$classic-highlight-color: #d92b2b; // Summer RedSky
|
||||
|
||||
// Variables for defaults in UI
|
||||
$base-shadow-color: $black !default;
|
||||
$base-overlay-background: $black !default;
|
||||
$base-border-color: $white !default;
|
||||
$simple-background-color: $white !default;
|
||||
$primary-text-color: $white !default;
|
||||
$valid-value-color: $success-green !default;
|
||||
$error-value-color: $error-red !default;
|
||||
|
||||
// Tell UI to use selected colors
|
||||
$ui-base-color: $classic-base-color !default; // Darkest
|
||||
$ui-primary-color: $classic-primary-color !default; // Lighter
|
||||
$ui-secondary-color: $classic-secondary-color !default; // Lightest
|
||||
$ui-highlight-color: $classic-highlight-color !default; // Vibrant
|