File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ rund-psql: stop-mysql stop-sqlite upd-psql ## run the project with psql in de
74
74
redo-psql : drop-psql up-psql # # delete the db and rerun the project with psql
75
75
redod-psql : drop-psql upd-psql # # delete the db and rerun the project with psql in detached mode
76
76
77
+ # ## Using the production environment
78
+ run-prod : stop-mysql stop-sqlite stop-psql up-prod # # run the project with mysql and stop the sqlite project beforehand
79
+ rund-prod : stop-mysql stop-sqlite stop-psql upd-prod # # run the project with mysql in detached mode and stop the sqlite project beforehand
80
+ redo-prod : drop-prod up-prod # # delete the db and rerun the project with mysql
81
+ redod-prod : drop-prod upd-prod # # delete the db and rerun the project with mysql in detached mode
82
+
77
83
# ## Other run options
78
84
run : run-sqlite # # set the default run command to sqlite
79
85
redo : redo-sqlite # # set the default redo command to sqlite
Original file line number Diff line number Diff line change @@ -41,6 +41,27 @@ COPY ./backend/requirements.txt .
41
41
RUN python3 -m pip install --upgrade pip setuptools && \
42
42
python3 -m pip install -r ./requirements.txt
43
43
44
+
45
+ FROM debian:bookworm-slim as dukintegrator
46
+
47
+ RUN apt-get update && \
48
+ apt-get upgrade -y && \
49
+ apt-get install -y --no-install-recommends \
50
+ unzip && \
51
+ apt-get clean
52
+
53
+ WORKDIR /var/www/dukintegrator/
54
+
55
+ ADD https://static.anaf.ro/static/DUKIntegrator/dist_javaInclus20200203.zip /tmp/duki/
56
+ ADD https://static.anaf.ro/static/10/Anaf/Declaratii_R/AplicatiiDec/D230_10042023.zip /tmp/d230/
57
+
58
+ RUN unzip /tmp/duki/dist_javaInclus20200203.zip -d /var/www/dukintegrator/ && \
59
+ unzip /tmp/d230/D230_10042023.zip -d /var/www/dukintegrator/dist/lib/ && \
60
+ rm -rf /tmp/duki && \
61
+ rm -rf /tmp/d230 && \
62
+ rm -rf /var/www/dukintegrator/dist/jre6
63
+
64
+
44
65
FROM python:3.11.7-slim-bookworm
45
66
46
67
ENV PYTHONUNBUFFERED=1
@@ -91,6 +112,8 @@ COPY ./backend/ /var/www/redirect/backend/
91
112
92
113
COPY --from=frontend /home/builduser/redirect/build/bower_components/ /var/www/redirect/backend/bower_components/
93
114
115
+ COPY --from=dukintegrator /var/www/dukintegrator/ /var/www/dukintegrator/
116
+
94
117
# activate the virtualenv:
95
118
RUN . "${VIRTUAL_ENV}/bin/activate"
96
119
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RUN apt-get update && \
21
21
apt-get upgrade -y && \
22
22
apt-get install -y --no-install-recommends \
23
23
nginx gcc xz-utils gettext python3 python3-pip python3-venv python3-dev git postgresql-client libpq-dev \
24
- openjdk-17-jre-headless && \
24
+ openjdk-17-jre-headless unzip && \
25
25
apt-get clean
26
26
27
27
@@ -57,6 +57,19 @@ RUN python3 -m pip install --upgrade pip setuptools && \
57
57
RUN npm install -g npm bower && \
58
58
bower install --allow-root --config.interactive=false
59
59
60
+ # add the DUK Integrator
61
+ WORKDIR /var/www/dukintegrator/
62
+
63
+ ADD https://static.anaf.ro/static/DUKIntegrator/dist_javaInclus20200203.zip /tmp/duki/
64
+ ADD https://static.anaf.ro/static/10/Anaf/Declaratii_R/AplicatiiDec/D230_10042023.zip /tmp/d230/
65
+
66
+ RUN unzip /tmp/duki/dist_javaInclus20200203.zip -d /var/www/dukintegrator/ && \
67
+ unzip /tmp/d230/D230_10042023.zip -d /var/www/dukintegrator/dist/lib && \
68
+ rm -rf /tmp/duki && \
69
+ rm -rf /tmp/d230 && \
70
+ rm -rf /var/www/dukintegrator/dist/jre6
71
+
72
+
60
73
USER root
61
74
62
75
You can’t perform that action at this time.
0 commit comments