aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin
diff options
context:
space:
mode:
authorHarald Musum <musum@yahoo-inc.com>2017-01-27 16:00:36 +0100
committerGitHub <noreply@github.com>2017-01-27 16:00:36 +0100
commit98bbbc9979e6852c52a9163015f15091a899674d (patch)
tree348abaa4c8254a0074a0b6dd995141be3014b302 /node-admin
parent89ef63927df101e764be6b2f6f773a4751b6236c (diff)
parent5d997653245fc938325b5833780dedc2067f384b (diff)
Merge pull request #1638 from yahoo/freva/move-node-admin-dockerfile
Freva/move node admin dockerfile
Diffstat (limited to 'node-admin')
-rw-r--r--node-admin/.gitignore5
-rw-r--r--node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/docker/LocalZoneUtils.java4
-rw-r--r--node-admin/vespa-local/Dockerfile.template (renamed from node-admin/Dockerfile.template)12
-rw-r--r--node-admin/vespa-local/http-server.xml (renamed from node-admin/include/http-server.xml)0
-rw-r--r--node-admin/vespa-local/node-flavors.xml (renamed from node-admin/include/node-flavors.xml)0
-rwxr-xr-xnode-admin/vespa-local/nodectl-instance.sh (renamed from node-admin/include/nodectl-instance.sh)0
-rw-r--r--node-admin/vespa-local/root-bashrc (renamed from node-admin/include/root-bashrc)0
-rwxr-xr-xnode-admin/vespa-local/start-config-server.sh (renamed from node-admin/include/start-config-server.sh)0
-rwxr-xr-xnode-admin/vespa-local/start-services.sh (renamed from node-admin/include/start-services.sh)0
9 files changed, 8 insertions, 13 deletions
diff --git a/node-admin/.gitignore b/node-admin/.gitignore
index 750f12730e3..8f00331723c 100644
--- a/node-admin/.gitignore
+++ b/node-admin/.gitignore
@@ -1,4 +1 @@
-/dependencies
-/Dockerfile
-include/services.xml
-/**/*.pyc
+vespa-local/Dockerfile
diff --git a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/docker/LocalZoneUtils.java b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/docker/LocalZoneUtils.java
index 2dd2ef6f6ac..0f1f79d68a1 100644
--- a/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/docker/LocalZoneUtils.java
+++ b/node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/docker/LocalZoneUtils.java
@@ -123,9 +123,9 @@ public class LocalZoneUtils {
}
public static void buildVespaLocalDockerImage(Docker docker, DockerImage vespaBaseImage) throws IOException {
- Path dockerfilePath = PROJECT_ROOT.resolve("node-admin/Dockerfile");
+ Path dockerfilePath = PROJECT_ROOT.resolve("node-admin/vespa-local/Dockerfile");
- Path dockerfileTemplatePath = Paths.get("node-admin/Dockerfile.template");
+ Path dockerfileTemplatePath = Paths.get("node-admin/vespa-local/Dockerfile.template");
String dockerfileTemplate = new String(Files.readAllBytes(dockerfileTemplatePath))
.replaceAll("\\$NODE_ADMIN_FROM_IMAGE", vespaBaseImage.asString())
.replaceAll("\\$VESPA_HOME", Defaults.getDefaults().vespaHome());
diff --git a/node-admin/Dockerfile.template b/node-admin/vespa-local/Dockerfile.template
index e69308deae3..53f8bfac18f 100644
--- a/node-admin/Dockerfile.template
+++ b/node-admin/vespa-local/Dockerfile.template
@@ -15,21 +15,19 @@ FROM $NODE_ADMIN_FROM_IMAGE
# Be aware that this Dockerfile is not being used in any pipelines and has no relation to production environments etc.
# It is here for developers' convenience - it allows building and experimenting with node-admin locally.
-CMD $VESPA_HOME/bin/start-services.sh
-
# Things for convenience.
RUN yum install -y tcpdump
-ADD include/root-bashrc /root/.bashrc
+ADD root-bashrc /root/.bashrc
# Make config-server aware of node flavor 'docker'.
-ADD include/node-flavors.xml $VESPA_HOME/conf/configserver-app/node-flavors.xml
+ADD node-flavors.xml $VESPA_HOME/conf/configserver-app/node-flavors.xml
# Make config-server also listen to 4080
-ADD include/http-server.xml $VESPA_HOME/conf/configserver-app/hosted-vespa/http-server.xml
+ADD http-server.xml $VESPA_HOME/conf/configserver-app/hosted-vespa/http-server.xml
# Entrypoint for running config server in a container.
-ADD include/start-config-server.sh $VESPA_HOME/bin/start-config-server.sh
+ADD start-config-server.sh $VESPA_HOME/bin/start-config-server.sh
# Included in base image, but here overridden with local modifications.
# TODO: Update the source instead.
-ADD include/start-services.sh $VESPA_HOME/bin/start-services.sh
+ADD start-services.sh $VESPA_HOME/bin/start-services.sh
diff --git a/node-admin/include/http-server.xml b/node-admin/vespa-local/http-server.xml
index f77d392de97..f77d392de97 100644
--- a/node-admin/include/http-server.xml
+++ b/node-admin/vespa-local/http-server.xml
diff --git a/node-admin/include/node-flavors.xml b/node-admin/vespa-local/node-flavors.xml
index 7d22975994a..7d22975994a 100644
--- a/node-admin/include/node-flavors.xml
+++ b/node-admin/vespa-local/node-flavors.xml
diff --git a/node-admin/include/nodectl-instance.sh b/node-admin/vespa-local/nodectl-instance.sh
index b40ce44e33a..b40ce44e33a 100755
--- a/node-admin/include/nodectl-instance.sh
+++ b/node-admin/vespa-local/nodectl-instance.sh
diff --git a/node-admin/include/root-bashrc b/node-admin/vespa-local/root-bashrc
index fda1752c85f..fda1752c85f 100644
--- a/node-admin/include/root-bashrc
+++ b/node-admin/vespa-local/root-bashrc
diff --git a/node-admin/include/start-config-server.sh b/node-admin/vespa-local/start-config-server.sh
index a592ec3cbd3..a592ec3cbd3 100755
--- a/node-admin/include/start-config-server.sh
+++ b/node-admin/vespa-local/start-config-server.sh
diff --git a/node-admin/include/start-services.sh b/node-admin/vespa-local/start-services.sh
index 0fe5c1c0724..0fe5c1c0724 100755
--- a/node-admin/include/start-services.sh
+++ b/node-admin/vespa-local/start-services.sh