Spaces:
Runtime error
Runtime error
Commit
·
e879296
1
Parent(s):
91bdbb4
update dockerfile
Browse files- Dockerfile +2 -1
- start_test.sh +13 -0
Dockerfile
CHANGED
@@ -12,6 +12,7 @@ COPY *.whl /packages/
|
|
12 |
|
13 |
# Copy users db file along with execution script
|
14 |
COPY start.sh /
|
|
|
15 |
COPY load_data.py /
|
16 |
COPY users.yml /packages/
|
17 |
|
@@ -36,4 +37,4 @@ RUN apt update
|
|
36 |
RUN apt -y install elasticsearch
|
37 |
|
38 |
# Executing argilla along with elasticsearch
|
39 |
-
CMD /bin/bash /
|
|
|
12 |
|
13 |
# Copy users db file along with execution script
|
14 |
COPY start.sh /
|
15 |
+
COPY start_test.sh /
|
16 |
COPY load_data.py /
|
17 |
COPY users.yml /packages/
|
18 |
|
|
|
37 |
RUN apt -y install elasticsearch
|
38 |
|
39 |
# Executing argilla along with elasticsearch
|
40 |
+
CMD /bin/bash /start_test.sh
|
start_test.sh
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set -e
|
2 |
+
|
3 |
+
# Changing user
|
4 |
+
echo "ubuntu" | sudo -S su user
|
5 |
+
|
6 |
+
# Generate hashed passwords
|
7 |
+
sudo systemctl start elasticsearch
|
8 |
+
|
9 |
+
# Load data
|
10 |
+
python3.9 /load_data.py &
|
11 |
+
|
12 |
+
# Start argilla
|
13 |
+
uvicorn argilla:app --host "0.0.0.0"
|