examples/compose boots everything the engine's workflow assumes: mysql, a minimal Rails host consuming the engine as a path gem, an SSH drop area sharing the softwares volume with the app, and — behind the ci profile — gitea plus woodpecker (agent attached to the stack network so pipeline steps reach droparea/app by service name). host_app doubles as a reference for a brand-new host: Gemfile, the two initializers, apipie + engine mounts in routes.rb; on first boot the entrypoint runs the install generator and db:prepare. The README gains a detailed bring-up walkthrough: quickstart, publishing a release by hand over scp + /update (verified end to end from a clean slate), and the full gitea/woodpecker OAuth wiring.
21 lines
504 B
Docker
21 lines
504 B
Docker
FROM ruby:3.3-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
default-libmysqlclient-dev \
|
|
git \
|
|
tzdata \
|
|
libyaml-dev \
|
|
pkg-config \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# The app source, the engine checkout (/warp_engine) and the bundle are all
|
|
# mounted at runtime by the compose file; the entrypoint bundles on first boot.
|
|
ENTRYPOINT ["./bin/docker-entrypoint"]
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["bin/rails", "server", "-b", "0.0.0.0", "-p", "3000"]
|