mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-01 20:33:50 +00:00
ops: stop committing the nixpacks build plan
`railway up` writes .nixpacks/ into the working tree: a Dockerfile, a nixpkgs pin, and a build.sh that hard-codes the absolute path of the worktree it ran in plus a one-off image tag. None of it is reusable and no workflow reads it, so every branch that deploys regenerates it and conflicts with the last one -- which is exactly how this branch ended up CONFLICTING against master. Drop it and ignore it.
This commit is contained in:
parent
bb2e8c9592
commit
1583ca1166
4 changed files with 5 additions and 58 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -11,3 +11,8 @@ test-results
|
||||||
.commandboard
|
.commandboard
|
||||||
.logicsrc
|
.logicsrc
|
||||||
supabase/.temp
|
supabase/.temp
|
||||||
|
|
||||||
|
# Nixpacks build plan generated by `railway up`. It bakes absolute paths to the
|
||||||
|
# worktree it was generated in and a one-off image tag, so it is never reusable
|
||||||
|
# and every regeneration conflicts with the last one.
|
||||||
|
.nixpacks/
|
||||||
|
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
FROM ghcr.io/railwayapp/nixpacks:ubuntu-1745885067
|
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "-l", "-c"]
|
|
||||||
WORKDIR /app/
|
|
||||||
ARG PUBLIC_ORIGIN
|
|
||||||
ENV PUBLIC_ORIGIN=$PUBLIC_ORIGIN
|
|
||||||
|
|
||||||
|
|
||||||
COPY .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix
|
|
||||||
RUN nix-env -if .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix && nix-collect-garbage -d
|
|
||||||
|
|
||||||
|
|
||||||
ARG CI NIXPACKS_METADATA NIXPACKS_NODE_VERSION NODE_ENV NPM_CONFIG_PRODUCTION
|
|
||||||
ENV CI=$CI NIXPACKS_METADATA=$NIXPACKS_METADATA NIXPACKS_NODE_VERSION=$NIXPACKS_NODE_VERSION NODE_ENV=$NODE_ENV NPM_CONFIG_PRODUCTION=$NPM_CONFIG_PRODUCTION
|
|
||||||
|
|
||||||
# setup phase
|
|
||||||
# noop
|
|
||||||
|
|
||||||
# install phase
|
|
||||||
ENV NIXPACKS_PATH=/app/node_modules/.bin:$NIXPACKS_PATH
|
|
||||||
COPY . /app/.
|
|
||||||
RUN --mount=type=cache,id=LhbkHYjAGz0-/root/npm,target=/root/.npm npm ci
|
|
||||||
|
|
||||||
# build phase
|
|
||||||
COPY . /app/.
|
|
||||||
RUN --mount=type=cache,id=LhbkHYjAGz0-apps/logicsrc-web/next/cache,target=/app/apps/logicsrc-web/.next/cache --mount=type=cache,id=LhbkHYjAGz0-node_modules/cache,target=/app/node_modules/.cache npm run build
|
|
||||||
|
|
||||||
|
|
||||||
RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
|
|
||||||
|
|
||||||
|
|
||||||
# start
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
CMD ["npm run start"]
|
|
||||||
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
docker build /home/anthony/src/profullstack/logicsrc/.claude/worktrees/dev2-app.logicsrc.com-7qddif6s -f /home/anthony/src/profullstack/logicsrc/.claude/worktrees/dev2-app.logicsrc.com-7qddif6s/.nixpacks/Dockerfile -t 95f6a1db-fdd1-4530-b9d6-e188e6578627 --build-arg CI=true --build-arg NIXPACKS_METADATA=node --build-arg NIXPACKS_NODE_VERSION=22 --build-arg NODE_ENV=production --build-arg NPM_CONFIG_PRODUCTION=false
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
{ }:
|
|
||||||
|
|
||||||
let pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.tar.gz") { overlays = [ (import (builtins.fetchTarball "https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz")) ]; };
|
|
||||||
in with pkgs;
|
|
||||||
let
|
|
||||||
APPEND_LIBRARY_PATH = "${lib.makeLibraryPath [ gcc-unwrapped ] }";
|
|
||||||
myLibraries = writeText "libraries" ''
|
|
||||||
export LD_LIBRARY_PATH="${APPEND_LIBRARY_PATH}:$LD_LIBRARY_PATH"
|
|
||||||
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
buildEnv {
|
|
||||||
name = "ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env";
|
|
||||||
paths = [
|
|
||||||
(runCommand "ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env" { } ''
|
|
||||||
mkdir -p $out/etc/profile.d
|
|
||||||
cp ${myLibraries} $out/etc/profile.d/ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7-env.sh
|
|
||||||
'')
|
|
||||||
nodejs_22 npm-9_x
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue