Skip to content

Commit a744bf5

Browse files
authored
Merge pull request #870 from rocket-admin/backend_rework_agent_dockerfile
Updated rocketadmin-agent Readme.md
2 parents e9fcb7c + ac79399 commit a744bf5

File tree

2 files changed

+45
-14
lines changed

2 files changed

+45
-14
lines changed

rocketadmin-agent/.config.env

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Unique connection token, what you received, when you created connection on the "Autoadmin" main page
2+
CONNECTION_TOKEN=
3+
# Type of your database: oracledb, mysql, postgres, mssql;
4+
CONNECTION_TYPE=
5+
# Host, where your database is located
6+
CONNECTION_HOST=
7+
# Server port, where your database is located
8+
CONNECTION_PORT=
9+
# Your database username
10+
CONNECTION_USERNAME=
11+
# Your database password
12+
CONNECTION_PASSWORD=
13+
# Your database name
14+
CONNECTION_DATABASE=
15+
# Your database schema, if exists
16+
CONNECTION_SCHEMA=
17+
# Your database SID (it's instance id for oracle database)
18+
CONNECTION_SID=
19+
# SSL option. 1 - if you want to use ssl connection to your database, 0 - if you don't
20+
CONNECTION_SSL=0
21+
# SSL sertificate. It's required if you want use SSL connection to your database
22+
# .env files have some problems with multi-line values
23+
# (you need to replace line breaks with special characters \n and quote a line)
24+
# You can also write the key to a file /storage/ssl-cert.txt and leave this field blank. This is an easier way.
25+
CONNECTION_SSL_SERTIFICATE=
26+
# Writing logs to a text file (/storage/stored-logs/logs.txt. 1 - if you want to save logs in text file, 0 - if you don't
27+
LOGS_TO_TEXT_FILE=0
28+
#Azure ecnryption option. If your database located in Microsoft Azure cloud, and requires encryption type 1 or 0 - if it doesn't'
29+
CONNECTION_AZURE_ENCRYPTION=0

rocketadmin-agent/README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
1-
# Autoadmin-agent
1+
# Rocketadmin-agent
22

3-
There are two options for installing Autoadmin-agent: using Docker Desktop (for MacOS and Windows) or using Docker Engine (for Linux).
3+
There are two options for installing Rocketadmin-agent: using Docker Desktop (for MacOS and Windows) or using Docker Engine (for Linux).
44

5-
6-
## Installing autoadmin using docker
5+
## Installing rocketadmin using docker
76

87
Open Terminal app and run following commands:
98

109
```bash
1110

12-
docker pull autoadmin/agent
13-
docker run -e CONNECTION_TOKEN=connection_token -e CONNECTION_TYPE=mysql -e CONNECTION_USERNAME=your_username \
14-
-e CONNECTION_PASSWORD=your_password -e CONNECTION_HOST=example.com autoadmin/agent
11+
docker pull rocketadmin/rocketadmin-agent:latest
12+
docker run -it rocketadmin/rocketadmin-agent:latest
13+
1514
```
1615

16+
Running these commands will start the application in interactive mode, displaying a command line dialog where you can enter the necessary connection parameters.
17+
1718
## Install via Docker Compose
1819

1920
First step is installing [Docker Engine](https://docker.com).
2021
On Linux, please install [Docker Compose](https://docs.docker.com/compose/install/) as well.
22+
2123
> Note: Docker Desktop on Windows and MacOS already include Docker Compose.
2224
23-
Second step – create **docker-compose.yml** file.
24-
Copy and paste configuration from [(source file)](https://github.com/Autoadmin-org/autoadmin-agent/blob/master/docker-compose.yml) or download this file.
25+
Second step – create **docker-compose.yml** file.
26+
Copy and paste configuration from [(source file)](https://github.com/rocket-admin/rocketadmin/tree/main/rocketadmin-agent/docker-compose.yml) or download this file.
2527

26-
Third step – create **.config.env** file in the same directory.
27-
Copy and paste the contents of [(source file)](https://github.com/Autoadmin-org/autoadmin-agent/blob/master/.config.env) or download this file.
28+
Third step – create **.config.env** file in the same directory.
29+
Copy and paste the contents of [(source file)](https://github.com/rocket-admin/rocketadmin/tree/main/rocketadmin-agent/.config.env) or download this file.
2830

2931
Fourth step – open **.config.env** file and specify all required credentials.
3032

31-
3233
Open Terminal app and run:
3334

3435
```sh
35-
docker-compose up --build
36+
docker compose up --build
3637
```
37-
After sucessfull execution, new connection will appear in Autoadmin Connections List.
38+
39+
After sucessfull execution, new connection will appear in Rocketadmin Connections List.

0 commit comments

Comments
 (0)