@percher/core 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/forgejo.js +2 -2
- package/dist/commands/forgejo.js.map +1 -1
- package/dist/commands/logs.d.ts.map +1 -1
- package/dist/commands/logs.js +7 -2
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/publish-failure.d.ts.map +1 -1
- package/dist/commands/publish-failure.js +3 -0
- package/dist/commands/publish-failure.js.map +1 -1
- package/dist/commands/publish-inline.d.ts.map +1 -1
- package/dist/commands/publish-inline.js +2 -2
- package/dist/commands/publish-inline.js.map +1 -1
- package/dist/commands/publish.d.ts.map +1 -1
- package/dist/commands/publish.js +9 -3
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +4 -1
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/redeploy.js +1 -1
- package/dist/commands/redeploy.js.map +1 -1
- package/dist/commands/reproduce.js +1 -1
- package/dist/commands/reproduce.js.map +1 -1
- package/dist/commands/sleep.d.ts +18 -0
- package/dist/commands/sleep.d.ts.map +1 -0
- package/dist/commands/sleep.js +23 -0
- package/dist/commands/sleep.js.map +1 -0
- package/dist/error-classifier.d.ts +1 -1
- package/dist/error-classifier.d.ts.map +1 -1
- package/dist/error-classifier.js +38 -0
- package/dist/error-classifier.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/plans.d.ts +2 -0
- package/dist/plans.d.ts.map +1 -1
- package/dist/plans.js +13 -1
- package/dist/plans.js.map +1 -1
- package/dist/poll-deployment.js +1 -1
- package/dist/poll-deployment.js.map +1 -1
- package/dist/recovery.d.ts +52 -1
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +74 -4
- package/dist/recovery.js.map +1 -1
- package/dist/structured-error-codes.d.ts +1 -1
- package/dist/structured-error-codes.d.ts.map +1 -1
- package/dist/structured-error-codes.js +10 -0
- package/dist/structured-error-codes.js.map +1 -1
- package/dist/templates/ai-files/claude-md.d.ts.map +1 -1
- package/dist/templates/ai-files/claude-md.js +17 -1
- package/dist/templates/ai-files/claude-md.js.map +1 -1
- package/dist/templates/ai-files/cursor-percher-mdc.d.ts.map +1 -1
- package/dist/templates/ai-files/cursor-percher-mdc.js +16 -3
- package/dist/templates/ai-files/cursor-percher-mdc.js.map +1 -1
- package/dist/templates.js +3 -3
- package/dist/templates.js.map +1 -1
- package/package.json +4 -4
- package/templates/dotnet/Dockerfile +5 -3
- package/templates/dotnet/app.csproj +1 -1
- package/templates/go/Dockerfile +16 -6
- package/templates/java/Dockerfile +2 -0
- package/templates/laravel/Dockerfile +2 -0
- package/templates/phoenix/Dockerfile +2 -0
- package/templates/rails/Dockerfile +2 -0
- package/templates/rust/Dockerfile +8 -4
|
@@ -4,6 +4,8 @@ RUN apk add --no-cache build-base \
|
|
|
4
4
|
&& addgroup -S app && adduser -S app -G app \
|
|
5
5
|
&& mkdir -p /home/app/.mix \
|
|
6
6
|
&& chown -R app:app /home/app /app
|
|
7
|
+
# A fresh data volume takes this directory's ownership, so the app user can write it.
|
|
8
|
+
RUN mkdir -p /app/data && chown app:app /app/data
|
|
7
9
|
USER app
|
|
8
10
|
RUN mix local.hex --force && mix local.rebar --force
|
|
9
11
|
COPY --chown=app:app mix.exs ./
|
|
@@ -6,6 +6,8 @@ COPY --chown=app:app Gemfile ./
|
|
|
6
6
|
RUN bundle install --jobs 4 --retry 3
|
|
7
7
|
COPY --chown=app:app . .
|
|
8
8
|
RUN chown -R app:app /app /usr/local/bundle
|
|
9
|
+
# A fresh data volume takes this directory's ownership, so the app user can write it.
|
|
10
|
+
RUN mkdir -p /app/data && chown app:app /app/data
|
|
9
11
|
USER app
|
|
10
12
|
EXPOSE 3000
|
|
11
13
|
CMD ["bundle", "exec", "rackup", "-o", "0.0.0.0", "-p", "3000"]
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
FROM rust:1.
|
|
1
|
+
FROM rust:1-alpine3.24 AS build
|
|
2
2
|
RUN apk add --no-cache musl-dev
|
|
3
3
|
WORKDIR /src
|
|
4
4
|
COPY Cargo.toml Cargo.lock* ./
|
|
5
5
|
COPY src ./src
|
|
6
6
|
RUN cargo build --release --bin app
|
|
7
7
|
|
|
8
|
-
FROM alpine:3.
|
|
8
|
+
FROM alpine:3.24
|
|
9
9
|
# tini as PID 1 forwards SIGTERM to the app; without it the bare binary as PID 1
|
|
10
10
|
# ignores SIGTERM (Linux PID-1 special case) and the container is SIGKILLed on
|
|
11
11
|
# every stop/redeploy instead of shutting down cleanly.
|
|
12
12
|
RUN apk add --no-cache ca-certificates tini \
|
|
13
13
|
&& addgroup -S app && adduser -S app -G app
|
|
14
|
-
|
|
14
|
+
# The binary lives outside /app on purpose: Percher mounts the app's
|
|
15
|
+
# persistent data volume at /app/data, which cannot exist if /app is a file.
|
|
16
|
+
COPY --from=build --chown=app:app /src/target/release/app /usr/local/bin/app
|
|
17
|
+
# A fresh data volume takes this directory's ownership, so the app user can write it.
|
|
18
|
+
RUN mkdir -p /app/data && chown app:app /app/data
|
|
15
19
|
USER app
|
|
16
20
|
EXPOSE 8080
|
|
17
21
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
18
|
-
CMD ["/app"]
|
|
22
|
+
CMD ["/usr/local/bin/app"]
|