From b33f37d94fb0b95833301f6e7c3d56bb7e413e9c Mon Sep 17 00:00:00 2001 From: Naveen MR Date: Wed, 22 Sep 2021 23:25:00 +0100 Subject: [PATCH] fix : pull latest docker instead of 0.11.33. --- README.md | 8 ++++---- docker-compose/letsencrypt/nc.sh | 2 +- docker-compose/mssql/docker-compose.yml | 2 +- docker-compose/mysql/docker-compose.yml | 2 +- docker-compose/pg/docker-compose.yml | 2 +- docker-compose/traefik/docker-compose.yml | 2 +- packages/nc-cli/src/lib/mgr/DockerMgr.ts | 2 +- packages/nc-cli/src/lib/mgr/NewMgr.ts | 4 ++-- packages/noco-book/content/en/index.md | 2 +- .../content/en/getting-started/installation.md | 10 +++++----- .../noco-docs/content/en/getting-started/upgrading.md | 6 +++--- .../noco-docs/content/en/setup-and-usages/dashboard.md | 2 +- 12 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 88b0bfc649..021b71916e 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart-spreadshe ### Using Docker ```bash -docker run -d --name nocodb -p 8080:8080 nocodb/nocodb:0.11.33 +docker run -d --name nocodb -p 8080:8080 nocodb/nocodb:latest ``` > To persist data you can mount volume at `/usr/app/data/`. @@ -151,7 +151,7 @@ And connection params for this database can be specified in `NC_DB` environment docker run -d -p 8080:8080 \ -e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:0.11.33 + nocodb/nocodb:latest ``` #### Example Postgres @@ -159,7 +159,7 @@ docker run -d -p 8080:8080 \ docker run -d -p 8080:8080 \ -e NC_DB="pg://host:port?u=user&p=password&d=database" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:0.11.33 + nocodb/nocodb:latest ``` #### Example SQL Server @@ -167,7 +167,7 @@ docker run -d -p 8080:8080 \ docker run -d -p 8080:8080 \ -e NC_DB="mssql://host:port?u=user&p=password&d=database" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:0.11.33 + nocodb/nocodb:latest ``` ## Docker Compose diff --git a/docker-compose/letsencrypt/nc.sh b/docker-compose/letsencrypt/nc.sh index 1766b87cd7..fc2218f7d2 100644 --- a/docker-compose/letsencrypt/nc.sh +++ b/docker-compose/letsencrypt/nc.sh @@ -50,7 +50,7 @@ docker run -p 8080:8080 -p 8081:8081 -p 8082:8082 -d --name xc-instant \ -e LETSENCRYPT_HOST="$domain" \ -e LETSENCRYPT_EMAIL="$email" \ -e VIRTUAL_PORT=8080 \ ---network=webproxy nocodb/nocodb:0.11.33 +--network=webproxy nocodb/nocodb:latest diff --git a/docker-compose/mssql/docker-compose.yml b/docker-compose/mssql/docker-compose.yml index 3b2dfe2c41..5262f20bea 100644 --- a/docker-compose/mssql/docker-compose.yml +++ b/docker-compose/mssql/docker-compose.yml @@ -20,7 +20,7 @@ services: depends_on: root_db: condition: service_healthy - image: nocodb/nocodb:0.11.33 + image: nocodb/nocodb:latest ports: - "8080:8080" - "8081:8081" diff --git a/docker-compose/mysql/docker-compose.yml b/docker-compose/mysql/docker-compose.yml index e0d8370509..cc03c27297 100644 --- a/docker-compose/mysql/docker-compose.yml +++ b/docker-compose/mysql/docker-compose.yml @@ -20,7 +20,7 @@ services: depends_on: root_db: condition: service_healthy - image: nocodb/nocodb:0.11.33 + image: nocodb/nocodb:latest ports: - "8080:8080" - "8081:8081" diff --git a/docker-compose/pg/docker-compose.yml b/docker-compose/pg/docker-compose.yml index 23b939b15f..b4d9004213 100644 --- a/docker-compose/pg/docker-compose.yml +++ b/docker-compose/pg/docker-compose.yml @@ -19,7 +19,7 @@ services: depends_on: root_db: condition: service_healthy - image: nocodb/nocodb:0.11.33 + image: nocodb/nocodb:latest ports: - "8080:8080" - "8081:8081" diff --git a/docker-compose/traefik/docker-compose.yml b/docker-compose/traefik/docker-compose.yml index 8e2bba9b5d..b764da6588 100644 --- a/docker-compose/traefik/docker-compose.yml +++ b/docker-compose/traefik/docker-compose.yml @@ -67,7 +67,7 @@ services: nocodb: container_name: nocodb - image: nocodb/nocodb:0.11.33 + image: nocodb/nocodb:latest restart: always networks: - traefik_proxy diff --git a/packages/nc-cli/src/lib/mgr/DockerMgr.ts b/packages/nc-cli/src/lib/mgr/DockerMgr.ts index 90078658a1..0941c6e92c 100644 --- a/packages/nc-cli/src/lib/mgr/DockerMgr.ts +++ b/packages/nc-cli/src/lib/mgr/DockerMgr.ts @@ -26,7 +26,7 @@ class DockerMgr extends NewMgr { } private static getDockerfileContent(args) { - return `FROM nocodb/nocodb:0.11.33 + return `FROM nocodb/nocodb:latest ENV PORT 8080 ENV NODE_ENV=dev diff --git a/packages/nc-cli/src/lib/mgr/NewMgr.ts b/packages/nc-cli/src/lib/mgr/NewMgr.ts index 1d3237882a..db8216ce64 100644 --- a/packages/nc-cli/src/lib/mgr/NewMgr.ts +++ b/packages/nc-cli/src/lib/mgr/NewMgr.ts @@ -256,14 +256,14 @@ class NewMgr { const linuxHost = os.type() === 'Linux' ? '--net=host' : ''; if (os.type() === 'Windows_NT') { // tslint:disable-next-line:ban-comma-operator - console.log(boxen(`# Please run the following docker commands\n\n${(`docker run -p 8080:8080 ${linuxHost} -d ${env} nocodb/nocodb:0.11.33`).green.bold}\n`, { + console.log(boxen(`# Please run the following docker commands\n\n${(`docker run -p 8080:8080 ${linuxHost} -d ${env} nocodb/nocodb:latest`).green.bold}\n`, { borderColor: 'green', borderStyle: 'round', margin: 1, padding: 1 } as any)); } else { - await Util.runCmd(`docker run -p 8080:8080 ${linuxHost} -d ${env} nocodb/nocodb:0.11.33`); + await Util.runCmd(`docker run -p 8080:8080 ${linuxHost} -d ${env} nocodb/nocodb:latest`); } } } diff --git a/packages/noco-book/content/en/index.md b/packages/noco-book/content/en/index.md index 826cf97c01..6a0e1e1d69 100644 --- a/packages/noco-book/content/en/index.md +++ b/packages/noco-book/content/en/index.md @@ -49,7 +49,7 @@ link: https://codesandbox.io/embed/vigorous-firefly-80kq5?hidenavigation=1&theme ```bash - docker run -d --name nocodb -p 8080:8080 nocodb/nocodb:0.11.33 + docker run -d --name nocodb -p 8080:8080 nocodb/nocodb:latest ``` diff --git a/packages/noco-docs/content/en/getting-started/installation.md b/packages/noco-docs/content/en/getting-started/installation.md index fdd9f9cdb0..c18c25bcab 100644 --- a/packages/noco-docs/content/en/getting-started/installation.md +++ b/packages/noco-docs/content/en/getting-started/installation.md @@ -45,7 +45,7 @@ Simple installation - takes about three minutes! ```bash - docker run -d --name nocodb -p 8080:8080 nocodb/nocodb:0.11.33 + docker run -d --name nocodb -p 8080:8080 nocodb/nocodb:latest ``` @@ -106,7 +106,7 @@ And connection params for this database can be specified in `NC_DB` environment docker run -d -p 8080:8080 \ -e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:0.11.33 + nocodb/nocodb:latest ``` @@ -117,7 +117,7 @@ And connection params for this database can be specified in `NC_DB` environment docker run -d -p 8080:8080 \ -e NC_DB="pg://host:port?u=user&p=password&d=database" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:0.11.33 + nocodb/nocodb:latest ``` @@ -128,7 +128,7 @@ And connection params for this database can be specified in `NC_DB` environment docker run -d -p 8080:8080 \ -e NC_DB="mssql://host:port?u=user&p=password&d=database" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ - nocodb/nocodb:0.11.33 + nocodb/nocodb:latest ``` @@ -227,7 +227,7 @@ Here's the sample Task Definition "networkMode": "awsvpc", "containerDefinitions": [{ "name": "", - "image": "nocodb/nocodb:0.11.33", + "image": "nocodb/nocodb:latest", "essential": true, "logConfiguration": { "logDriver": "awslogs", diff --git a/packages/noco-docs/content/en/getting-started/upgrading.md b/packages/noco-docs/content/en/getting-started/upgrading.md index 011da27123..2276652590 100644 --- a/packages/noco-docs/content/en/getting-started/upgrading.md +++ b/packages/noco-docs/content/en/getting-started/upgrading.md @@ -29,7 +29,7 @@ docker rmi YOUR_IMAGE_ID docker run -d -p 8080:8080 \ -e NC_DB="YOUR_NC_DB_URL" \ -e NC_AUTH_JWT_SECRET="YOUR_NC_AUTH_JWT_SECRET_IF_GIVEN" \ - nocodb/nocodb:0.11.33 + nocodb/nocodb:latest ``` Updating nocodb docker container is similar to updating [any other docker container](https://www.whitesourcesoftware.com/free-developer-tools/blog/update-docker-images/). @@ -61,8 +61,8 @@ Use Heroku CLI login ``` heroku container:login -docker pull nocodb/nocodb:0.11.33 -docker tag nocodb/nocodb:0.11.33 registry.heroku.com//web +docker pull nocodb/nocodb:latest +docker tag nocodb/nocodb:latest registry.heroku.com//web docker push registry.heroku.com//web heroku container:release -a web ``` diff --git a/packages/noco-docs/content/en/setup-and-usages/dashboard.md b/packages/noco-docs/content/en/setup-and-usages/dashboard.md index 16fd0a9147..102dcf6686 100644 --- a/packages/noco-docs/content/en/setup-and-usages/dashboard.md +++ b/packages/noco-docs/content/en/setup-and-usages/dashboard.md @@ -29,7 +29,7 @@ If you are using Docker, it is recommended to mount ``/usr/app/data/`` for persi Example: ``` -docker run -d -p 8080:8080 --name foo -v /local/path:/usr/app/data/ nocodb/nocodb:0.11.33 +docker run -d -p 8080:8080 --name foo -v /local/path:/usr/app/data/ nocodb/nocodb:latest ``` ## Initialize your first project