Commit 41212e7 1 parent 43aa40b commit 41212e7 Copy full SHA for 41212e7
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-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,7 @@ 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
42
43
43
LABEL name="Kruize HPO" \
44
44
vendor="Red Hat" \
@@ -54,5 +54,6 @@ COPY --chown=1001:0 index.html /opt/app/
54
54
55
55
56
56
EXPOSE 8085
57
+ EXPOSE 50051
57
58
58
59
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