This file contains hidden or 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
# location of java | |
JAVA=/usr/bin/java | |
# For the JVM runtime default encoding | |
LANG=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
LANGUAGE=en_US.UTF-8 | |
# Java options | |
JAVA_OPTS="-Djava.io.tmpdir=/var/lib/jenkins/tmp/" |
This file contains hidden or 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
@Path("/rest") | |
public class RestResource { | |
@GET | |
@Path("resources") | |
@Produces({MediaType.TEXT_PLAIN}) | |
public Response getJaxRSResources(@Context final Application application) { | |
final TreeMap<String, List<String>> res = new TreeMap<>(); | |
for (Class<?> aClass : application.getClasses()) { | |
if (isAnnotatedResourceClass(aClass)) { |
This file contains hidden or 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
# riak - Basho Riak key/value database | |
# | |
# A distributed Key/value database | |
# | |
description "Riak key/value database" | |
author "Troels Norgaard <tnn@tradeshift.com>" | |
# Ensure that we only start Riak once | |
# the filesystem is ready | |
start on local-filesystems filesystem mounted |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>my-component</artifactId> | |
<packaging>jar</packaging> | |
<build> | |
<plugins> |
This file contains hidden or 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
# | |
# Builder for Oracle Java Debian (.deb) packages on Ubuntu trusty | |
# | |
# Pull base image. | |
FROM dockerfile/ubuntu | |
ENV JAVA_VERSION 8u25 | |
COPY jdk-$JAVA_VERSION-linux-x64.gz /tmp/jdk-$JAVA_VERSION-linux-x64.tar.gz | |
COPY jre-$JAVA_VERSION-linux-x64.gz /tmp/jre-$JAVA_VERSION-linux-x64.tar.gz |
This file contains hidden or 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
@Path("service") | |
public class CSResource extends ContextAdwareResource { | |
@GET | |
@Path("states") | |
public void getApDocumentStates(@Suspended final AsyncResponse resp) { | |
MessageService<CSProtocol, Exception> service = new CSService(); | |
service.request(new Msg("getCSStates")) | |
.then((value) -> resp.resume(convertToExternal(value))) | |
.catchError((error) -> resp.resume(Response.Status.INTERNAL_SERVER_ERROR), |
This file contains hidden or 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
{ | |
"brand": "joyent", | |
"dataset_uuid": "", | |
"alias": "", | |
"autoboot": true, | |
"cpu_shares": 128, | |
"dns_domain": "", | |
"hostname": "", | |
"max_physical_memory": 128, | |
"quota": 10, |
This file contains hidden or 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
<?xml version='1.0' ?> | |
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> | |
<!-- | |
Service Manifest for Nexus | |
--> | |
<service_bundle type='manifest' name='application/nexus'> | |
<service name='application/nexus' type='service' version='1'> | |
<create_default_instance enabled='false' /> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | |
Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. | |
The contents of this file are subject to the terms of either the GNU | |
General Public License Version 2 only ("GPL") or the Common Development | |
and Distribution License("CDDL") (collectively, the "License"). You |
This file contains hidden or 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
<?xml version='1.0'?> | |
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> | |
<service_bundle type='manifest' name='jenkins'> | |
<service name='application/jenkins' type='service' version='1'> | |
<create_default_instance enabled='false' /> | |
<!-- Only one instance of Hudson should ever run per server --> | |
<single_instance /> |
NewerOlder