apt-get update
apt-get install xfce4 tightvncserver language-pack-ja fonts-vlgothic
export USER=root
export LANG=ja_JP.UTF-8
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
from dockerfile/java:oracle-java7 | |
run mkdir -p /usr/src/app | |
workdir /usr/src/app | |
add . /usr/src/app | |
run ./gradlew assemble | |
cmd ["./gradlew", "run"] |
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
from dockerfile/java:oracle-java7 | |
volume /usr/src/groovy-ssh | |
copy . /usr/src/groovy-ssh | |
run cd /usr/src/groovy-ssh && \ | |
./gradlew --gradle-user-home=.gradle installApp && \ | |
cp -a build/install/groovy-ssh / | |
workdir /groovy-ssh/bin | |
entrypoint ["./groovy-ssh"] |
Use HttpURLClient
in Groovy.
import groovyx.net.http.HttpURLClient
try {
def client = new HttpURLClient(url: 'https://...')
def response = client.request(query: query)
It is strongly recommended to run on Linux or OS X. Maybe many problems will happen.
- Cygwin
- apt-cyg
http_proxy
is set if needed
Gistnote is a Gist client app based on HTML5 and JavaScript.
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
trait T { | |
private a(x) { "--$x--" } | |
def b(x) { a(x) } | |
def c(xs) { xs.collect { x -> a(x) } } | |
} | |
class C { | |
} | |
def c = new C() |
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
@groovy.transform.ToString() | |
class Args { | |
Collection items | |
Map settings | |
Closure closure | |
static Args parse(Object[] objects) { | |
def args = new Args() | |
def stack = objects as LinkedList | |
if (stack.last() instanceof Closure) { |
/tmp/apache-tomcat-7.0.59/bin/setenv.sh
に下記の内容を書く.- chmod +xなどは不要.
- setenv.shがすでに存在する場合はCATALINA_OPTSの内容をマージする.