Skip to content

Commit 2caf868

Browse files
committed
Updated clean tree
0 parents  commit 2caf868

File tree

9 files changed

+120
-0
lines changed

9 files changed

+120
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/cred

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM centos
2+
COPY ./kubernetes.repo /etc/yum.repos.d/
3+
RUN yum install sudo git java -y
4+
RUN yum install openssh-server -y
5+
RUN echo 'root:root' | chpasswd
6+
RUN ssh-keygen -A
7+
RUN yum install -y kubectl
8+
COPY ./cred /root/cred
9+
COPY ./config /root/.kube/
10+
RUN mkdir jenkins
11+
CMD /usr/sbin/sshd -D
12+
13+

README.md

44 Bytes

Dynamic-Deployemt

config

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
clusters:
3+
- cluster:
4+
certificate-authority: /root/cred/ca.crt
5+
server: https://192.168.99.104:8443
6+
name: minikube
7+
contexts:
8+
- context:
9+
cluster: minikube
10+
user: minikube
11+
name: minikube
12+
current-context: minikube
13+
kind: Config
14+
preferences: {}
15+
users:
16+
- name: minikube
17+
user:
18+
client-certificate: /root/cred/client.crt
19+
client-key: /root/cred/client.key

kubernetes.repo

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[kubernetes]
2+
name=Kubernetes
3+
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
4+
enabled=1
5+
gpgcheck=1
6+
repo_gpgcheck=1
7+
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg

tobuild/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM httpd
2+
COPY ./ws/webfiles /usr/local/apache2/htdocs/
3+
EXPOSE 80

tobuild/TickyClock/css/clockStyle.css

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@import 'https://fonts.googleapis.com/css?family=Bungee+Shade';
2+
3+
html, body{
4+
height: 100%;
5+
}
6+
7+
#clock{
8+
color: #fff;
9+
font-family: 'Bungee Shade', cursive;
10+
font-size: 70px;
11+
12+
position: relative;
13+
top: 50%;
14+
margin-top: -35px;
15+
text-align: center;
16+
17+
}

tobuild/TickyClock/index.html

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" media="screen" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
8+
9+
<title>Clocky | that changes BG</title>
10+
11+
<link rel="stylesheet" href="css/clockStyle.css">
12+
13+
</head>
14+
15+
<body>
16+
17+
<div id="clock" >
18+
19+
</div>
20+
21+
22+
<script src="js/clock.js" ></script>
23+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
24+
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
25+
26+
<script>
27+
</script>
28+
29+
</body>
30+
31+
</html>

tobuild/TickyClock/js/clock.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
var d, h, m, s, clock, color;
2+
3+
function cloky(){
4+
d = new Date();
5+
h = d.getHours();
6+
m = d.getMinutes();
7+
s = d.getSeconds();
8+
9+
10+
if ( h <= 9){
11+
h = '0' + h;
12+
}
13+
if ( m <= 9){
14+
m = '0' + m;
15+
}
16+
if ( s <= 9){
17+
s = '0' + s;
18+
}
19+
20+
clock = h + ":" + m + ":" + s;
21+
color = "#" + h + m + s;
22+
23+
document.getElementById("clock").innerHTML = clock
24+
document.body.style.background = color;
25+
26+
setTimeout(cloky, 1000);
27+
}
28+
29+
cloky();

0 commit comments

Comments
 (0)