Skip to content

Commit f2f8778

Browse files
committed
add
1 parent 8fb80b9 commit f2f8778

File tree

7 files changed

+451
-26
lines changed

7 files changed

+451
-26
lines changed

public/data/popular-docker-images.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import requests
2+
import csv
3+
4+
def get_popular_docker_images(limit=1000):
5+
images = []
6+
page = 1
7+
while len(images) < limit:
8+
url = f"https://hub.docker.com/v2/repositories/library/?page={page}&page_size=10000"
9+
response = requests.get(url)
10+
11+
if response.status_code == 200:
12+
data = response.json()
13+
results = data.get('results', [])
14+
images.extend([(image['name'], image['pull_count']) for image in results])
15+
if len(results) < 100: # No more images to fetch
16+
break
17+
page += 1
18+
else:
19+
print(f"Failed to retrieve images: {response.status_code}")
20+
break
21+
22+
return images[:limit]
23+
24+
def save_images_to_csv(images, filename='popular_docker_images.csv'):
25+
with open(filename, mode='w', newline='') as file:
26+
writer = csv.writer(file)
27+
writer.writerow(['Image Name', 'Pull Count']) # Header
28+
writer.writerows(images)
29+
30+
if __name__ == "__main__":
31+
popular_images = get_popular_docker_images()
32+
save_images_to_csv(popular_images)
33+
print(f"Saved {len(popular_images)} popular Docker images to 'popular_docker_images.csv'.")

public/data/popular_docker_images.csv

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
Image Name,Pull Count
2+
centos,1172620538
3+
busybox,11932018694
4+
ubuntu,9558704284
5+
scratch,268577
6+
fedora,124879800
7+
registry,1694431660
8+
hipache,439029
9+
docker-dev,2593866
10+
debian,1359274731
11+
cirros,6828884
12+
crux,877082
13+
ubuntu-upstart,1817537
14+
buildpack-deps,241219587
15+
nginx,12273200032
16+
node,5651444087
17+
mysql,4558645578
18+
wordpress,1414724369
19+
postgres,9552249732
20+
redis,9589296853
21+
java,142805511
22+
mongo,4565484995
23+
rails,8965397
24+
ruby,1486395578
25+
python,7996552938
26+
ubuntu-debootstrap,8945079
27+
perl,246037208
28+
hello-world,3152731333
29+
hylang,26435608
30+
gcc,25142097
31+
jenkins,149284492
32+
opensuse,9409708
33+
golang,2327608240
34+
neurodebian,9991256
35+
clojure,38300174
36+
php,1230169235
37+
jruby,50917281
38+
mageia,1655798
39+
crate,18844374
40+
php-zendserver,4304010
41+
tomcat,790129918
42+
mono,43252029
43+
haskell,8108876
44+
glassfish,1272070
45+
maven,695798669
46+
httpd,4605811070
47+
sentry,123029258
48+
r-base,10469420
49+
mariadb,2905035133
50+
thrift,3024939
51+
pypy,40732095
52+
django,23035918
53+
haproxy,1095436743
54+
memcached,12605455518
55+
rabbitmq,3661548786
56+
oraclelinux,38324604
57+
odoo,44387776
58+
rethinkdb,76054843
59+
iojs,17379239
60+
websphere-liberty,24285538
61+
irssi,8509433
62+
swarm,83063461
63+
elasticsearch,905204688
64+
jetty,40754249
65+
ghost,368542999
66+
celery,3528495
67+
percona,198983441
68+
aerospike,18468780
69+
logstash,197604797
70+
julia,15674351
71+
alpine,11110333435
72+
rakudo-star,2513754
73+
drupal,199271451
74+
cassandra,221079429
75+
sonarqube,1134091055
76+
couchbase,87634788
77+
ros,28943089
78+
kibana,219640080
79+
kaazing-gateway,2094249
80+
arangodb,37482099
81+
owncloud,57032618
82+
gazebo,4480692
83+
joomla,84365080
84+
redmine,70559497
85+
nats,211816588
86+
rocket.chat,75035947
87+
docker,3241957782
88+
tomee,24675798
89+
sourcemage,653218
90+
bonita,12731765
91+
solr,346597484
92+
neo4j,294126852
93+
erlang,62998597
94+
nuxeo,5087478
95+
photon,17739265
96+
couchdb,193860700
97+
notary,6672179
98+
piwik,20458666
99+
elixir,60715787
100+
lightstreamer,5946277
101+
orientdb,15293162
102+
mongo-express,256455222
103+
traefik,3373757824
104+
backdrop,7053110
105+
consul,1044063574
106+
chronograf,155801811
107+
influxdb,1074070648
108+
kapacitor,59982397
109+
telegraf,612292882
110+
hello-seattle,5006838
111+
hola-mundo,1466473
112+
fsharp,2933414
113+
spiped,3183485
114+
vault,546464858
115+
clearlinux,6900757
116+
eggdrop,2844638
117+
ibmjava,13218248
118+
openjdk,2573574365
119+
kong,338368114
120+
zookeeper,323652766
121+
nats-streaming,100729591
122+
storm,9114873
123+
plone,6790056
124+
bash,487824630
125+
amazonlinux,914818541
126+
composer,178362306
127+
known,1375676
128+
eclipse-mosquitto,632994713
129+
nextcloud,978067427
130+
silverpeas,1924608
131+
swift,27891464
132+
haxe,24842619
133+
rapidoid,2700941
134+
adminer,380425506
135+
geonetwork,5378513
136+
xwiki,33053375
137+
groovy,77499427
138+
znc,28371109
139+
gradle,265162590
140+
convertigo,4328655
141+
flink,91540510
142+
swipl,3122415
143+
rust,96091017
144+
mediawiki,45663963
145+
euleros,720022
146+
sl,609810
147+
open-liberty,13336095
148+
clefos,807865
149+
teamspeak,135065364
150+
matomo,126503608
151+
yourls,22040194
152+
alt,773900
153+
amazoncorretto,108601845
154+
express-gateway,2478230
155+
postfixadmin,5466201
156+
fluentd,12158169
157+
adoptopenjdk,100990080
158+
sapmachine,23228005
159+
varnish,19113151
160+
jobber,703780
161+
archlinux,28712268
162+
friendica,5266071
163+
caddy,648536792
164+
monica,12101600
165+
phpmyadmin,73723988
166+
hitch,483484
167+
almalinux,9357234
168+
dart,2673084
169+
eclipse-temurin,188638993
170+
ibm-semeru-runtimes,7107285
171+
rockylinux,37225129
172+
api-firewall,64596
173+
emqx,2980354
174+
satosa,413084
175+
unit,789847
176+
spark,837897
177+
liquibase,227644
178+
clickhouse,112860
179+
krakend,3798

src/App.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Footer from "./components/Footer";
88
import Labs from "./components/Labs";
99
import OpenGraph from "./components/OpenGraph";
1010
import DiscordPopup from "./components/DiscordPopup";
11+
import DockerImages from "./components/DockerImages";
1112

1213
function App() {
1314
return (
@@ -37,6 +38,17 @@ function App() {
3738
<ToolsSection />
3839
</div>
3940
} />
41+
<Route path="/docker-images" element={
42+
<div className="text-primary max-w-[1280px] mx-auto px-4 py-8">
43+
<OpenGraph
44+
title="Popular Docker Images | KubeDaily"
45+
description="Explore popular Docker images with detailed information about their pull counts, stars, and official status."
46+
tags={["Docker Images", "Container Images", "Docker Hub", "Container Registry"]}
47+
/>
48+
<h1 className="text-3xl font-bold mb-8 text-center">Popular Docker Images</h1>
49+
<DockerImages />
50+
</div>
51+
} />
4052
<Route path="/labs" element={
4153
<>
4254
<OpenGraph

src/components/AppLayout.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import {
55
BookOutlined,
66
ExperimentOutlined,
77
GithubOutlined,
8-
UserOutlined
8+
UserOutlined,
9+
StarOutlined
910
} from '@ant-design/icons';
1011
import { Link, useLocation } from 'react-router-dom';
1112

@@ -21,7 +22,7 @@ const userMenu = (
2122

2223
const AppLayout = ({ children }) => {
2324
const location = useLocation();
24-
const selectedKey = location.pathname.split('/')[1] || 'home';
25+
const selectedKey = location.pathname === '/top' ? 'top' : (location.pathname.split('/')[1] || 'home');
2526

2627
return (
2728
<Layout style={{ minHeight: '100vh' }}>
@@ -47,6 +48,9 @@ const AppLayout = ({ children }) => {
4748
style={{ height: '100%', borderRight: 0, background: 'transparent', color: '#fff' }}
4849
theme="dark"
4950
>
51+
<Menu.Item key="top" icon={<StarOutlined />}>
52+
<Link to="/top">TOP</Link>
53+
</Menu.Item>
5054
<Menu.Item key="home" icon={<HomeOutlined />}>
5155
<Link to="/">Home</Link>
5256
</Menu.Item>

0 commit comments

Comments
 (0)