forked from Data-Science-Platform/cluster-broccoli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Hashicorp Configuration Language for templates (Data-…
…Science-Platform#18) * Changes for adding HCL support Fixes Issue Data-Science-Platform#17 * Adding tests --integration tests --updated version for jinjava * Fixed formatting for NomadServiceIntegrationSpec * Trying to fix scaa integration tests TODO -- http-api-tests for Broccoli would still fail * Fixed IT to add the new HCL template * Fix tls tests -- Moved tls tests to common http-tests directory -- Added check_service calls for before_each -- changed response data for newer version of nomad for edit-parameter-start * changed path for tls tests in travis * Changed min nomad version for jobs/parse * Filter out special characters for docker branch tags * Improved branch filtering * Reverted change to node version in .travis.yml * fixed formatting issues with build.sbt * Fixed imports * Fixed InstanceServiceSpec tests * removed unneeded print statements * removed json from templaterenderer javadoc
- Loading branch information
1 parent
7bc50e8
commit 41e6394
Showing
70 changed files
with
621 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,11 @@ | ||
FROM java:8 | ||
FROM frosner/cluster-broccoli-test:latest | ||
|
||
# Fix for java:8 image | ||
RUN echo "deb http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list | ||
RUN echo 'deb http://archive.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/jessie-backports.list | ||
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list | ||
RUN echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/05validnocheck | ||
|
||
ENV NOMAD_VERSION 0.8.7 | ||
# install docker libraries | ||
RUN apt-get update && \ | ||
apt-get install -y apt-transport-https ca-certificates && \ | ||
apt-get clean all | ||
|
||
RUN curl -fsSL get.docker.com -o get-docker.sh && \ | ||
sh get-docker.sh | ||
|
||
# put nomad | ||
RUN curl https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip > nomad.zip && \ | ||
unzip nomad.zip | ||
RUN mkdir /etc/nomad.d/ | ||
## nomad certificates and configs | ||
COPY ./nomad-server-config/ /etc/nomad.d/ | ||
|
||
RUN echo "#!/bin/bash" > /usr/bin/nomad && \ | ||
echo "exec /nomad agent -dev -config=/etc/nomad.d/" >> /usr/bin/nomad && \ | ||
chmod 777 /usr/bin/nomad | ||
|
||
# put consul | ||
RUN curl https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip > consul.zip | ||
RUN unzip consul.zip | ||
RUN echo "#!/bin/bash" > /usr/bin/consul && \ | ||
echo "exec /consul agent -dev -node travis -bind 127.0.0.1" >> /usr/bin/consul && \ | ||
chmod 777 /usr/bin/consul | ||
|
||
# put cluster broccoli | ||
ADD cluster-broccoli-dist /cluster-broccoli-dist | ||
ADD templates /cluster-broccoli-dist/templates | ||
RUN mkdir /cluster-broccoli-dist/instances | ||
RUN ln -s /cluster-broccoli-dist/bin/cluster-broccoli /usr/bin/cluster-broccoli | ||
## cluster-broccoli certificates and configs | ||
COPY ./cluster-broccoli-files/ / |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.