Skip to content

Commit 2c2a607

Browse files
Merge pull request #62 from freenowtech/sergioasantiago/install-poetry
Install poetry to sauron-service base image
2 parents c54414a + 271257b commit 2c2a607

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

sauron-service/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM openjdk:11-jre-slim
22

3-
ENV JAVA_TOOL_OPTIONS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=80" \
4-
JMXTRANS_VERSION=1.2.8
3+
ENV JAVA_TOOL_OPTIONS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=80"
54

65
LABEL maintainer="upscaler@free-now.com"
76

@@ -46,6 +45,9 @@ RUN cd .. && rm -rf Python-3.9.6*
4645

4746
RUN rm -rf /var/lib/apt/lists/*
4847

48+
# Installing Poetry
49+
RUN python -m pip install poetry==1.1.7
50+
4951
RUN mkdir /root/.m2
5052

5153
VOLUME /root/.m2

sauron-service/docker/container-structure-test.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ commandTests:
2121
- \nnodejs/.*
2222
- \napt-utils/.*
2323

24+
- name: Checking whether python is installed
25+
command: /usr/bin/which
26+
args: [ "python" ]
27+
expectedOutput:
28+
- /usr/bin/python
29+
30+
- name: Checking whether poetry is installed
31+
command: /usr/bin/python
32+
args: [ "-m", "pip", "list" ]
33+
expectedOutput:
34+
- \npoetry.*
35+
2436
fileExistenceTests:
2537
- name: Copies the entrypoint
2638
path: /usr/local/bin/entrypoint
@@ -30,6 +42,4 @@ fileExistenceTests:
3042
metadataTest:
3143
env:
3244
- key: JAVA_HOME
33-
value: /usr/local/openjdk-11
34-
- key: JMXTRANS_VERSION
35-
value: 1.2.8
45+
value: /usr/local/openjdk-11

0 commit comments

Comments
 (0)