This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 9 files changed +22
-22
lines changed
9 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 1
- FROM bitnami/minideb:jessie
1
+ FROM bitnami/minideb:buster
2
2
3
3
# Install dependencies
4
- RUN install_packages git python python-pip python-dev build-essential wget
4
+ RUN install_packages git python python-pip python-setuptools python- dev build-essential wget gnupg2
5
5
RUN pip install python-dateutil
6
6
7
7
# Install Node.js / nodemon
@@ -12,14 +12,14 @@ ENV PATH="/opt/bitnami/node/bin:$PATH"
12
12
RUN npm install -g nodemon
13
13
14
14
# Install mongo shell
15
- RUN apt-key adv --keyserver hkp ://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 \
16
- && echo "deb http://repo.mongodb.org/apt/debian jessie /mongodb-org/3.4 main" | tee /etc/apt/sources.list.d/mongodb-org-3.4 .list \
15
+ RUN wget -qO - https ://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add - \
16
+ && echo "deb http://repo.mongodb.org/apt/debian buster /mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2 .list \
17
17
&& apt-get update -y \
18
18
&& apt-get install -y mongodb-org-shell
19
19
20
20
# Configuration
21
- RUN mkdir -p /etc/linaro
22
- COPY app/kernelci-backend.cfg /etc/linaro /kernelci-backend.cfg
21
+ RUN mkdir -p /etc/kernelci
22
+ COPY app/kernelci-backend.cfg /etc/kernelci /kernelci-backend.cfg
23
23
24
24
# Get source code
25
25
COPY kernelci-backend /srv/kernelci-backend
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ RUN npm install -g nodemon
11
11
RUN groupadd user && useradd --create-home --home-dir /home/user -g user user
12
12
13
13
# Configuration
14
- COPY celery/celery-config.cfg /etc/linaro /kernelci-celery.cfg
14
+ COPY celery/celery-config.cfg /etc/kernelci /kernelci-celery.cfg
15
15
16
16
# Logs folder
17
17
RUN mkdir -p /var/www/images/kernel-ci
18
18
19
19
# Give additional rights on /var/www
20
- RUN chown -R user:user /etc/linaro /var/www
20
+ RUN chown -R user:user /etc/kernelci /var/www
21
21
22
22
# Copy backend source code and give rigth to user
23
23
COPY kernelci-backend /home/user/kernelci-backend
Original file line number Diff line number Diff line change 1
- FROM bitnami/minideb:jessie
1
+ FROM bitnami/minideb:buster
2
2
3
- RUN install_packages git python python-pip python-dev build-essential
3
+ RUN install_packages git python python-pip python-setuptools python- dev build-essential
4
4
RUN pip install python-dateutil
5
5
6
- RUN mkdir -p /etc/linaro
7
- COPY celery-config.cfg /etc/linaro /kernelci-celery.cfg
6
+ RUN mkdir -p /etc/kernelci
7
+ COPY celery-config.cfg /etc/kernelci /kernelci-celery.cfg
8
8
9
9
RUN groupadd user && useradd --create-home --home-dir /home/user -g user user
10
10
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ services:
17
17
restart : on-failure
18
18
volumes :
19
19
- $PWD/frontend/kernelci-frontend/app:/srv/kernelci-frontend/app
20
- - $PWD/frontend/flask_settings:/etc/linaro /kernelci-frontend.cfg
20
+ - $PWD/frontend/flask_settings:/etc/kernelci /kernelci-frontend.cfg
21
21
command : nodemon -V --watch /srv/kernelci-frontend/app -e py,html --exec "/bin/bash -c" /srv/entrypoint.sh
22
22
backend :
23
23
image : lucj/kernelci-backend:${TAG:-latest}
@@ -43,7 +43,7 @@ services:
43
43
image : redis:3.2
44
44
restart : on-failure
45
45
mongo :
46
- image : mongo:3.4
46
+ image : mongo:4.2
47
47
restart : on-failure
48
48
volumes :
49
49
- data:/data/db
Original file line number Diff line number Diff line change 1
- FROM bitnami/minideb:jessie
1
+ FROM bitnami/minideb:buster
2
2
3
3
# Install dependencies
4
4
5
- RUN install_packages build-essential git python python-pip python-dev uwsgi-plugin-python curl redis-tools wget
5
+ RUN install_packages build-essential git python python-pip python-setuptools python- dev uwsgi-plugin-python curl redis-tools wget
6
6
7
7
# Install Node.js / nodemon
8
8
RUN wget --no-check-certificate -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/node-8.9.3-0-linux-x64-debian-8.tar.gz && \
@@ -18,7 +18,7 @@ COPY kernelci-frontend /srv/kernelci-frontend
18
18
RUN pip install -r kernelci-frontend/requirements.txt
19
19
WORKDIR /srv/kernelci-frontend/app
20
20
RUN touch /etc/flask_settings
21
- COPY flask_settings /etc/linaro /kernelci-frontend.cfg
21
+ COPY flask_settings /etc/kernelci /kernelci-frontend.cfg
22
22
23
23
# uWSGI configuration
24
24
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ RUN node /front/app/dashboard/static/js/lib/r.js -o /front/app/dashboard/static/
8
8
9
9
# API documentation
10
10
11
- FROM bitnami/minideb:jessie as backend
11
+ FROM bitnami/minideb:buster as backend
12
12
13
- RUN install_packages git python python-pip python-dev build-essential
13
+ RUN install_packages git python python-pip python-setuptools python- dev build-essential
14
14
RUN git clone https://github.com/kernelci/kernelci-backend.git /tmp/kernelci-backend
15
15
RUN pip install -r /tmp/kernelci-backend/requirements.txt
16
16
RUN cd /tmp/kernelci-backend/doc && make html
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ docker config create $CONFIG config/frontend.config
76
76
77
77
# ## Update frontend with configuration
78
78
79
- docker service update --config-add src=$CONFIG ,target=/etc/linaro /kernelci-frontend.cfg kernelci_frontend
79
+ docker service update --config-add src=$CONFIG ,target=/etc/kernelci /kernelci-frontend.cfg kernelci_frontend
80
80
81
81
echo " -> application configured"
82
82
echo " --> frontend available on port 8080"
You can’t perform that action at this time.
0 commit comments