Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion porting/manyfold/Dockerfile → apps/manyfold/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/trueforge-org/node:22.22.0
FROM ghcr.io/trueforge-org/node:24.15.0

ARG VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -34,6 +34,7 @@ RUN \
libffi-dev \
libmariadb-dev \
libpq-dev \
pkg-config \
ruby-dev \
libyaml-dev && \
echo "**** install manyfold ****" && \
Expand Down Expand Up @@ -64,13 +65,17 @@ RUN \
APP_VERSION=v${VERSION} \
bundle exec rake assets:precompile && \
rm db/schema.rb && \
rm -rf /app/www/tmp /app/www/log && \
ln -s /tmp/manyfold/tmp /app/www/tmp && \
ln -s /tmp/manyfold/log /app/www/log && \
echo "**** cleanup ****" && \
yarn cache clean && \
apt-get purge -y --auto-remove \
build-essential \
libffi-dev \
libmariadb-dev \
libpq-dev \
pkg-config \
ruby-dev \
libyaml-dev && \
apt-get clean && \
Expand Down
8 changes: 8 additions & 0 deletions apps/manyfold/container-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/trueforge-org/forgetool/refs/heads/main/pkg/containers/test/container-test.schema.json

# narrowed: requires external postgresql (opt_dependencies) and redis for sidekiq workers;
# full functional test not feasible in single-container suite
timeoutSeconds: 240
filePaths:
- /app/www/vendor/bundle/ruby/3.3.0/bin/foreman
- /app/www/vendor/bundle/ruby/3.3.0/bin/bundle
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions porting/manyfold/start.sh → apps/manyfold/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Create required runtime directories in /tmp
mkdir -p /tmp/manyfold/tmp /tmp/manyfold/log

# set secret key if unset
SECRET_FILE="/config/secret_key_base.txt"
if [[ -w /config ]]; then
Expand All @@ -16,12 +19,11 @@ if [[ -w /config ]]; then
fi
printf "%s" "${SECRET_KEY_BASE}" > /var/run/s6/container_environment/SECRET_KEY_BASE

mkdir -p /app/www/log /app/www/tmp
else
# /config is readonly, use /tmp
echo "Warning: /config is read-only, using /tmp for runtime data"
SECRET_FILE="/tmp/manyfold/secret_key_base.txt"
mkdir -p /tmp/manyfold /app/www/log /app/www/tmp
mkdir -p /tmp/manyfold

if [ -n "${SECRET_KEY_BASE}" ]; then
echo "**** SECRET_KEY_BASE set in environment. ****"
Expand Down
6 changes: 0 additions & 6 deletions porting/manyfold/container-test.yaml

This file was deleted.

Loading