I don't know how to boot the mastodon Docker image.

Asked 2 years ago, Updated 2 years ago, 51 views

toosuite/mastodon-Docker Hub

It doesn't say Official, but I think the above is probably the Docker image created by the author himself.

docker run and it looks like the following

%docker run bootsuite/mastodon
tini (tini version 0.18.0-git.fec3683)
Usage:tini [OPTIONS] PROGRAM -- [ARGS] | --version

Execute a program under the supervision of a valid init process (tini)

Command line options:

  --version —Show version and exit.
  -h —Show this help message and exit.
  -s: Register as a process subreaper (requires Linux>=3.4).
  -p SIGNAL: Trigger SIGNAL when parents, e.g. "-p SIGKILL".
  -v: Generate more verbose output. Repeat up to 3 times.
  -w —Print a warning when processes are getting reaped.
  -g —Send signals to the child's process group.
  -e EXIT_CODE: Remap EXIT_CODE (from 0 to 255) to 0.
  -l —Show license and exit.

Environment variables:

  TINI_SUBREAPER: Register as a process subreaper (requires Linux>=3.4).
  TINI_VERBOSITY: Set the verbosity level (default:1).
  TINI_KILL_PROCESS_GROUP: Send signals to the child's process group.

To bootsuite/mastodon-Docker Hub

The repository includes deployment configurations for Docker and docker-compose, but also a new specific platforms like Heroku, Scalingo, and Nanobox.The stand-alone installation guide is available in the documentation.

and so on.So

Installing from source-Mastodon documentation

Looking at , I don't think there is a description of Docker.

If you are familiar with Docker, this is the result of docker run

tini (tini version 0.18.0-git.fec3683)
Usage:tini [OPTIONS] PROGRAM -- [ARGS] | --version

Is it possible to build the environment by guessing from around?

Or

The repository includes deployment configurations for Docker and docker-compose

Do you mean https://github.com/tootsuite/mastodon?
There was indeed docker-compose.Do you use this in a good way?(What's a good feeling?)

https://github.com/tootsuite/mastodon also includes Dockerfile.In this case, instead of importing an image from Docker Hub like docker pull bootsuite/mastodon, do you create your own image from the Docker file?Or should I use docker-compose?

docker mastodon

2022-09-30 19:13

1 Answers

If you look at the Docker Image,

#Precompileassets
RUN cd to & \
    OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder railsassets:precompile&\
    yarn cache clean

# Set the work dir and the container entry point
WORKDIR/opt/mastodon
ENTRYPOINT ["/tini", "--"]
EXPOSE 3000 4000

running the .
So if you look at the tini formula, you can see

In Docker, you will want to use an entry point so you don't have to remember to manually invite Tini:

#Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/$ {TINI_VERSION}/tini/tini
RUN chmod+x/tini
ENTRYPOINT ["/tini", "--"]

# Run your program under Tini
CMD ["/your/program", "-and", "-its", "arguments" ]
# or docker run your-image/your/program...

So I think I should do docker run like that.


2022-09-30 19:13

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.