Compare commits

...

10 Commits

Author SHA1 Message Date
teddys48
56cd2dde79 update 2026-02-12 11:17:11 +07:00
teddys48
de7fc52b67 update 2025-10-20 14:03:32 +07:00
teddys48
19816cdad1 update 2025-10-10 15:11:58 +07:00
teddys48
5037b3ea03 update 2025-10-09 09:42:12 +07:00
teddys48
08c8783d45 update 2025-10-08 16:59:38 +07:00
teddys48
c23b0f211b update 2025-10-08 16:48:35 +07:00
teddys48
4921d765d5 update 2025-10-08 16:43:21 +07:00
teddys48
69fd98e4fb update 2025-10-08 16:36:07 +07:00
teddys48
b9522aa783 update 2025-10-08 16:32:24 +07:00
teddys48
cf5676a674 update 2025-10-08 16:24:19 +07:00
3 changed files with 12 additions and 26 deletions

View File

@@ -1,5 +1,9 @@
# Gunakan Node.js 22 sebagai base image # Gunakan Node.js 22 sebagai base image
FROM node:22-alpine FROM node:22-alpine
ENV TZ="Asia/Jakarta"
RUN apk add --no-cache curl
RUN apk add --no-cache grep
# Atur working directory # Atur working directory
WORKDIR /app/scheduler-app WORKDIR /app/scheduler-app

View File

@@ -1,8 +1,6 @@
version: '3.8'
services: services:
app: app:
image: 36.66.3.44:7007/$PROJECT_NAME:$CI_PIPELINE_ID image: localhost:9999/$PROJECT_NAME:$CI_PIPELINE_ID
deploy: deploy:
replicas: 1 replicas: 1
restart_policy: restart_policy:
@@ -12,3 +10,5 @@ services:
cpus: "0.01" cpus: "0.01"
memory: "50m" memory: "50m"
restart: always restart: always
volumes:
- /home/script:/home/script

View File

@@ -43,24 +43,6 @@ cron.schedule(
} }
); );
cron.schedule("* * * * *", async () => {
exec(
'bash /home/script/script.sh',
(error, stdout, stderr) => {
if (error) {
console.error(`Gagal menjalankan script: ${error.message}`);
return;
}
if (stderr) {
console.error(`Stderr: ${stderr}`);
return;
}
console.log(`Output: ${stdout}`);
}
});
app.use((req, res) => { app.use((req, res) => {
res.json("What are you looking for?!"); res.json("What are you looking for?!");
}); });