File tree 9 files changed +24
-8
lines changed
9 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 25
25
- name : Install dependencies
26
26
run : |
27
27
cd bot/
28
+ export $(grep -v '^#' .env | xargs)
28
29
pip install --upgrade pip
29
- pip install flake8 pytest rasa==3.6.12
30
+ pip install flake8 pytest rasa==$RASA_VERSION
30
31
if [ -f requirements.txt ]; then make install; fi
31
32
- name : Lint with flake8
32
33
run : |
Original file line number Diff line number Diff line change @@ -162,7 +162,6 @@ celerybeat-schedule.*
162
162
* .sage.py
163
163
164
164
# Environments
165
- .env
166
165
.venv
167
166
venv /
168
167
ENV /
Original file line number Diff line number Diff line change
1
+ include bot/.env
2
+ export $(shell sed 's/=.*//' bot/.env)
3
+
1
4
current_dir := $(shell pwd)
2
5
user := $(shell whoami)
3
6
23
26
-f
24
27
25
28
build :
29
+ export $(grep -v '^#' env/bot.env | xargs )
26
30
docker compose build \
27
31
--no-cache bot
28
32
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ MONGO_HOST=mongo
2
2
MONGO_PORT = 27017
3
3
MONGO_USERNAME =
4
4
MONGO_PASSWORD =
5
+ RASA_VERSION = 3.6.13
6
+ RASA_SDK_VERSION = 3.6.2
Original file line number Diff line number Diff line change 1
1
.PHONY : all clean actions
2
2
3
+ include .env
4
+ export $(shell sed 's/=.*//' .env)
5
+
3
6
# # FLAGS:
4
7
LOG_LEVEL = -vv
5
8
RASA_ENDPOINTS = --endpoints
Original file line number Diff line number Diff line change 1
- rasa == 3.6.12
1
+ rasa ==${RASA_VERSION}
2
+ rasa-model-report == 1.5.0
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ services:
7
7
build :
8
8
context : .
9
9
dockerfile : ./docker/bot.Dockerfile
10
+ args :
11
+ RASA_VERSION : ${RASA_VERSION}
10
12
container_name : bot
11
13
env_file :
12
- - ./env/ bot.env
14
+ - ./bot/ .env
13
15
volumes :
14
16
- ./bot/:/bot/
15
17
ports :
@@ -26,7 +28,7 @@ services:
26
28
image : mongo:6.0
27
29
restart : unless-stopped
28
30
env_file :
29
- - env /bot.env
31
+ - . /bot/ .env
30
32
ports :
31
33
- 27017:27017
32
34
networks :
@@ -40,9 +42,11 @@ services:
40
42
build :
41
43
context : .
42
44
dockerfile : ./docker/actions.Dockerfile
45
+ args :
46
+ RASA_SDK_VERSION : ${RASA_SDK_VERSION}
43
47
container_name : actions
44
48
env_file :
45
- - ./env/ bot.env
49
+ - ./bot/ .env
46
50
ports :
47
51
- 5055:5055
48
52
volumes :
Original file line number Diff line number Diff line change 1
- FROM rasa/rasa-sdk:3.6.2
1
+ ARG RASA_SDK_VERSION
2
+ FROM rasa/rasa-sdk:${RASA_SDK_VERSION}
2
3
3
4
WORKDIR /bot
4
5
COPY ./bot /bot
Original file line number Diff line number Diff line change 1
- FROM rasa/rasa:3.6.12-full
1
+ ARG RASA_VERSION
2
+ FROM rasa/rasa:${RASA_VERSION}-full
2
3
3
4
WORKDIR /bot
4
5
COPY ./bot /bot
You can’t perform that action at this time.
0 commit comments