Commit c46af60 1 parent 43aa40b commit c46af60 Copy full SHA for c46af60
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ WORKDIR /opt/app
25
25
26
26
# Install packages needed for python to function correctly
27
27
# Create the non root user, same as the one used in the build phase.
28
- RUN microdnf install -y python3 \
28
+ RUN microdnf install -y python3 gcc-c++ python3-devel \
29
29
&& microdnf update -y \
30
30
&& microdnf -y install shadow-utils \
31
31
&& adduser -u 1001 -G root -s /usr/sbin/nologin default \
@@ -38,7 +38,10 @@ RUN microdnf install -y python3 \
38
38
USER 1001
39
39
40
40
# Install optuna to the default user
41
- RUN python3 -m pip install --user optuna requests scikit-optimize jsonschema
41
+ RUN python3 -m pip install --user optuna requests scikit-optimize jsonschema click grpcio google-api-core
42
+
43
+ #RUN microdnf -y install --user shadow-utils gcc-c++ python3-devel \
44
+ # && python3 -m pip install --user grpcio
42
45
43
46
LABEL name="Kruize HPO" \
44
47
vendor="Red Hat" \
@@ -54,5 +57,6 @@ COPY --chown=1001:0 index.html /opt/app/
54
57
55
58
56
59
EXPOSE 8085
60
+ EXPOSE 50051
57
61
58
62
ENTRYPOINT python3 -u src/service.py
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ function docker_start() {
69
69
70
70
check_prereq running ${SERVICE_STATUS_DOCKER}
71
71
72
- ${CONTAINER_RUNTIME} run -d --name hpo_docker_container -p 8085:8085 ${HPO_CONTAINER_IMAGE} > /dev/null 2>&1
72
+ ${CONTAINER_RUNTIME} run -d --name hpo_docker_container -p 8085:8085 -p 50051:50051 ${HPO_CONTAINER_IMAGE} > /dev/null 2>&1
73
73
check_err " Unexpected error occured. Service Stopped!"
74
74
75
75
echo
You can’t perform that action at this time.
0 commit comments