Browse Source

fix : pull latest docker instead of 0.11.33.

pull/559/head
Naveen MR 3 years ago
parent
commit
b33f37d94f
  1. 8
      README.md
  2. 2
      docker-compose/letsencrypt/nc.sh
  3. 2
      docker-compose/mssql/docker-compose.yml
  4. 2
      docker-compose/mysql/docker-compose.yml
  5. 2
      docker-compose/pg/docker-compose.yml
  6. 2
      docker-compose/traefik/docker-compose.yml
  7. 2
      packages/nc-cli/src/lib/mgr/DockerMgr.ts
  8. 4
      packages/nc-cli/src/lib/mgr/NewMgr.ts
  9. 2
      packages/noco-book/content/en/index.md
  10. 10
      packages/noco-docs/content/en/getting-started/installation.md
  11. 6
      packages/noco-docs/content/en/getting-started/upgrading.md
  12. 2
      packages/noco-docs/content/en/setup-and-usages/dashboard.md

8
README.md

@ -44,7 +44,7 @@ Turns any MySQL, PostgreSQL, SQL Server, SQLite & MariaDB into a smart-spreadshe
### Using Docker ### Using Docker
```bash ```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/`. > 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 \ docker run -d -p 8080:8080 \
-e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \ -e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb:0.11.33 nocodb/nocodb:latest
``` ```
#### Example Postgres #### Example Postgres
@ -159,7 +159,7 @@ docker run -d -p 8080:8080 \
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_DB="pg://host:port?u=user&p=password&d=database" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb:0.11.33 nocodb/nocodb:latest
``` ```
#### Example SQL Server #### Example SQL Server
@ -167,7 +167,7 @@ docker run -d -p 8080:8080 \
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_DB="mssql://host:port?u=user&p=password&d=database" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb:0.11.33 nocodb/nocodb:latest
``` ```
## Docker Compose ## Docker Compose

2
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_HOST="$domain" \
-e LETSENCRYPT_EMAIL="$email" \ -e LETSENCRYPT_EMAIL="$email" \
-e VIRTUAL_PORT=8080 \ -e VIRTUAL_PORT=8080 \
--network=webproxy nocodb/nocodb:0.11.33 --network=webproxy nocodb/nocodb:latest

2
docker-compose/mssql/docker-compose.yml

@ -20,7 +20,7 @@ services:
depends_on: depends_on:
root_db: root_db:
condition: service_healthy condition: service_healthy
image: nocodb/nocodb:0.11.33 image: nocodb/nocodb:latest
ports: ports:
- "8080:8080" - "8080:8080"
- "8081:8081" - "8081:8081"

2
docker-compose/mysql/docker-compose.yml

@ -20,7 +20,7 @@ services:
depends_on: depends_on:
root_db: root_db:
condition: service_healthy condition: service_healthy
image: nocodb/nocodb:0.11.33 image: nocodb/nocodb:latest
ports: ports:
- "8080:8080" - "8080:8080"
- "8081:8081" - "8081:8081"

2
docker-compose/pg/docker-compose.yml

@ -19,7 +19,7 @@ services:
depends_on: depends_on:
root_db: root_db:
condition: service_healthy condition: service_healthy
image: nocodb/nocodb:0.11.33 image: nocodb/nocodb:latest
ports: ports:
- "8080:8080" - "8080:8080"
- "8081:8081" - "8081:8081"

2
docker-compose/traefik/docker-compose.yml

@ -67,7 +67,7 @@ services:
nocodb: nocodb:
container_name: nocodb container_name: nocodb
image: nocodb/nocodb:0.11.33 image: nocodb/nocodb:latest
restart: always restart: always
networks: networks:
- traefik_proxy - traefik_proxy

2
packages/nc-cli/src/lib/mgr/DockerMgr.ts

@ -26,7 +26,7 @@ class DockerMgr extends NewMgr {
} }
private static getDockerfileContent(args) { private static getDockerfileContent(args) {
return `FROM nocodb/nocodb:0.11.33 return `FROM nocodb/nocodb:latest
ENV PORT 8080 ENV PORT 8080
ENV NODE_ENV=dev ENV NODE_ENV=dev

4
packages/nc-cli/src/lib/mgr/NewMgr.ts

@ -256,14 +256,14 @@ class NewMgr {
const linuxHost = os.type() === 'Linux' ? '--net=host' : ''; const linuxHost = os.type() === 'Linux' ? '--net=host' : '';
if (os.type() === 'Windows_NT') { if (os.type() === 'Windows_NT') {
// tslint:disable-next-line:ban-comma-operator // 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', borderColor: 'green',
borderStyle: 'round', borderStyle: 'round',
margin: 1, margin: 1,
padding: 1 padding: 1
} as any)); } as any));
} else { } 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`);
} }
} }
} }

2
packages/noco-book/content/en/index.md

@ -49,7 +49,7 @@ link: https://codesandbox.io/embed/vigorous-firefly-80kq5?hidenavigation=1&theme
<code-block label="Docker" > <code-block label="Docker" >
```bash ```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
``` ```
</code-block> </code-block>

10
packages/noco-docs/content/en/getting-started/installation.md

@ -45,7 +45,7 @@ Simple installation - takes about three minutes!
<code-block label="Docker" > <code-block label="Docker" >
```bash ```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
``` ```
</code-block> </code-block>
@ -106,7 +106,7 @@ And connection params for this database can be specified in `NC_DB` environment
docker run -d -p 8080:8080 \ docker run -d -p 8080:8080 \
-e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \ -e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb:0.11.33 nocodb/nocodb:latest
``` ```
</code-block> </code-block>
@ -117,7 +117,7 @@ And connection params for this database can be specified in `NC_DB` environment
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_DB="pg://host:port?u=user&p=password&d=database" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb:0.11.33 nocodb/nocodb:latest
``` ```
</code-block> </code-block>
@ -128,7 +128,7 @@ And connection params for this database can be specified in `NC_DB` environment
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_DB="mssql://host:port?u=user&p=password&d=database" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \ -e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb:0.11.33 nocodb/nocodb:latest
``` ```
</code-block> </code-block>
@ -227,7 +227,7 @@ Here's the sample Task Definition
"networkMode": "awsvpc", "networkMode": "awsvpc",
"containerDefinitions": [{ "containerDefinitions": [{
"name": "<YOUR_CONTAINER_NAME>", "name": "<YOUR_CONTAINER_NAME>",
"image": "nocodb/nocodb:0.11.33", "image": "nocodb/nocodb:latest",
"essential": true, "essential": true,
"logConfiguration": { "logConfiguration": {
"logDriver": "awslogs", "logDriver": "awslogs",

6
packages/noco-docs/content/en/getting-started/upgrading.md

@ -29,7 +29,7 @@ docker rmi YOUR_IMAGE_ID
docker run -d -p 8080:8080 \ docker run -d -p 8080:8080 \
-e NC_DB="YOUR_NC_DB_URL" \ -e NC_DB="YOUR_NC_DB_URL" \
-e NC_AUTH_JWT_SECRET="YOUR_NC_AUTH_JWT_SECRET_IF_GIVEN" \ -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/). 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 heroku container:login
docker pull nocodb/nocodb:0.11.33 docker pull nocodb/nocodb:latest
docker tag nocodb/nocodb:0.11.33 registry.heroku.com/<Heroku App Name>/web docker tag nocodb/nocodb:latest registry.heroku.com/<Heroku App Name>/web
docker push registry.heroku.com/<Heroku App Name>/web docker push registry.heroku.com/<Heroku App Name>/web
heroku container:release -a <Heroku App Name> web heroku container:release -a <Heroku App Name> web
``` ```

2
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: 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 ## Initialize your first project

Loading…
Cancel
Save