Skip to content

Commit

Permalink
fix feeder docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Dec 18, 2023
1 parent 99e6cb8 commit ed92088
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ jobs:
- 'state=\$(curl -XGET -m 2 --silent -f -H \"Accept: application/json\" http://localhost:3000/health | jq -r \".status | ascii_downcase\"); if [ ! \"\$state\" == \"ready\" ]; then exit 1; fi'
timeoutSeconds: 3
periodSeconds: 10
" > values.yaml
helm repo add bcgov http://bcgov.github.io/helm-charts
Expand Down Expand Up @@ -361,6 +361,7 @@ jobs:
if: github.ref == 'refs/heads/test'
run: |
oc rollout restart deployment/bcgov-aps-portal-generic-api -n ${{ secrets.OPENSHIFT_GOLD_TEST_NAMESPACE }}
oc rollout restart deployment/bcgov-aps-portal-batch-generic-api -n ${{ secrets.OPENSHIFT_GOLD_TEST_NAMESPACE }}
- name: 'Create Pull Request for Release'
if: github.ref == 'refs/heads/test'
Expand Down
6 changes: 3 additions & 3 deletions feeds/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:lts-alpine3.17
#FROM node:lts-alpine3.17
FROM node:16.14.2-alpine3.15

RUN apk add curl jq

Expand All @@ -18,5 +19,4 @@ COPY --chown=node . ./

ENV HOME=/home/node

ENTRYPOINT [ "npm", "run" ]
CMD [ "start"]
CMD [ "node", "index.js" ]
6 changes: 3 additions & 3 deletions feeds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ if (process.env.SCHEDULE == 'true') {
runTimedJob('prometheus', 120, { numDays: 1 });
runTimedJob('prometheus', 24 * 60 + 5, { numDays: 5 });
runTimedJob('kong', 1 * 60, {});
runTimedJob('ckan', (24 * 60) + 30, {});
runTimedJob('ckan', 24 * 60 + 30, {});
runTimedJob('ckan_org', 24 * 60, {});
}

const server = app.listen(port, () => {
app.listen(port, () => {
logger.info(`Listening at http://localhost:${port}`);
});

process.on('SIGINT', () => process.kill(process.pid, 'SIGTERM'));
process.on('SIGINT', () => process.exit(0));

0 comments on commit ed92088

Please sign in to comment.