Skip to content

Commit 3ce6d1d

Browse files
committed
Use busybox small image for tests
1 parent 1aa802e commit 3ce6d1d

4 files changed

Lines changed: 502 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pre-requisites
1616
==============
1717

1818
* Set up a Kubernetes Master node and make sure the API server is running. Please refer to https://github.com/nirmal070125/vagrant-kubernetes-setup . Say your Kubernetes API endpoint is ```http://192.168.1.100:8080/api/v1beta1/```
19-
* Please pull a preferred docker image into the Master node. Say your preferred docker image is ```gurpartap/redis```.
19+
* Please pull a preferred docker image into the Master node. Say your preferred docker image is ```busybox```.
2020

2121
How to run the tests
2222
====================
@@ -25,7 +25,7 @@ How to run the tests
2525

2626
* Run the live test profile;
2727

28-
```mvn clean install -Plive -Dkubernetes.api.endpoint=http://192.168.1.100:8080/api/v1beta1/ -Ddocker.image=gurpartap/redis```
28+
```mvn clean install -Plive -Dkubernetes.api.endpoint=http://192.168.1.100:8080/api/v1beta1/ -Ddocker.image=busybox```
2929

3030

3131
NOTE: Please note that these are the default values and if your setup is equivalent to this, you can simply run ```mvn clean install -Plive```

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040

4141
<properties>
4242
<kubernetes.api.endpoint>http://localhost:8080/api/v1beta1/</kubernetes.api.endpoint>
43-
<docker.image>gurpartap/redis</docker.image>
43+
<kubernetes.api.username>vagrant</kubernetes.api.username>
44+
<kubernetes.api.password>vagrant</kubernetes.api.password>
45+
<docker.image>busybox</docker.image>
4446
</properties>
4547

4648
<dependencies>

src/main/java/com/github/kubernetes/java/client/Main.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static void main(String[] args) throws Exception {
6868
m.setVersion("v1beta1");
6969
Container c = new Container();
7070
c.setName("master");
71-
c.setImage("gurpartap/redis");
71+
c.setImage("busybox");
7272
Port p = new Port();
7373
p.setContainerPort(8379);
7474
p.setHostPort(8379);
@@ -118,7 +118,7 @@ public static void main(String[] args) throws Exception {
118118
manifest.setId("githubfrontendController");
119119
Container container = new Container();
120120
container.setName("github-php-redis");
121-
container.setImage("gurpartap/redis");
121+
container.setImage("busybox");
122122
p = new Port();
123123
p.setContainerPort(81);
124124
p.setHostPort(8001);

0 commit comments

Comments
 (0)