use less common port
Some checks failed
ci / build (push) Failing after 26s
ci / Tests & Checks (push) Failing after 15s

This commit is contained in:
CJ_Clippy 2025-02-15 04:52:27 -08:00
parent b52fe97da3
commit e38d780092
6 changed files with 10 additions and 11 deletions

View File

@ -46,11 +46,12 @@ jobs:
tracker-helper:
image: gitea.futureporn.net/futureporn/tracker-helper:latest
ports:
- 3000:3000
- 5063:5063
env:
WL_FIFO_PATH: /etc/opentracker/adder.fifo
WL_FILE_PATH: /etc/opentracker/whitelist
WL_CREDENTIALS: ${{ secrets.WL_CREDENTIALS }}
WL_PORT: 5063
volumes:
- /tmp/futureporn/opentracker:/etc/opentracker
@ -74,10 +75,10 @@ jobs:
# run: apt-get update && apt-get install -y iputils-ping postgresql
- name: tracker-helper service check (localhost)
run: curl http://localhost:3000/health
run: curl http://localhost:5063/health
- name: tracker-helper service check
run: curl http://tracker-helper:3000/health
run: curl http://tracker-helper:5063/health
# - name: Check opentracker pingability
# run: ping -c 3 opentracker

View File

@ -28,9 +28,6 @@
"pip install -r requirements.txt"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
],
"tunnel": "dotenvx run -f ./.kamal/secrets.development -- chisel client bright.fp.sbtp.xyz:9090 R:4000",
"backup": "docker exec -t postgres_db pg_dumpall -c -U postgres > ./backups/dev_`date +%Y-%m-%d_%H_%M_%S`.sql",
"act": "act -W ./.gitea/workflows --secret-file .kamal/secrets.development",
@ -38,7 +35,8 @@
"bright:compile:watch2": "cd ./apps/bright && pnpx chokidar-cli \"**/*\" -i \"deps/**\" -i \"_build/**\" -c \"mix compile --warnings-as-errors\"",
"bright:dev": "cd ./apps/bright && dotenvx run -f ../../.kamal/secrets.development -e MIX_ENV=dev -- mix phx.server",
"bright:test:unit:watch": "cd ./apps/bright && pnpx chokidar-cli '**/*' -i \"deps/**\" -i '_build/**' -c 'mix test --only=unit'",
"bright:act": "cd ./apps/bright && act --env MIX_ENV=test -W ./.gitea/workflows/tests.yaml --secret-file .kamal/secrets.development"
"bright:act": "cd ./apps/bright && act --env MIX_ENV=test -W ./.gitea/workflows/tests.yaml --secret-file .kamal/secrets.development",
"test": "act -W ./.gitea/workflows/tests.yaml --secret-file .kamal/secrets.development && beep || boop"
}
}
}

View File

@ -35,5 +35,5 @@ COPY --from=prerelease /usr/src/app/package.json .
# run the app
USER bun
EXPOSE 3000/tcp
EXPOSE 5063/tcp
ENTRYPOINT [ "bun", "run", "index.ts" ]

View File

@ -27,4 +27,4 @@ tracker-helper unit & integration tests are run during the docker build. That st
When validating the container before pushing to production, it can be run as follows
dotenvx run -f ../../.kamal/secrets.production -- docker run -it --init --rm -p 3000:3000 -e WL_CREDENTIALS -e WL_FILE_PATH -e WL_FIFO_PATH fp/tracker-helper
dotenvx run -f ../../.kamal/secrets.production -- docker run -it --init --rm -p 5063:5063 -e WL_CREDENTIALS -e WL_FILE_PATH -e WL_FIFO_PATH fp/tracker-helper

View File

@ -1,4 +1,4 @@
import app from './app.ts'
const port = process.env.PORT || 3000
const port = process.env.WL_PORT || 5063
app.listen(port)

View File

@ -17,7 +17,7 @@
},
"scripts": {
"docker.build": "dotenvx run -f ../../.kamal/secrets.testing -- docker build --secret id=WL_CREDENTIALS -t gitea.futureporn.net/futureporn/tracker-helper:latest .",
"docker.run": "dotenvx run -f ../../.kamal/secrets.development -- docker run -e WL_CREDENTIALS -p 3000:3000 -t gitea.futureporn.net/futureporn/tracker-helper:latest",
"docker.run": "dotenvx run -f ../../.kamal/secrets.development -- docker run -e WL_CREDENTIALS -p 5063:5063 -t gitea.futureporn.net/futureporn/tracker-helper:latest",
"docker.push": "docker push gitea.futureporn.net/futureporn/tracker-helper:latest"
}
}