mirror of
https://github.com/morten-olsen/mini-loader.git
synced 2026-02-08 01:36:26 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8e02d8da4 | ||
|
|
9a5b27f1be | ||
|
|
0760328854 |
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -82,6 +82,8 @@ jobs:
|
||||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
latest
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||
with:
|
||||
|
||||
@@ -22,9 +22,11 @@ Also see [anti-features and limitations](./docs/anti-features.md)
|
||||
Get up and running with mini loader in just a few steps:
|
||||
|
||||
1. **Install the CLI**: `npm install -g @morten-olsen/mini-loader-cli`
|
||||
2. **Deploy the Server**: `docker run -p 4500:4500 -n mini-loader ghcr.io/morten-olsen/mini-loader:main`.
|
||||
3. **Push Your First Load**: `mini-loader loads push script.mjs -r -i first`
|
||||
3. **See the logs**: `mini-loader logs ls -l first`
|
||||
2. **Deploy the Server**: `docker run -p 4500:4500 —-name mini-loader ghcr.io/morten-olsen/mini-loader`.
|
||||
3. **Get your access token**: `docker exec mini-loader mini-loader-server create-token`
|
||||
4. **Login**: `mini-loader auth login http://localhost:4500`
|
||||
5. **Push Your First Load**: `mini-loader loads push script.mjs -r -i first`
|
||||
6. **See the logs**: `mini-loader logs ls -l first`
|
||||
|
||||
For a detailed guide on getting started, please refer to the [Getting Started Tutorial](./docs/getting-started.md).
|
||||
|
||||
|
||||
@@ -5,5 +5,9 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/Dockerfile
|
||||
volumes:
|
||||
- data:/app/data
|
||||
ports:
|
||||
- 4500:4500
|
||||
volumes:
|
||||
data:
|
||||
|
||||
@@ -27,6 +27,7 @@ COPY --from=builder /app/out/full/ .
|
||||
RUN pnpm turbo run build --filter=@morten-olsen/mini-loader-server
|
||||
|
||||
FROM base AS runner
|
||||
RUN apk add --no-cache jq curl
|
||||
WORKDIR /app
|
||||
|
||||
# Don't run production as root
|
||||
@@ -38,5 +39,12 @@ RUN chmod +x /entrypoint.sh
|
||||
|
||||
COPY --from=installer /app .
|
||||
EXPOSE 4500
|
||||
VOLUME /app/data
|
||||
|
||||
HEALTHCHECK \
|
||||
--interval=10s \
|
||||
--start-period=10s \
|
||||
CMD curl -f http://localhost:4500/health || exit 1
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["mini-loader-server", "start"]
|
||||
@@ -8,7 +8,7 @@ This guide will help you quickly set up and run a mini loader server using Docke
|
||||
To begin, let's deploy the mini loader container. Run the following command in your terminal:
|
||||
|
||||
```bash
|
||||
docker run -p 4500:4500 -n mini-loader ghcr.io/morten-olsen/mini-loader:main
|
||||
docker run -p 4500:4500 -n mini-loader ghcr.io/morten-olsen/mini-loader:latest
|
||||
```
|
||||
|
||||
This command downloads the latest mini loader image and runs it, exposing port 4500.
|
||||
|
||||
Reference in New Issue
Block a user