I have compiled this and moved the dist into my cockpit directory /usr/share/cockpit.
However, it is not working with the following error:
Uncaught ReferenceError: jQuery is not defined
at Object.jquery (docker.js:216946)
at __webpack_require__ (docker.js:20)
at Module../pkg/docker/containers.js (docker.js:209491)
at __webpack_require__ (docker.js:20)
at Object.0 (docker.js:216923)
at __webpack_require__ (docker.js:20)
at docker.js:84
at docker.js:87
Looking at the docker/index.html file, it is expecting a jquery.js file under ../base1/jquery.js, but this file doesn't exist in this installation of cockpit.
# grep -n -i jquery docker/index.html -A5 -B5
23- <title translate="yes">Containers</title>
24- <meta charset="utf-8">
25- <meta name="viewport" content="width=device-width, initial-scale=1.0">
26- <link href="../base1/patternfly.css" type="text/css" rel="stylesheet">
27- <link href="docker.css" type="text/css" rel="stylesheet" id="term-style">
28: <script src="../base1/jquery.js"></script>
29- <script src="../base1/cockpit.js"></script>
30- <script src="../*/po.js"></script>
31- <script src="docker.js"></script>
32-</head>
33-<body class="pf-m-redhat-font" hidden>
# ls -lah | grep -i jquery
#
I'm not much of a web developer, any idea how this could be rectified or worked around?
Edit:
cockpit package:
# yum info cockpit
Last metadata expiration check: 2:29:47 ago on Tue Feb 2 12:20:11 2021.
Installed Packages
Name : cockpit
Version : 235
Release : 1.el8
Architecture : x86_64
Size : 56 k
Source : cockpit-235-1.el8.src.rpm
Repository : @System
From repo : anaconda
Summary : Web Console for Linux servers
URL : https://cockpit-project.org/
License : LGPLv2+
Description : The Cockpit Web Console enables users to administer GNU/Linux servers using a
: web browser.
:
: It offers network configuration, log inspection, diagnostic reports, SELinux
: troubleshooting, interactive command-line sessions, and more.
Environment:
# cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
I have compiled this and moved the
distinto my cockpit directory/usr/share/cockpit.However, it is not working with the following error:
Looking at the
docker/index.htmlfile, it is expecting ajquery.jsfile under../base1/jquery.js, but this file doesn't exist in this installation of cockpit.I'm not much of a web developer, any idea how this could be rectified or worked around?
Edit:
cockpitpackage:Environment: