Skip to content

Commit f33c66a

Browse files
Merge pull request #260 from steveb/ironic-novnc
ironic-api: install novnc
2 parents f7a0685 + e26bee6 commit f33c66a

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

‎containers/ironic/ironic-api/Containerfile‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ from ironic.api.wsgi import initialize_wsgi_app\n\
9898
application = initialize_wsgi_app()\n' > /configfiles/ironic-api-wsgi && \
9999
chmod 755 /configfiles/ironic-api-wsgi
100100

101+
# Copy novnc files to /configfiles/usr/share/novnc/
102+
RUN mkdir -p /configfiles/usr/share/novnc && \
103+
cp -a /src/novnc/app \
104+
/src/novnc/core \
105+
/src/novnc/vendor \
106+
/src/novnc/vnc.html \
107+
/src/novnc/vnc_lite.html \
108+
/src/novnc/defaults.json \
109+
/src/novnc/package.json \
110+
/configfiles/usr/share/novnc/
111+
101112
# --- Runtime stage: install from wheels ---
102113
FROM ${BASE_IMAGE}
103114

@@ -154,4 +165,10 @@ RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf && \
154165
sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf 2>/dev/null || true && \
155166
usermod --append --groups apache ironic
156167

168+
# novnc setup
169+
COPY --from=build /configfiles/usr/share/novnc /usr/share/novnc
170+
RUN chown -R root:root /usr/share/novnc && \
171+
find /usr/share/novnc -type d -exec chmod 755 {} + && \
172+
find /usr/share/novnc -type f -exec chmod 644 {} +
173+
157174
USER ironic
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
master novnc https://github.com/novnc/noVNC.git master acca57b997f206683d27796829ee1f72da37002a -

‎containers/ironic/requirements.lock.master‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ keystoneauth1==5.17.0
3333
keystonemiddleware==13.0.1
3434
kombu==5.6.2
3535
lark==1.3.1
36+
legacy-cgi==2.6.4
3637
mako==1.4.1
3738
markupsafe==3.0.3
3839
microversion-parse==2.1.0

0 commit comments

Comments
 (0)