You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
emulsion is a bridge between [Telegram][telegram] and [XMPP][xmpp].
5
5
6
+
Installation
7
+
------------
8
+
There are two supported Emulsion distributions: as a framework-dependent .NET application, or as a Docker image.
9
+
10
+
### .NET Application
11
+
To run Emulsion as [a framework-dependent .NET application][docs.dotnet.framework-dependent], you'll need to [install .NET runtime][dotnet.install] version 8.0 or later.
12
+
13
+
Then, download the required version in the [Releases][releases] section.
14
+
15
+
After that, configure the application, and start it using the following shell command:
16
+
17
+
```console
18
+
$ dotnet Emulsion.dll
19
+
```
20
+
21
+
### Docker
22
+
It is recommended to use Docker to deploy this application. To install the application from Docker, you may use the following Bash script:
23
+
24
+
```bash
25
+
NAME=emulsion
26
+
EMULSION_VERSION=latest
27
+
CONFIG=/opt/codingteam/emulsion/emulsion.json
28
+
DATA=/opt/codingteam/emulsion/data # optional
29
+
WEB_PORT=5051 # optional
30
+
docker pull codingteam/emulsion:$EMULSION_VERSION
31
+
docker rm -f $NAME
32
+
docker run --name $NAME \
33
+
-v $CONFIG:/app/emulsion.json:ro \
34
+
-v $DATA:/data \
35
+
-p 127.0.0.1:$WEB_PORT:5000 \
36
+
--restart unless-stopped \
37
+
-d \
38
+
codingteam/emulsion:$EMULSION_VERSION
39
+
```
40
+
41
+
where
42
+
43
+
-`$NAME` is the container name
44
+
-`$EMULSION_VERSION` is the image version you want to deploy, or `latest` for
45
+
the latest available one
46
+
-`$CONFIG` is the **absolute** path to the configuration file
47
+
-`$DATA` is the absolute path to the data directory (used by the configuration)
48
+
-`$WEB_PORT` is the port on the host system which will be used to access the content proxy
49
+
6
50
Build
7
51
-----
8
52
@@ -104,37 +148,8 @@ Requires [.NET Runtime][dotnet] version 8.0 or newer.
104
148
$ dotnet run --project ./Emulsion [optional-path-to-json-config-file]
105
149
```
106
150
107
-
Docker
108
-
------
109
-
It is recommended to use Docker to deploy this project. To install the
110
-
application from Docker, you may use the following Bash script:
111
-
112
-
```bash
113
-
NAME=emulsion
114
-
EMULSION_VERSION=latest
115
-
CONFIG=/opt/codingteam/emulsion/emulsion.json
116
-
DATA=/opt/codingteam/emulsion/data # optional
117
-
WEB_PORT=5051 # optional
118
-
docker pull codingteam/emulsion:$EMULSION_VERSION
119
-
docker rm -f $NAME
120
-
docker run --name $NAME \
121
-
-v $CONFIG:/app/emulsion.json:ro \
122
-
-v $DATA:/data \
123
-
-p 127.0.0.1:$WEB_PORT:5000 \
124
-
--restart unless-stopped \
125
-
-d \
126
-
codingteam/emulsion:$EMULSION_VERSION
127
-
```
128
-
129
-
where
130
-
131
-
-`$NAME` is the container name
132
-
-`$EMULSION_VERSION` is the image version you want to deploy, or `latest` for
133
-
the latest available one
134
-
-`$CONFIG` is the **absolute** path to the configuration file
135
-
-`$DATA` is the absolute path to the data directory (used by the configuration)
136
-
-`$WEB_PORT` is the port on the host system which will be used to access the content proxy
137
-
151
+
Docker Publish
152
+
--------------
138
153
To build and push the container to Docker Hub, use the following commands:
0 commit comments