Skip to content

Commit a614071

Browse files
Merge pull request #33 from intelops/feat/renovate_integration
Feat/renovate integration
2 parents 44cd520 + cfa41c7 commit a614071

File tree

11 files changed

+8825
-8
lines changed

11 files changed

+8825
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ build
44
dist
55
*.egg-info
66
__pycache__
7-
test.py
7+
test.py
8+
testbed.ipynb

Dockerfile

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,23 @@ RUN apt-get install -y --no-install-recommends build-essential gcc
55

66
WORKDIR /usr/app
77

8-
RUN python -m venv /usr/app/venv
9-
ENV PATH="/usr/app/venv/bin:$PATH"
8+
#install node and npm
9+
RUN apt-get update -y
10+
RUN apt-get install -y ca-certificates curl gnupg
11+
RUN mkdir -p /etc/apt/keyrings
12+
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
13+
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
14+
RUN apt-get update -y
15+
RUN apt-get install nodejs -y
16+
17+
RUN npm install -g renovate -y
18+
19+
ENV VIRTUAL_ENV=/usr/app/venv
1020

11-
copy requirements.txt .
21+
RUN python -m venv $VIRTUAL_ENV
22+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
23+
24+
COPY requirements.txt .
1225

1326
RUN pip install -r requirements.txt
1427

@@ -23,9 +36,24 @@ WORKDIR /usr/app
2336
COPY --chown=python:python --from=build /usr/app/venv ./venv
2437
COPY --chown=python:python . .
2538

39+
2640
USER 999
2741

2842
ENV PATH="/usr/app/venv/bin:$PATH"
2943

30-
CMD ["bash"]
44+
RUN pip install build
45+
46+
#Build the app
47+
RUN python -m build
48+
49+
50+
#Find the wheel file name and install the wheel
51+
RUN pip install $(find dist -name "*.whl")
52+
53+
EXPOSE 5000
54+
55+
RUN chmod 755 ./run.sh
56+
57+
ENTRYPOINT ["./run.sh"]
3158

59+
# CMD ["python", "./src/scsctl/server.py"]

log.ndjson

Lines changed: 176 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)