indraq_cli 2.0.0 → 2.0.1

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.
@@ -0,0 +1,18 @@
1
+ node_modules
2
+ npm-debug.log*
3
+ yarn-debug.log*
4
+ yarn-error.log*
5
+ pnpm-debug.log*
6
+ *.log
7
+ .git
8
+ .gitignore
9
+ .indraq
10
+ dist
11
+ build
12
+ .next
13
+ coverage
14
+ .cache
15
+ .vite
16
+ .turbo
17
+ .DS_Store
18
+ Thumbs.db
package/cloud-api/.env CHANGED
@@ -4,3 +4,11 @@ JWT_SECRET=8f3c2a9d4e6b7f00112233445566778899aabbccddeeff001122334455667788
4
4
  MASTER_KEY=8f3c2a9d4e6b7f00112233445566778899aabbccddeeff001122334455667788
5
5
  BOOTSTRAP_ADMIN_EMAIL=harkaran@indraq.com
6
6
  BOOTSTRAP_ADMIN_PASSWORD=Saini@harkaran-1
7
+
8
+ # Password-reset email (required for `indraq password reset`)
9
+ SMTP_HOST=smtp.gmail.com
10
+ SMTP_PORT=587
11
+ SMTP_SECURE=false
12
+ SMTP_USER=info@indraq.com
13
+ SMTP_PASS=wvmvbrwarpgraepy
14
+ SMTP_FROM=IndraQ <info@indraq.com>
@@ -0,0 +1,19 @@
1
+ FROM node:22-alpine AS build
2
+ WORKDIR /myapp
3
+ # Copy the complete project context. .dockerignore controls all exclusions.
4
+ COPY . .
5
+ RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
6
+ RUN npm run build
7
+ RUN npm prune --omit=dev
8
+
9
+ FROM node:22-alpine AS runtime
10
+ WORKDIR /myapp
11
+ RUN apk add --no-cache curl
12
+ ENV NODE_ENV=production PORT=4010
13
+ # Copy the complete filtered project from the build stage, including generated
14
+ # build output and production node_modules. No project filenames are guessed.
15
+ COPY --from=build --chown=node:node /myapp ./
16
+ USER node
17
+ EXPOSE 4010
18
+ HEALTHCHECK --interval=30s --timeout=3s CMD curl -fsS http://127.0.0.1:4010/health >/dev/null || exit 1
19
+ CMD ["npm", "start"]
@@ -8,7 +8,7 @@ export interface CloudConfig {
8
8
  * Users do not configure this URL. A fresh `npm install -g indraq_cli`
9
9
  * can immediately run `indraq login`.
10
10
  */
11
- export declare const OFFICIAL_CLOUD_API_URL = "https://api.indraq.com";
11
+ export declare const OFFICIAL_CLOUD_API_URL = "https://cli.indraq.com";
12
12
  /**
13
13
  * The API URL is intentionally authoritative and built into the CLI.
14
14
  * Existing cloud.json files may contain an older apiUrl field; it is ignored
@@ -10,7 +10,7 @@ const node_path_1 = require("node:path");
10
10
  * Users do not configure this URL. A fresh `npm install -g indraq_cli`
11
11
  * can immediately run `indraq login`.
12
12
  */
13
- exports.OFFICIAL_CLOUD_API_URL = 'https://api.indraq.com';
13
+ exports.OFFICIAL_CLOUD_API_URL = 'https://cli.indraq.com';
14
14
  const path = (0, node_path_1.join)((0, node_os_1.homedir)(), '.indraq', 'cloud.json');
15
15
  const readStoredToken = () => {
16
16
  if (!(0, node_fs_1.existsSync)(path))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indraq_cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "IndraQ cloud-first CLI for project lifecycle, organization access, Route53/NPM/Jenkins/AWS orchestration, Docker and deployments",
5
5
  "main": "dist/index.js",
6
6
  "bin": {